:root {
    color-scheme: light;
    --bg: #eef2f3;
    --surface: #ffffff;
    --surface-soft: #f7faf8;
    --ink: #132028;
    --muted: #5d6b72;
    --line: #dbe4e7;
    --primary: #0a7b57;
    --primary-dark: #07523c;
    --cyan: #1b95c9;
    --amber: #f2a93b;
    --danger: #bd2f3a;
    --danger-soft: #fdecee;
    --success: #078c4f;
    --success-soft: #dbf7e6;
    --warning: #9a650e;
    --warning-soft: #fff3d7;
    --disabled: #e5e9eb;
    --radius: 8px;
    --shadow: 0 10px 26px rgba(18, 32, 40, 0.08);
    --shadow-strong: 0 18px 46px rgba(8, 18, 26, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(238, 242, 243, 0.96), rgba(245, 247, 248, 0.98)),
        #eef2f3;
    color: var(--ink);
    font-family: "Manrope", "Segoe UI", sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
.primary-link,
.secondary-link,
.table-action {
    align-items: center;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    text-decoration: none;
    white-space: nowrap;
}

button,
.primary-link {
    background: linear-gradient(135deg, var(--primary), #10a56e);
    box-shadow: 0 12px 28px rgba(10, 123, 87, 0.24);
    color: #fff;
}

button:hover,
.primary-link:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    text-decoration: none;
}

button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.15);
    opacity: 0.68;
}

button.is-saving {
    cursor: progress;
}

button.secondary,
.secondary-link {
    background: #edf3f4;
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--ink);
}

button.secondary:hover,
.secondary-link:hover {
    background: #e2ecee;
    text-decoration: none;
}

button.danger {
    background: var(--danger);
    box-shadow: 0 10px 24px rgba(189, 47, 58, 0.2);
}

.glow {
    animation: ctaPulse 2.5s ease-in-out infinite;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 28px rgba(20, 193, 123, 0.55), 0 18px 42px rgba(7, 82, 60, 0.26);
}

@keyframes ctaPulse {
    0%, 100% {
        transform: translateY(0);
        filter: brightness(1);
    }
    50% {
        transform: translateY(-1px);
        filter: brightness(1.08);
    }
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    font: inherit;
    min-height: 38px;
    padding: 8px 11px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(27, 149, 201, 0.14);
    outline: none;
}

textarea {
    resize: vertical;
}

label {
    color: var(--muted);
    display: grid;
    font-size: 0.88rem;
    font-weight: 600;
    gap: 6px;
}

code {
    background: #eef4f1;
    border-radius: 6px;
    padding: 2px 5px;
}

.topbar {
    align-items: center;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(219, 228, 231, 0.9);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 14px 44px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand {
    align-items: center;
    color: var(--ink);
    display: flex;
    gap: 12px;
    min-width: 0;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    align-items: center;
    background: #071b25;
    border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(7, 27, 37, 0.22);
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.brand-logo {
    display: block;
    height: 38px;
    max-width: 250px;
    object-fit: contain;
    width: auto;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-weight: 600;
}

.nav-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.inline-form {
    display: inline;
}

.link-button {
    background: transparent;
    box-shadow: none;
    color: var(--primary-dark);
    min-height: auto;
    padding: 0;
}

.link-button:hover {
    background: transparent;
    text-decoration: underline;
}

.shell {
    display: grid;
    gap: 18px;
    margin: 0 auto;
    max-width: 1480px;
    padding: 22px 34px 48px;
}

.public-hero {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(5, 16, 23, 0.96) 0%, rgba(5, 16, 23, 0.84) 42%, rgba(5, 16, 23, 0.28) 74%, rgba(5, 16, 23, 0.08) 100%),
        url("img/hero-dev-service.png") center right / cover no-repeat;
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
    color: #fff;
    display: flex;
    min-height: 610px;
    overflow: hidden;
    padding: 58px;
    position: relative;
}

.hero-content {
    max-width: 760px;
    min-width: 0;
    width: 100%;
}

.public-hero h1,
.order-hero h1 {
    font-size: 4.6rem;
    font-weight: 800;
    line-height: 0.98;
    margin: 0 0 18px;
}

.hero-lead {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.28rem;
    margin: 0 0 26px;
    max-width: 700px;
}

.pain-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.pain-list span {
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #e8f8f5;
    font-weight: 700;
    padding: 8px 12px;
}

.hero-actions,
.order-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions .secondary-link {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
    color: #fff;
}

.sales-band,
.conversion-strip,
.instruction-banner,
.admin-hero,
.order-hero {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.page-compact-head {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 20px 22px;
}

.page-compact-head h1 {
    font-size: 1.9rem;
    line-height: 1.1;
    margin: 0 0 6px;
}

.page-compact-head p {
    color: var(--muted);
    margin: 0;
}

.page-toolbar,
.sub-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.jump-links {
    display: flex;
    justify-content: flex-end;
}

.jump-links.bottom {
    margin-top: 8px;
}

.sub-toolbar {
    background: #e5eef0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    justify-content: flex-start;
    padding: 6px;
}

.sub-toolbar a {
    border-radius: var(--radius);
    color: var(--muted);
    font-weight: 700;
    min-height: 36px;
    padding: 8px 12px;
}

.sub-toolbar a.active {
    background: #fff;
    box-shadow: 0 6px 16px rgba(18, 32, 40, 0.1);
    color: var(--ink);
}

.sales-band {
    display: grid;
    gap: 22px;
}

.conversion-strip,
.instruction-banner,
.admin-hero,
.order-hero {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
}

.instruction-banner,
.admin-hero {
    padding: 20px 22px;
}

.instruction-banner p,
.admin-hero p {
    max-width: 680px;
}

.summary-grid {
    gap: 12px;
}

.summary-grid .metric-card {
    min-height: 0;
    padding: 16px 18px;
}

.conversion-strip {
    background: linear-gradient(135deg, #071b25, #0b5c48 72%, #116d82);
    color: #fff;
}

.conversion-strip h2,
.order-hero h1,
.instruction-banner h1,
.admin-hero h1 {
    margin: 0;
}

.conversion-strip h2 {
    font-size: 2rem;
}

.instruction-banner h1,
.admin-hero h1 {
    font-size: 1.9rem;
}

.instruction-banner p,
.admin-hero p,
.section-heading p,
.sales-band p {
    color: var(--muted);
    margin: 0;
    max-width: 760px;
}

.conversion-strip .eyebrow,
.public-hero .eyebrow {
    color: #9ff4c9;
}

.eyebrow {
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.auth-grid,
.summary-grid,
.order-grid,
.value-grid,
.rules-grid,
.guide-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-grid.single {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
}

.access-shell {
    display: grid;
    gap: 18px;
    margin: 0 auto;
    max-width: 1120px;
    width: 100%;
}

.access-intro {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
}

.access-intro h1 {
    font-size: 2.2rem;
    line-height: 1.08;
    margin: 0 0 10px;
}

.access-intro p {
    color: var(--muted);
    margin: 0;
    max-width: 720px;
}

.summary-grid,
.order-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.order-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-grid,
.rules-grid,
.guide-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.metric-card,
.value-grid article,
.rules-grid article,
.guide-grid article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

.value-grid article,
.rules-grid article,
.guide-grid article {
    background: var(--surface-soft);
    box-shadow: 0 10px 26px rgba(18, 32, 40, 0.06);
}

.value-grid strong,
.value-grid span {
    display: block;
}

.value-grid span {
    color: var(--muted);
    margin-top: 8px;
}

.panel.wide {
    overflow: hidden;
}

.panel.compact {
    box-shadow: var(--shadow);
}

.panel.emphasis {
    border-color: rgba(10, 123, 87, 0.35);
    box-shadow: 0 22px 60px rgba(10, 123, 87, 0.16);
}

.panel h1,
.panel h2,
.metric-card strong {
    margin: 0 0 14px;
}

.panel h1,
.panel h2,
.section-heading h2,
.instruction-banner h1,
.admin-hero h1,
.conversion-strip h2 {
    font-weight: 800;
}

.stack-form {
    display: grid;
    gap: 14px;
}

.captcha-box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 14px;
}

.captcha-box legend {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
    padding: 0 6px;
}

.captcha-box p {
    color: var(--ink);
    margin: 0;
}

.captcha-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.captcha-option {
    cursor: pointer;
    display: block;
}

.captcha-option input {
    clip: rect(0 0 0 0);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.captcha-option img {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: block;
    height: auto;
    padding: 6px;
    width: 100%;
}

.captcha-option input:checked + img {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 123, 87, 0.14);
}

.metric-card {
    display: grid;
    gap: 8px;
}

.metric-card span,
.metric-card small,
.muted,
small {
    color: var(--muted);
}

.metric-card strong {
    font-size: 1.55rem;
    line-height: 1.1;
}

.action-metric .secondary-link {
    justify-self: start;
}

.section-heading {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-heading.loose {
    align-items: end;
    margin-bottom: 0;
}

.section-heading h2 {
    font-size: 1.45rem;
    line-height: 1.12;
    margin: 0;
    max-width: 760px;
}

.workspace-tabs {
    display: grid;
    gap: 18px;
}

.tool-tabs,
.admin-toolbar {
    align-items: center;
    background: #dfe9eb;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 6px;
}

.tool-tabs button,
.tool-tabs a,
.admin-toolbar a,
.segmented button {
    align-items: center;
    background: transparent;
    box-shadow: none;
    color: var(--muted);
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    text-decoration: none;
}

.tool-tabs button.active,
.tool-tabs a.active,
.admin-toolbar a.active,
.segmented button.active {
    background: #fff;
    box-shadow: 0 6px 18px rgba(18, 32, 40, 0.12);
    color: var(--ink);
}

.history-tab {
    gap: 8px;
    position: relative;
}

.notification-dot {
    align-items: center;
    background: var(--danger);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    height: 20px;
    justify-content: center;
    min-width: 20px;
    padding: 0 6px;
}

.tab-panel,
.week-panel {
    display: none;
}

.tab-panel.active,
.week-panel.active {
    display: grid;
    gap: 18px;
}

.segmented {
    background: #edf3f4;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    gap: 4px;
    padding: 4px;
}

.week-title,
.week-actions {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    margin-bottom: 12px;
}

.table-scroll {
    overflow-x: auto;
    scrollbar-color: var(--primary) #e6ecee;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 780px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

thead th {
    background: #f2f6f6;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

th small {
    color: var(--muted);
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
}

.calendar-table td,
.calendar-table th {
    min-width: 128px;
    text-align: center;
}

.calendar-table tbody th {
    background: #f8fbfb;
    color: var(--ink);
    left: 0;
    position: sticky;
    z-index: 1;
}

.calendar-table td span,
.calendar-table td strong {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 700;
    justify-content: center;
    min-width: 98px;
    padding: 7px 10px;
    white-space: nowrap;
}

.is-free span {
    background: #e5f8ec;
    color: var(--success);
}

.is-unavailable span,
.slot-tags span {
    background: var(--danger-soft);
    color: var(--danger);
}

.is-past span {
    background: var(--disabled);
    color: #7c888e;
    text-decoration: line-through;
}

.is-own span,
.has-allocation strong {
    background: linear-gradient(135deg, #13b86d, #28d38c);
    box-shadow: 0 10px 24px rgba(19, 184, 109, 0.22);
    color: #fff;
}

.is-own-past span {
    background: #dfe5e7;
    box-shadow: none;
    color: #59666d;
}

.admin-calendar td {
    min-width: 172px;
    text-align: left;
}

.admin-calendar strong,
.admin-calendar small {
    display: block;
}

.slot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.slot-tags span {
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 0;
    padding: 4px 8px;
    text-decoration: none;
}

.mini-check {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    font-size: 0.82rem;
    gap: 7px;
}

.mini-check input {
    min-height: auto;
    width: auto;
}

.mini-check input:disabled + span {
    color: var(--muted);
}

.request-grid,
.allocation-grid,
.client-editor {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.4fr) auto;
}

.request-panel {
    padding: 26px;
}

.request-header {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.8fr);
    margin-bottom: 18px;
}

.request-header h2 {
    margin-bottom: 10px;
}

.price-callout {
    align-self: stretch;
    background: linear-gradient(160deg, #f4fbf7, #e7f5ee);
    border: 1px solid #cae8d8;
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    display: grid;
    gap: 6px;
    padding: 18px;
}

.price-callout span,
.price-callout small {
    color: var(--muted);
}

.price-callout strong {
    color: var(--primary-dark);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.request-grid.clean {
    align-items: start;
    gap: 16px;
    grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
}

.request-actions {
    align-items: center;
    display: flex;
    gap: 14px;
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 4px;
}

.confirm-strip {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 18px;
}

.request-actions small {
    max-width: 720px;
}

.allocation-grid {
    grid-template-columns: minmax(260px, 1.2fr) repeat(2, minmax(160px, 0.6fr));
}

.client-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide-field {
    grid-column: 1 / -1;
}

.selector-button {
    justify-self: start;
}

.selector-button:disabled {
    background: #eef2f3;
    box-shadow: inset 0 0 0 1px var(--line);
    color: #809098;
}

.selected-user {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 10px;
    white-space: nowrap;
}

.badge.pending {
    background: var(--warning-soft);
    color: var(--warning);
}

.badge.approved {
    background: var(--success-soft);
    color: var(--success);
}

.badge.rejected {
    background: var(--danger-soft);
    color: var(--danger);
}

.pix-box,
.note-box {
    background: var(--warning-soft);
    border: 1px solid #ecd394;
    border-radius: var(--radius);
    display: grid;
    gap: 4px;
    margin-top: 16px;
    padding: 14px;
}

.note-box {
    background: #eef6f8;
    border-color: #cce3e8;
}

.positive {
    color: var(--success);
    font-weight: 700;
}

.negative {
    color: var(--danger);
    font-weight: 700;
}

.record-list {
    display: grid;
    gap: 14px;
}

.record-card {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 14px;
    padding: 16px;
}

.record-head {
    align-items: start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.record-head strong,
.record-head small {
    display: block;
}

.row-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-action {
    display: inline;
}

.compact {
    min-height: 34px;
    padding: 7px 10px;
}

.contact-actions,
.form-actions,
.table-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.record-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(140px, 0.5fr));
}

.hours-adjust {
    display: grid;
    gap: 10px;
    grid-template-columns: 140px 140px minmax(180px, 1fr) auto;
}

.table-filter {
    max-width: 320px;
}

.filter-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.history-table {
    font-size: 0.9rem;
}

.nowrap {
    white-space: nowrap;
}

.table-action {
    background: #e6f5ef;
    color: var(--primary-dark);
    min-height: 34px;
    padding: 7px 10px;
}

.inline-link {
    display: inline-flex;
    margin-left: 8px;
    white-space: nowrap;
}

.admin-table th:first-child,
.admin-table td:first-child {
    left: 0;
    position: sticky;
    z-index: 2;
}

.admin-table th:first-child {
    background: #f2f6f6;
}

.admin-table td:first-child {
    background: #fff;
}

.modal-backdrop {
    align-items: center;
    background: rgba(5, 16, 23, 0.58);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 80;
}

.modal-backdrop[hidden] {
    display: none;
}

.modal {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
    display: grid;
    gap: 14px;
    max-height: 82vh;
    max-width: 720px;
    overflow: hidden;
    padding: 18px;
    width: 100%;
}

.modal-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.icon-button {
    background: #eef3f4;
    box-shadow: none;
    color: var(--ink);
    font-size: 1.4rem;
    height: 38px;
    min-height: 38px;
    padding: 0;
    width: 38px;
}

.user-picker-list {
    display: grid;
    gap: 8px;
    max-height: 52vh;
    overflow: auto;
}

.user-picker-list button {
    background: #f7faf8;
    border: 1px solid var(--line);
    box-shadow: none;
    color: var(--ink);
    display: grid;
    justify-items: start;
    min-height: auto;
    padding: 12px;
    text-align: left;
    white-space: normal;
}

.user-picker-list button:hover {
    background: #ecf7f2;
}

.user-picker-list span {
    color: var(--muted);
    font-size: 0.88rem;
}

.slot-picker {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 12px;
    grid-column: 1 / -1;
    margin: 0;
    padding: 14px;
}

.slot-picker legend {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
    padding: 0 6px;
}

.slot-check-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.slot-check {
    cursor: pointer;
    display: block;
}

.slot-check input {
    clip: rect(0 0 0 0);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.slot-check span {
    align-items: center;
    background: #f5faf8;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    display: flex;
    font-weight: 800;
    justify-content: center;
    min-height: 42px;
    padding: 9px;
}

.slot-check input:checked + span {
    background: linear-gradient(135deg, #0a7b57, #15bb78);
    border-color: #0a7b57;
    box-shadow: 0 10px 24px rgba(10, 123, 87, 0.22);
    color: #fff;
}

.allocation-pill {
    background: linear-gradient(135deg, #0fbd6f, #31de93);
    border-radius: var(--radius);
    box-shadow: 0 12px 26px rgba(15, 189, 111, 0.28);
    color: #fff;
    display: grid;
    gap: 2px;
    min-width: 128px;
    padding: 8px 10px;
    text-decoration: none;
}

.is-own-past .allocation-pill {
    background: linear-gradient(135deg, #7e8b91, #a6b1b6);
    box-shadow: 0 10px 22px rgba(91, 105, 112, 0.2);
}

.allocation-pill:hover {
    text-decoration: none;
}

.calendar-table td .allocation-pill strong,
.calendar-table td .allocation-pill small {
    background: transparent;
    box-shadow: none;
    color: inherit;
    display: block;
    font-size: 0.82rem;
    min-width: 0;
    padding: 0;
}

.calendar-table td .allocation-pill small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
}

.allocation-name {
    background: linear-gradient(135deg, #13b86d, #28d38c);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(19, 184, 109, 0.22);
    color: #fff;
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 800;
    justify-content: center;
    min-width: 98px;
    padding: 7px 10px;
}

.allocation-name:hover {
    color: #fff;
    text-decoration: none;
}

.allocation-hero {
    align-items: center;
    background: linear-gradient(135deg, #071b25, #0b5c48 70%, #116d82);
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
    color: #fff;
    display: flex;
    gap: 22px;
    justify-content: space-between;
    padding: 34px;
}

.allocation-hero h1 {
    font-size: 3.1rem;
    line-height: 1;
    margin: 0 0 10px;
}

.allocation-hero p {
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.allocation-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.allocation-summary {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-strip {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-strip article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 4px;
    padding: 14px;
}

.project-strip span,
.project-strip small {
    color: var(--muted);
}

.project-strip strong {
    font-size: 1.1rem;
}

.allocation-mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.allocation-mini-list a {
    background: #f6faf8;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    display: grid;
    gap: 2px;
    min-width: 190px;
    padding: 10px 12px;
}

.allocation-mini-list a.active {
    border-color: rgba(10, 123, 87, 0.45);
    box-shadow: 0 8px 20px rgba(10, 123, 87, 0.12);
}

.allocation-mini-list span {
    color: var(--muted);
    font-size: 0.86rem;
}

.allocation-list-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.copy-field {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.allocation-editor,
.allocation-workflow,
.editor-page {
    display: grid;
    gap: 18px;
}

.project-readable {
    margin-inline: auto;
    max-width: 860px;
    width: 100%;
}

.form-panel {
    margin-inline: auto;
    max-width: 760px;
    width: 100%;
}

.delete-panel {
    border-top: 1px solid var(--line);
    margin-top: 14px;
    padding-top: 14px;
}

.event-composer,
.editor-form {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.35fr) minmax(180px, 0.3fr) auto;
    padding: 16px;
}

.project-event-composer {
    margin-top: 6px;
}

.compact-action {
    align-self: end;
    min-height: 38px;
    padding: 8px 13px;
}

.debit-context {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 4px;
    padding: 12px;
}

.debit-context span,
.debit-context small {
    color: var(--muted);
}

.timeline {
    display: grid;
    gap: 14px;
}

.event-card {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(18, 32, 40, 0.07);
    display: grid;
    gap: 14px;
    padding: 16px;
}

.template-list {
    display: grid;
    gap: 16px;
}

.template-editor-card {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 26px rgba(18, 32, 40, 0.05);
    display: grid;
    gap: 12px;
    padding: 16px;
}

.template-editor-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.template-editor-head span {
    color: var(--ink);
    font-weight: 600;
}

.template-editor-form {
    display: grid;
    gap: 12px;
}

.template-editor-form textarea {
    font-family: "Manrope", "Segoe UI", sans-serif;
    min-height: 240px;
}

.template-restore-form {
    justify-self: start;
}

.stack-form,
.editor-form,
.client-editor,
.hours-adjust,
.request-grid.clean,
.allocation-grid {
    max-width: 980px;
}

.template-editor-form,
.event-composer {
    max-width: 1080px;
}

.compact-section {
    padding: 16px;
}

.event-card.from-admin {
    border-left: 4px solid var(--primary);
}

.event-card.from-client {
    border-left: 4px solid var(--cyan);
}

.event-head {
    align-items: start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.event-head strong,
.event-head small {
    display: block;
}

.event-body {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
}

.debit-panel {
    background: linear-gradient(135deg, #e2faeb, #ccf3dc);
    border: 1px solid #a9dfbf;
    border-radius: var(--radius);
    color: var(--primary-dark);
    display: grid;
    gap: 4px;
    padding: 12px 14px;
}

.checklist,
.checklist-form {
    display: grid;
    gap: 10px;
}

.checklist-item {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) minmax(180px, 0.7fr);
    padding: 10px;
}

.checklist-item.readonly {
    grid-template-columns: auto minmax(0, 1fr);
}

.checklist-item.readonly small {
    color: #33444c;
    font-size: 0.9rem;
    grid-column: 2;
    line-height: 1.45;
}

.checklist-item.done {
    border-color: #b7e7c8;
    background: #f0fbf5;
}

.check-marker {
    align-items: center;
    background: #edf3f4;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 800;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.checklist-item.done .check-marker {
    background: var(--success);
    color: #fff;
}

.event-delete {
    justify-self: start;
}

.compact-metrics {
    margin-bottom: 4px;
}

.flash {
    border-radius: var(--radius);
    font-weight: 700;
    padding: 14px 16px;
}

.flash.info {
    align-items: center;
    background: #eaf4fb;
    color: #205272;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.impersonation-banner strong {
    display: block;
}

.flash.success {
    background: var(--success-soft);
    color: var(--success);
}

.flash.error {
    background: var(--danger-soft);
    color: var(--danger);
}

@media (max-width: 1120px) {
    .summary-grid,
    .order-grid,
    .allocation-summary,
    .project-strip,
    .value-grid,
    .rules-grid,
    .guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .request-grid,
    .allocation-grid,
    .client-editor,
    .record-grid,
    .hours-adjust,
    .event-composer,
    .editor-form {
        grid-template-columns: 1fr;
    }

    .request-header {
        grid-template-columns: 1fr;
    }

    .captcha-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .topbar,
    .conversion-strip,
    .instruction-banner,
    .admin-hero,
    .order-hero,
    .allocation-hero,
    .page-compact-head,
    .section-heading,
    .record-head,
    .week-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .topbar {
        padding: 12px;
    }

    .shell {
        padding: 16px 12px 40px;
    }

    .public-hero {
        background:
            linear-gradient(180deg, rgba(5, 16, 23, 0.96) 0%, rgba(5, 16, 23, 0.84) 58%, rgba(5, 16, 23, 0.62) 100%),
            url("img/hero-dev-service.png") center / cover no-repeat;
        min-height: 660px;
        padding: 28px;
    }

    .public-hero h1,
    .order-hero h1 {
        font-size: 2.85rem;
    }

    .hero-lead {
        font-size: 1.05rem;
        max-width: 30ch;
    }

    .auth-grid,
    .summary-grid,
    .order-grid,
    .allocation-summary,
    .project-strip,
    .value-grid,
    .rules-grid,
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .panel,
    .metric-card,
    .sales-band,
    .conversion-strip,
    .instruction-banner,
    .admin-hero,
    .order-hero {
        padding: 18px;
    }

    .request-actions,
    .copy-field,
    .checklist-item,
    .allocation-list-actions,
    .page-toolbar,
    .flash.info,
    .confirm-strip,
    .jump-links {
        align-items: stretch;
        display: flex;
        flex-direction: column;
    }

    .brand small {
        display: none;
    }

    .brand-logo {
        height: 34px;
        max-width: 190px;
    }

    .section-heading h2 {
        font-size: 1.6rem;
    }

    .nav-actions {
        gap: 8px;
        justify-content: flex-start;
        overflow-x: auto;
        width: 100%;
    }

    .public-hero h1,
    .allocation-hero h1,
    .hero-lead {
        overflow-wrap: anywhere;
    }

    .allocation-hero h1 {
        font-size: 2.25rem;
    }
}
