:root {
    --paper: #f5f4ef;
    --white: #fffefa;
    --ink: #202b25;
    --muted: #70766f;
    --line: #e3e2da;
    --green: #315b47;
    --orange: #dc7650;
    --sans: 'DM Sans', 'Segoe UI', sans-serif;
    --display: 'Manrope', 'DM Sans', 'Segoe UI', sans-serif;
    --serif: Georgia, 'Times New Roman', serif;
    /* Shared type scale: a compact step for utility text and a fluid scale for headings. */
    --text-xs: 11px;
    --text-sm: 13px;
    --text-base: 15px;
    --text-lg: 18px;
    --text-xl: 22px;
    --text-2xl: clamp(28px, 3vw, 36px);
    --text-3xl: clamp(36px, 4.6vw, 56px);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--sans);
    font-size: var(--text-base);
    line-height: 1.6;
    font-weight: 400;
    font-optical-sizing: auto;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

textarea {
    font: inherit;
}

button {
    color: inherit;
}

.eyebrow {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 1.3px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Portfolio */
.portfolio-page {
    background: var(--paper);
}

.portfolio-header {
    height: 78px;
    padding: 0 7.2%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(32, 43, 37, .09);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--display);
    font-weight: 800;
    font-size: 14px;
}

.wordmark-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--green);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 800;
}

.portfolio-nav {
    display: flex;
    gap: 36px;
    color: #565e58;
    font-size: 12px;
}

.portfolio-nav a,
.header-cta,
.text-link,
.project-link,
.contact-bottom a {
    transition: color .2s ease;
}

.portfolio-nav a:hover,
.text-link:hover,
.project-link:hover,
.contact-bottom a:hover {
    color: var(--orange);
}

.header-cta {
    padding: 11px 15px;
    border: 1px solid #c9cbc2;
    font-size: 11px;
    font-weight: 600;
}

.header-cta span {
    margin-left: 11px;
}

.header-cta:hover {
    color: white;
    background: var(--green);
    border-color: var(--green);
}

.portfolio-hero {
    position: relative;
    padding: 24px 7.2% 66px;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin-top: 48px;
    padding-bottom: 14px;
}

.hero-carousel {
    position: relative;
    width: min(100%, 900px);
    height: 370px;
    max-height: 65vw;
    margin-inline: auto;
    overflow: hidden;
    background: #26382e;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}

.carousel-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.carousel-slide::after {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(180deg, rgba(17, 31, 24, .04) 42%, rgba(17, 31, 24, .66));
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 52%;
}

.carousel-slide:nth-child(2) img {
    object-position: center 38%;
}

.carousel-slide figcaption {
    position: absolute;
    z-index: 1;
    right: 30px;
    bottom: 28px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 11px;
}

.carousel-slide figcaption span {
    color: rgba(255, 255, 255, .75);
    font-size: 9px;
    letter-spacing: 1px;
}

.carousel-slide figcaption strong {
    font-size: 14px;
    font-weight: 600;
}

.carousel-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 50%;
    color: white;
    background: rgba(20, 32, 25, .25);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s ease;
}

.carousel-arrow:hover {
    background: rgba(20, 32, 25, .7);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    z-index: 2;
    right: 30px;
    bottom: 31px;
    display: flex;
    gap: 7px;
}

.carousel-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 1px solid white;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.carousel-dots button[aria-current="true"] {
    background: white;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: #688b68;
    vertical-align: 1px;
}

.portfolio-hero h1,
.section-heading h2,
.about-content h2,
.contact-layout h2 {
    margin: 22px 0 18px;
    font-family: var(--display);
    font-size: clamp(42px, 5.1vw, 70px);
    font-weight: 500;
    line-height: 1.11;
    letter-spacing: 0;
}

.portfolio-hero h1 em,
.section-heading h2 em,
.about-content h2 em,
.contact-layout h2 em {
    color: var(--green);
    font-family: var(--serif);
    font-weight: 400;
}

.hero-description {
    max-width: 410px;
    color: #626a63;
    font-size: 15px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 30px;
}

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 17px;
    border: 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background .2s ease, transform .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-dark {
    color: white;
    background: var(--green);
}

.button-dark:hover {
    background: #244636;
}

.text-link {
    font-size: 12px;
    font-weight: 600;
}

.text-link span {
    margin-left: 6px;
}

.hero-footnote {
    display: flex;
    gap: 28px;
    margin-top: 73px;
    color: #7b807a;
    font-size: 9px;
    letter-spacing: 1px;
}

.scroll-cue {
    position: absolute;
    bottom: 22px;
    left: 50%;
    color: var(--green);
    font-size: 18px;
}

.work-section {
    padding: 98px 7.2% 112px;
    background: #fbfaf6;
}

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

.section-heading h2,
.about-content h2,
.contact-layout h2 {
    margin: 16px 0 0;
    font-size: 48px;
    line-height: 1.17;
}

.section-intro {
    max-width: 305px;
    margin: 0 2% 7px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.project-feature {
    min-height: 395px;
    display: grid;
    grid-template-columns: .74fr 1.26fr;
    background: #e9ece5;
}

.project-copy {
    padding: 37px 30px 32px 36px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    color: #788078;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.project-copy h3 {
    margin: 38px 0 14px;
    font-family: var(--display);
    font-size: 29px;
    font-weight: 600;
    line-height: 1.2;
}

.project-copy p {
    max-width: 310px;
    color: #616a62;
    font-size: 12px;
    line-height: 1.8;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

.tag-list span {
    padding: 6px 8px;
    border: 1px solid #ced4ca;
    color: #515d53;
    font-size: 9px;
}

.project-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
}

.project-link span {
    margin-left: 8px;
}

.project-preview {
    align-self: center;
    min-width: 0;
    margin: 26px 26px 26px 0;
    padding: 21px;
    background: var(--white);
    box-shadow: 0 14px 35px rgba(38, 53, 43, .08);
}

.preview-top,
.preview-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-top {
    padding-bottom: 15px;
    border-bottom: 1px solid #eeeee8;
    color: #8b918b;
    font-size: 9px;
}

.preview-brand {
    color: #374b3d;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .7px;
}

.preview-brand i {
    display: inline-block;
    width: 17px;
    height: 17px;
    margin-right: 5px;
    border-radius: 50%;
    background: #3e654d;
    vertical-align: middle;
}

.preview-title {
    padding: 19px 0 14px;
    font-size: 12px;
    font-weight: 700;
}

.preview-date {
    color: #8c918b;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: .5px;
}

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

.preview-stats div {
    min-height: 83px;
    padding: 12px;
    border: 1px solid #eeeee8;
}

.preview-stats small,
.preview-stats strong,
.preview-stats span {
    display: block;
}

.preview-stats small {
    color: #858b84;
    font-size: 7px;
    font-weight: 700;
}

.preview-stats strong {
    margin: 8px 0 1px;
    font-family: var(--display);
    font-size: 22px;
}

.preview-stats span {
    color: #898e88;
    font-size: 8px;
}

.preview-table {
    margin-top: 17px;
}

.preview-row {
    min-height: 33px;
    display: grid;
    grid-template-columns: 1.5fr .8fr .6fr;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid #f0f0eb;
    color: #575f59;
    font-size: 8px;
}

.preview-row-head {
    min-height: 25px;
    color: #92978f;
    font-size: 7px;
    font-weight: 700;
}

.preview-row b {
    width: fit-content;
    padding: 4px 6px;
    color: #8c6736;
    background: #f8efdd;
    font-size: 7px;
    font-weight: 600;
}

.preview-row b.preview-done {
    color: #446750;
    background: #e9f1e8;
}

.about-section {
    padding: 90px 7.2% 97px;
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 10%;
    border-top: 1px solid var(--line);
}

.about-label {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #898e87;
    font-size: 10px;
}

.about-content h2 {
    max-width: 610px;
    margin: -8px 0 18px;
    font-size: 44px;
}

.about-content>p {
    max-width: 585px;
    color: #626a63;
    font-size: 14px;
    line-height: 1.85;
}

.skills-line {
    margin-top: 30px;
    padding-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 27px;
    border-top: 1px solid var(--line);
    color: #526256;
    font-size: 10px;
}

.contact-section {
    padding: 69px 7.2% 36px;
    color: white;
    background: #315b47;
}

.contact-section .eyebrow {
    color: #c2d0c3;
}

.contact-layout {
    padding: 12px 0 42px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.contact-layout h2 {
    margin: 14px 0 0;
    font-size: 52px;
}

.contact-layout h2 em {
    color: #c8d6bb;
}

.contact-button {
    margin-bottom: 8px;
    padding: 15px 17px;
    display: inline-flex;
    align-items: center;
    gap: 45px;
    border: 1px solid rgba(255, 255, 255, .5);
    font-size: 12px;
}

.contact-button:hover {
    color: var(--ink);
    background: white;
}

.contact-bottom,
.contact-bottom div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 23px;
}

.contact-bottom {
    padding-top: 19px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    color: #d0d9d0;
    font-size: 10px;
}

.contact-bottom a:hover {
    color: white;
}

.portfolio-footer {
    min-height: 67px;
    padding: 0 7.2%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #737a72;
    font-size: 10px;
}

.portfolio-footer .wordmark {
    color: var(--ink);
    font-size: 11px;
}

.portfolio-footer .wordmark-mark {
    width: 23px;
    height: 23px;
    font-size: 15px;
}

.portfolio-footer>a:last-child:hover {
    color: var(--green);
}

.js-ready .hero-copy,
.js-ready .section-heading,
.js-ready .project-feature,
.js-ready .about-content,
.js-ready .contact-layout {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s ease, transform .7s ease;
}

.js-ready .is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Secretariat application */
.app-page {
    min-height: 100vh;
    background: #f6f6f2;
}

.app-topbar {
    height: 68px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.sidebar-toggle {
    display: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border-color: #d6e1d8;
    color: var(--green);
}

.sidebar-toggle-icon { font-size: 18px; line-height: 1; }

.app-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.court-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: white;
    background: linear-gradient(145deg, #315b47, #46765c);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
    font-family: var(--display);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -.08em;
}

.tracking-section {
    padding: 72px 7.2%;
    background: #eef2ec;
}

.tracking-copy {
    max-width: 780px;
    margin: 0 auto;
}

.tracking-copy h2 {
    margin: 12px 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -.05em;
}

.tracking-copy h2 em { color: var(--green); font-family: var(--serif); font-weight: 400; }
.tracking-copy>p:not(.eyebrow) { color: var(--muted); font-size: 13px; }

.tracking-form { margin-top: 25px; }
.tracking-form>label { display: block; margin-bottom: 8px; color: #566058; font-size: 11px; font-weight: 700; }
.tracking-form>div { display: flex; gap: 9px; }
.tracking-form input { min-width: 0; min-height: 46px; flex: 1; padding: 0 13px; border: 1px solid #d7ddd4; border-radius: 4px; background: var(--white); font: inherit; font-size: 12px; }
.tracking-form .button { min-height: 46px; white-space: nowrap; }

.tracking-message {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #e8c8bb;
    color: #8a4934 !important;
    background: #fff8f4;
    font-size: 12px !important;
}

.tracking-result {
    margin-top: 17px;
    padding: 18px;
    border: 1px solid #dbe3d8;
    border-radius: 6px;
    background: var(--white);
}

.tracking-result>p { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 700; }
.tracking-result dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tracking-result dl>div { min-width: 0; }
.tracking-result dt { color: #848b83; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.tracking-result dd { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--ink); font-size: 12px; font-weight: 600; }

.public-active-leave-section { padding: 76px 5vw; background: #f5f4ef; }
.public-active-leave-heading { max-width: 1180px; margin: 0 auto 22px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.public-active-leave-heading h2 { margin: 5px 0 8px; color: var(--ink); font-family: var(--display); font-size: clamp(28px, 4vw, 46px); line-height: 1.02; }
.public-active-leave-heading h2 em { color: var(--green); font-family: var(--serif); font-weight: 400; }
.public-active-leave-heading p:not(.eyebrow) { max-width: 650px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.public-active-leave-count { padding: 7px 10px; border: 1px solid #c9ded0; border-radius: 7px; color: #28683f; background: #f2f8f4; font-size: 9px; font-weight: 800; white-space: nowrap; }
.public-active-leave-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.public-active-leave-card { min-width: 0; padding: 18px; display: flex; gap: 14px; border: 1px solid #e2e4dc; background: #fffefa; }
.public-active-leave-avatar { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-family: var(--display); font-size: 16px; font-weight: 800; }
.public-active-leave-info { min-width: 0; }
.public-active-leave-type { color: #66806c; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.public-active-leave-period { display: inline-flex; margin: 0 0 2px 7px; padding: 4px 7px; border-radius: 999px; color: #775b17; background: #f8f0d9; font-size: 8px; font-weight: 800; vertical-align: middle; }
.public-active-leave-period.is-current, .active-leave-period.is-current { color: #28683f; background: #e7f3e9; }
.public-active-leave-info h3 { margin: 5px 0 4px; color: var(--ink); font-family: var(--display); font-size: 14px; overflow-wrap: anywhere; }
.public-active-leave-info p { margin: 0 0 7px; color: #747c73; font-size: 10px; line-height: 1.5; }
.public-active-leave-info time { color: #4d6655; font-size: 9px; font-weight: 700; }
.public-active-leave-empty { max-width: 1180px; margin: 0 auto; padding: 22px; border: 1px solid #e2e4dc; color: #747c73; background: #fffefa; font-size: 12px; }

.public-agenda-section {
    padding: 70px 7.2%;
    background: var(--white);
}

.public-agenda-heading {
    margin-bottom: 25px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.public-agenda-heading h2 {
    margin: 10px 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -.05em;
}

.public-agenda-heading h2 em { color: var(--green); font-family: var(--serif); font-weight: 400; }
.public-agenda-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; }
.public-agenda-heading>a { color: var(--green); font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.public-agenda-heading>a:hover { color: var(--orange); }

.public-agenda-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.public-agenda-card { min-width: 0; padding: 17px; display: flex; align-items: center; gap: 15px; border: 1px solid #e6e7e0; background: #fffefa; }
.public-agenda-card.is-ongoing { border-color: #e9b36e; background: #fff6e8; }
.public-agenda-date { width: 54px; min-width: 54px; height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 5px; color: #fff; background: var(--green); }
.public-agenda-card.is-ongoing .public-agenda-date { background: #bd6a1e; }
.public-agenda-date span { font-size: 8px; font-weight: 700; letter-spacing: .04em; }
.public-agenda-date strong { margin: 1px 0; font-family: var(--display); font-size: 23px; line-height: 1; }
.public-agenda-info { min-width: 0; }
.public-agenda-type { color: #66806c; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.public-agenda-live { display: inline-flex; align-items: center; gap: 5px; color: #a9530d; font-size: 8px; font-weight: 800; letter-spacing: .07em; }
.public-agenda-live::before { width: 6px; height: 6px; border-radius: 50%; background: #d97921; content: ""; }
.public-agenda-info h3 { margin: 5px 0; overflow-wrap: anywhere; color: var(--ink); font-family: var(--display); font-size: 13px; }
.public-agenda-info p { margin: 0; color: #747c73; font-size: 10px; line-height: 1.6; }
.public-agenda-empty { padding: 22px; border: 1px solid #e6e7e0; color: #747c73; background: #fffefa; font-size: 12px; }

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

.app-brand strong {
    font-family: var(--display);
    font-size: 12px;
}

.app-brand small {
    margin-top: 3px;
    color: #838981;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}

.back-portfolio {
    color: #626a63;
    font-size: 11px;
}

.back-portfolio:hover {
    color: var(--green);
}

.account-controls {
    display: flex;
    align-items: center;
    gap: 18px;
}

.account-controls form {
    margin: 0;
}

.account-name {
    color: #687168;
    font-size: 10px;
}

.logout-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.app-shell {
    min-height: calc(100vh - 68px);
    display: grid;
    grid-template-columns: 226px minmax(0, 1fr);
}

.app-sidebar {
    position: relative;
    padding: 29px 14px;
    border-right: 1px solid var(--line);
    background: var(--white);
}

@media (min-width: 821px) {
    .app-sidebar.collapse { display: block !important; }
}

.app-page :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]), select, textarea) {
    min-height: 40px;
    padding: .55rem .75rem;
    border: 1px solid #d5ddd5;
    border-radius: .5rem;
    color: #26342b;
    background-color: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.app-page :is(input, select, textarea):focus-visible,
.auth-page :is(input, select, textarea):focus-visible {
    border-color: #6d987a;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(49, 91, 71, .15);
}

.app-page :is(table) { border-color: #e4e9e3; }
.app-page :is(th) { color: #5d6d60; }

.sidebar-label {
    margin: 0 10px 15px;
    color: #959a93;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.app-navigation {
    display: grid;
    gap: 4px;
}

.nav-item {
    min-height: 40px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 0;
    background: transparent;
    color: #5b645d;
    cursor: pointer;
    text-align: left;
    font-size: 12px;
    text-decoration: none;
}

.nav-item>span {
    width: 17px;
    color: #778078;
    font-size: 15px;
    text-align: center;
}

.nav-item:hover {
    background: #f3f5f0;
}

.nav-item.is-active {
    color: #315b47;
    background: #eaf0e9;
    font-weight: 700;
}

.nav-item.is-active>span {
    color: var(--green);
}

.agenda-participants { min-width: 0; margin: 0; padding: 12px; border: 1px solid #e1e5dd; border-radius: 8px; }
.agenda-participants legend { padding: 0 5px; color: #39463d; font-size: 12px; font-weight: 700; }
.agenda-participant-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 220px; overflow: auto; }
.agenda-participant-option { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border-radius: 6px; background: #f7f8f4; cursor: pointer; }
.agenda-participant-option input { flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--green); }
.agenda-participant-option span { display: grid; gap: 2px; min-width: 0; }
.agenda-participant-option strong { overflow-wrap: anywhere; font-size: 11px; }
.agenda-participant-option small { color: var(--muted); font-size: 10px; }
@media (max-width: 520px) { .agenda-participant-list { grid-template-columns: 1fr; } }

.sidebar-note {
    position: absolute;
    right: 17px;
    bottom: 64px;
    left: 17px;
    padding: 13px 9px;
    display: flex;
    align-items: start;
    border-top: 1px solid var(--line);
    color: #576159;
    font-size: 10px;
}

.sidebar-note .status-dot {
    margin-top: 3px;
}

.sidebar-note small {
    display: block;
    margin-top: 4px;
    color: #939990;
    font-size: 9px;
}

.sidebar-portfolio {
    position: absolute;
    right: 17px;
    bottom: 20px;
    left: 17px;
    color: #7b827a;
    font-size: 10px;
}

.app-main {
    width: 100%;
    max-width: 1440px;
    min-width: 0;
    margin: 0 auto;
    padding: 37px 42px 20px;
}

.leave-page-frame {
    display: block;
    width: 100%;
    min-height: max(760px, calc(100vh - 190px));
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f3f4f0;
}

.app-heading {
    margin-bottom: 26px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
}

.app-heading .eyebrow {
    font-size: 9px;
}

.app-heading h1 {
    margin: 8px 0 4px;
    font-family: var(--display);
    font-size: 25px;
    font-weight: 700;
}

.app-subtitle {
    margin: 0;
    color: #7a8179;
    font-size: 11px;
}

.app-heading-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.today-label {
    color: #6f776e;
    font-size: 10px;
}

.app-heading-actions .button {
    min-height: 39px;
}

.flash-message {
    margin: -7px 0 19px;
    padding: 11px 14px;
    border-left: 3px solid #698967;
    color: #35523e;
    background: #eaf1e9;
    font-size: 11px;
}

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

.report-letter-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 14px;
}

.survey-frame-wrap {
    min-height: 620px;
    overflow: hidden;
    border: 1px solid #e3e2da;
    border-radius: 10px;
    background: var(--white);
}

.survey-frame-wrap iframe {
    display: block;
    width: 100%;
    min-height: 620px;
    border: 0;
    background: white;
}

.metric-card {
    position: relative;
    min-height: 138px;
    padding: 16px;
    border: 1px solid #e6e7e0;
    background: var(--white);
}

.metric-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    font-size: 14px;
}

.metric-green {
    color: #3d684e;
    background: #e8efe7;
}

.metric-blue {
    color: #4c6c83;
    background: #eaf0f4;
}

.metric-orange {
    color: #a35d3c;
    background: #f7ece5;
}

.metric-red {
    color: #9c6551;
    background: #f5eae6;
}

.metric-label {
    display: block;
    max-width: calc(100% - 33px);
    color: #747c73;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .4px;
}

.metric-card strong {
    display: block;
    margin-top: 15px;
    font-family: var(--display);
    font-size: 28px;
    font-weight: 600;
}

.metric-card small {
    color: #858b82;
    font-size: 9px;
}


.active-leave-panel {
    margin-top: 22px;
    border: 1px solid #e6e7e0;
    background: var(--white);
}

.active-leave-heading {
    margin-top: 0;
    padding: 0 16px;
    min-height: 66px;
    border-bottom: 1px solid #e9e9e3;
}

.active-leave-count {
    padding: 6px 9px;
    border: 1px solid #c9ded0;
    border-radius: 7px;
    background: #f2f8f4;
    color: #28683f;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.active-leave-table-wrap {
    border: 0;
}

.active-leave-table th,
.active-leave-table td {
    white-space: nowrap;
}

.active-leave-badge {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 5px;
    background: #eaf2ec;
    color: #3d684e;
    font-size: 8px;
    font-weight: 700;
}

.active-leave-period {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    color: #775b17;
    background: #f8f0d9;
    font-size: 8px;
    font-weight: 700;
}

.active-leave-empty {
    min-height: 92px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.active-leave-empty-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8efe7;
    color: #3d684e;
    font-weight: 800;
}

.active-leave-empty strong {
    display: block;
    color: #39433c;
    font-size: 10px;
}

.active-leave-empty small {
    display: block;
    margin-top: 4px;
    color: #858b83;
    font-size: 9px;
}

.content-heading {
    min-height: 73px;
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-heading h2 {
    margin: 0;
    font-family: var(--display);
    font-size: 14px;
    font-weight: 700;
}

.content-heading p {
    margin: 4px 0 0;
    color: #858a83;
    font-size: 10px;
}

.quiet-button {
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: #42644e;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
}

.quiet-button span {
    margin-left: 6px;
}

.whatsapp-reminder-button {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid #c9ded0;
    border-radius: 7px;
    background: #f2f8f4;
    color: #28683f;
    text-decoration: none;
    white-space: nowrap;
}

.whatsapp-reminder-button:hover {
    background: #e5f2e9;
}

.table-tools {
    min-height: 48px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e6e7e0;
    border-bottom: 0;
    background: var(--white);
}

.search-field {
    width: min(360px, 75%);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888e86;
}

.search-field span {
    font-size: 18px;
}

.search-field input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-size: 10px;
}

.search-field input::placeholder {
    color: #9a9f97;
}

.table-count {
    color: #858a83;
    font-size: 9px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid #e6e7e0;
    background: var(--white);
}

.letters-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.letters-table th {
    height: 38px;
    padding: 0 12px;
    border-bottom: 1px solid #e9e9e3;
    color: #858b83;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .4px;
    white-space: nowrap;
}

.letters-table td {
    height: 53px;
    padding: 7px 12px;
    border-bottom: 1px solid #efefe9;
    color: #646d64;
    font-size: 10px;
    white-space: nowrap;
}

.letters-table tbody tr:last-child td {
    border-bottom: 0;
}

.letters-table td strong,
.letters-table td small {
    max-width: 220px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.letters-table td strong {
    color: #39433c;
    font-size: 10px;
    font-weight: 600;
}

.letters-table td small {
    margin-top: 4px;
    color: #878d85;
    font-size: 9px;
}

.direction-badge,
.status-badge {
    display: inline-block;
    padding: 5px 7px;
    font-size: 8px;
}

.direction-in {
    color: #486c54;
    background: #ebf2e9;
}

.direction-out {
    color: #986143;
    background: #f8eee5;
}

.status-baru {
    color: #946b35;
    background: #f7f0e1;
}

.status-diproses {
    color: #4e6d85;
    background: #eaf0f4;
}

.status-selesai {
    color: #43694c;
    background: #e9f1e8;
}

.reminder-overdue {
    color: #92584d;
    background: #f7eae6;
}

.reminder-today {
    color: #8a6a36;
    background: #f6f0df;
}

.reminder-upcoming {
    color: #526e80;
    background: #eaf0f2;
}

.status-admin {
    color: #655b81;
    background: #efedf5;
}

.status-operator {
    color: #4e6d85;
    background: #eaf0f4;
}

.status-viewer {
    color: #686f68;
    background: #eff0eb;
}

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

.status-form {
    display: flex;
    align-items: center;
    gap: 3px;
}

.status-form select {
    max-width: 84px;
    height: 27px;
    padding: 0 3px;
    border: 1px solid #e5e7df;
    color: #636c63;
    background: var(--white);
    font-size: 9px;
}

.icon-button {
    width: 27px;
    height: 27px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #e5e7df;
    background: var(--white);
    cursor: pointer;
    font-size: 14px;
}

.icon-button:hover {
    color: var(--green);
    border-color: #9ab09f;
}

.delete-button:hover {
    color: #b24f3d;
    border-color: #d8a39a;
}

.empty-row td,
.no-results td {
    height: 78px;
    color: #858c83;
    text-align: center;
}

.empty-row span {
    margin-right: 8px;
    font-size: 16px;
}

.agenda-empty {
    min-height: 176px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid #e6e7e0;
    background: var(--white);
}

.agenda-calendar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--green);
    background: #eaf0e9;
    font-size: 20px;
}

.agenda-empty h3 {
    margin: 0;
    font-family: var(--display);
    font-size: 13px;
}

.agenda-empty p {
    max-width: 540px;
    margin: 7px 0 0;
    color: #777f77;
    font-size: 11px;
    line-height: 1.7;
}

.agenda-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 17px;
}

.agenda-toolbar {
    min-height: 52px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e6e7e0;
    border-bottom: 0;
    background: var(--white);
}

.agenda-toolbar>.search-field {
    flex: 1 1 220px;
}

.agenda-filters {
    display: flex;
    gap: 8px;
}

.agenda-filters select {
    height: 32px;
    padding: 0 9px;
    border: 1px solid #e5e7df;
    color: #626b63;
    background: var(--white);
    font-size: 10px;
}

.agenda-table-wrap {
    border-top: 0;
}

.agenda-entry-form {
    width: min(480px, 100%);
    margin: 4px 0 20px;
    border: 1px solid #e1e3dc;
    border-radius: 0;
    background: var(--white);
    box-shadow: 0 12px 38px rgba(26, 39, 30, .08);
}

.agenda-entry-form .dialog-heading { margin-bottom: 15px; }
.agenda-entry-form .dialog-heading h3 { margin: 6px 0 0; color: var(--ink); font-family: var(--display); font-size: 20px; }

.agenda-table {
    min-width: 730px;
}

.agenda-table td strong,
.agenda-table td small {
    max-width: 260px;
}

.agenda-table td small {
    white-space: normal;
}

.agenda-type {
    color: #536854;
    font-size: 9px;
}

.agenda-status-terjadwal {
    color: #4e6d85;
    background: #eaf0f4;
}

.agenda-status-terlaksana {
    color: #43694c;
    background: #e9f1e8;
}

.agenda-status-dibatalkan {
    color: #945647;
    background: #f7eae6;
}

.agenda-actions,
.agenda-actions form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.agenda-empty-row td,
.agenda-no-results td {
    height: 118px;
    color: #858c83;
    text-align: center;
}

.agenda-empty-row .agenda-calendar,
.agenda-empty-row strong,
.agenda-empty-row small {
    margin: 4px auto;
    display: block;
}

.agenda-empty-row .agenda-calendar {
    width: 34px;
    height: 34px;
    font-size: 16px;
}

.agenda-empty-row strong {
    color: #435448;
    font-size: 11px;
}

.agenda-empty-row small {
    color: #858c83;
    font-size: 9px;
}

.agenda-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.agenda-archive-heading { margin-top: 26px; }
.agenda-archive-wrap { margin-bottom: 24px; }
.agenda-archive-table { min-width: 760px; }
.agenda-archive-table thead th:nth-child(3) { color: #78917d; }
.agenda-archive-table thead th:nth-child(4) { color: #99849a; }
.agenda-archive-table thead th:nth-child(5) { color: #7e91a5; }
.agenda-archive-table td small { display: block; margin-top: 4px; color: #858c83; font-size: 9px; }
.agenda-archive-open { padding: 7px 10px; white-space: nowrap; font-size: 9px; }
.download-document-cell,
.agenda-document-download { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px; }
.download-document-count { min-width: 22px; padding: 4px 7px; border: 1px solid #e0e5dc; border-radius: 12px; color: #657568; background: #f3f5f0; font-size: 9px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
a.download-document-link { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid #d5e0d4; border-radius: 5px; color: #536b57; background: #edf3eb; font-size: 9px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: color .16s ease, background .16s ease, border-color .16s ease; }
a.download-document-link:hover { border-color: #c4d3c2; color: #425d47; background: #e4ece1; }

.agenda-form textarea {
    width: 100%;
    min-height: 78px;
    padding: 10px;
    resize: vertical;
    border: 1px solid #dfe2da;
    border-radius: 0;
    outline-color: #77907c;
    color: var(--ink);
    background: var(--white);
    font: inherit;
    font-size: 11px;
}

.agenda-form textarea::placeholder {
    color: #a0a59e;
}

.agenda-edit-status[hidden] {
    display: none;
}

.inventory-heading {
    gap: 16px;
}

.inventory-heading-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.button-outline {
    color: var(--green);
    border: 1px solid #c9d3c9;
    background: transparent;
}

.button-outline:hover {
    background: #eaf0e9;
}

.button:disabled {
    cursor: not-allowed;
    opacity: .5;
    transform: none;
}

.inventory-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.inventory-toolbar {
    min-height: 50px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e6e7e0;
    border-bottom: 0;
    background: var(--white);
}

.inventory-toolbar .search-field {
    flex: 1 1 240px;
}

.inventory-toolbar select {
    height: 32px;
    padding: 0 9px;
    border: 1px solid #e5e7df;
    color: #626b63;
    background: var(--white);
    font-size: 10px;
}

.inventory-table-wrap {
    border-top: 0;
}

.inventory-table {
    min-width: 760px;
}

.inventory-history-table {
    min-width: 700px;
}

.inventory-table td strong,
.inventory-table td small,
.inventory-history-table td strong,
.inventory-history-table td small {
    max-width: 240px;
}

.inventory-table td small,
.inventory-history-table td small {
    white-space: normal;
}

.stock-badge,
.movement-badge {
    display: inline-block;
    padding: 5px 7px;
    font-size: 8px;
    white-space: nowrap;
}

.stock-available {
    color: #43694c;
    background: #e9f1e8;
}

.stock-low {
    color: #946b35;
    background: #f7f0e1;
}

.stock-out {
    color: #945647;
    background: #f7eae6;
}

.inventory-actions,
.inventory-actions form {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stock-in-button {
    color: #43694c;
}

.stock-out-button {
    color: #986143;
}

.movement-masuk {
    color: #43694c;
    background: #e9f1e8;
}

.movement-keluar {
    color: #986143;
    background: #f8eee5;
}

.inventory-empty-row td,
.inventory-no-results td {
    height: 106px;
    color: #858c83;
    text-align: center;
}

.inventory-empty-row strong,
.inventory-empty-row small {
    margin: 4px auto;
    display: block;
}

.inventory-empty-row strong {
    color: #435448;
    font-size: 11px;
}

.inventory-empty-row small {
    color: #858c83;
    font-size: 9px;
}

.inventory-history-heading {
    margin-top: 20px;
}

.inventory-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.inventory-item-form label small {
    color: #858b83;
    font-size: 9px;
    font-weight: 400;
}

.reports-heading {
    gap: 16px;
}

.report-period {
    margin: 12px 0 18px;
    padding: 13px;
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
    border: 1px solid #e6e7e0;
    background: var(--white);
}

.report-period label {
    display: grid;
    gap: 6px;
    color: #697269;
    font-size: 9px;
    font-weight: 600;
}

.report-period input {
    height: 35px;
    padding: 0 9px;
    border: 1px solid #e0e2db;
    color: var(--ink);
    background: var(--white);
    font-size: 10px;
}

.report-period .button {
    min-height: 35px;
}

.report-range-label {
    margin-left: auto;
    padding-bottom: 10px;
    color: #818880;
    font-size: 9px;
}

.report-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}

.report-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 17px;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid #e5e9e2;
    border-radius: 10px;
    background: #eef1ec;
}

.report-tab {
    min-height: 40px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #657067;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.report-tab:hover,
.report-tab.is-active {
    color: var(--green);
}

.report-tab.is-active {
    border-color: #e0e7df;
    background: var(--white);
    box-shadow: 0 2px 7px rgba(32, 43, 37, .06);
}

.report-tab:focus-visible { outline: 2px solid #72917a; outline-offset: 2px; }

.report-tab span {
    min-width: 22px;
    padding: 2px 6px;
    border-radius: 10px;
    color: #657568;
    background: #edf2eb;
    font-size: 11px;
    text-align: center;
}

.report-table-panel .content-heading {
    min-height: 60px;
    margin-top: 9px;
}

.report-table-wrap {
    border: 1px solid #e6e7e0;
    background: var(--white);
}

.report-table {
    min-width: 780px;
}

.report-empty {
    height: 80px;
    color: #858c83;
    text-align: center;
}

.table-pagination {
    min-height: 46px;
    padding: 7px 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e6e7e0;
    border-top: 0;
    color: #7a8179;
    background: var(--white);
    font-size: 9px;
}

.table-pagination>div {
    display: flex;
    gap: 7px;
}

.table-pagination a,
.table-pagination .is-disabled,
.table-pagination button {
    padding: 7px 9px;
    border: 1px solid #e1e4dc;
    color: var(--green);
    background: var(--white);
    font-size: 9px;
    text-decoration: none;
}

.table-pagination a:hover {
    background: #eef2ec;
}

.agenda-entry-form {
    margin: 4px 0 20px;
    border: 1px solid #e3e5dd;
    border-radius: 10px;
    background: var(--white);
}

.agenda-entry-form .dialog-heading { margin-bottom: 15px; }
.agenda-entry-form .dialog-heading h3 { margin: 5px 0 0; color: var(--ink); font-family: var(--display); font-size: 17px; }

.table-pagination button { cursor: pointer; }
.table-pagination button:disabled { color: #a0a59e; background: #f7f7f3; cursor: default; }

.table-pagination .is-disabled {
    color: #a0a59e;
    background: #f7f7f3;
}

@media print {

    body,
    .app-page {
        background: white;
    }

    .app-topbar,
    .app-sidebar,
    .app-heading-actions,
    .report-period,
    .report-tabs,
    .table-pagination,
    [data-print-report],
    .app-footer {
        display: none !important;
    }

    .app-shell {
        display: block;
    }

    .app-main {
        max-width: none;
        padding: 0;
    }

    .reports-view {
        display: block !important;
    }

    .report-table-panel[hidden] {
        display: none !important;
    }

    .table-wrap {
        overflow: visible;
        border: 1px solid #bbb;
    }

    .report-table {
        min-width: 0;
        font-size: 8pt;
    }
}

.app-footer {
    margin-top: 34px;
    padding-top: 13px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e5e5df;
    color: #90958e;
    font-size: 8px;
    letter-spacing: .4px;
}

.letter-dialog {
    width: 70vw;
    max-width: calc(100vw - 28px);
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
    padding: 0;
    border: 1px solid #e1e3dc;
    background: var(--white);
    box-shadow: 0 20px 70px rgba(26, 39, 30, .2);
}

.letter-dialog::backdrop {
    background: rgba(25, 35, 29, .42);
}

.letter-form {
    padding: 24px;
}

.dialog-heading {
    margin-bottom: 21px;
    display: flex;
    align-items: start;
    justify-content: space-between;
}

.dialog-heading h2 {
    margin: 6px 0 0;
    font-family: var(--display);
    font-size: 20px;
}

.close-dialog {
    font-size: 18px;
}

.letter-form>label {
    margin: 13px 0;
    display: grid;
    gap: 7px;
    color: #555f57;
    font-size: 10px;
    font-weight: 600;
}

.letter-form input,
.letter-form select {
    width: 100%;
    height: 39px;
    padding: 0 10px;
    border: 1px solid #dfe2da;
    border-radius: 0;
    outline-color: #77907c;
    color: var(--ink);
    background: var(--white);
    font-size: 11px;
}

.letter-form input::placeholder {
    color: #a0a59e;
}

.letter-number-note {
    margin: -3px 0 4px;
    padding: 10px 11px;
    border-left: 2px solid #77907c;
    color: #687268;
    background: #f1f4ef;
    font-size: 10px;
    line-height: 1.6;
}

.letter-number-note strong {
    color: #365b44;
    white-space: nowrap;
}

.dialog-actions {
    margin-top: 21px;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 18px;
}

.dialog-actions .button {
    min-height: 39px;
}

.auth-page {
    min-height: 100vh;
    padding: 34px 20px;
    display: grid;
    place-items: center;
    background: var(--paper);
}

.auth-layout {
    width: min(100%, 455px);
}

.auth-brand {
    margin: 0 0 25px 2px;
}

.auth-panel {
    padding: 31px;
    border: 1px solid var(--line);
    background: var(--white);
}

.auth-panel h1 {
    margin: 12px 0 8px;
    font-family: var(--display);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
}

.auth-description,
.auth-footnote {
    color: #777f77;
    font-size: 11px;
    line-height: 1.7;
}

.auth-description {
    margin: 0 0 22px;
}

.auth-footnote {
    margin: 18px 0 0;
}

.auth-error {
    margin: 0 0 15px;
    padding: 11px 12px;
    border-left: 3px solid #b45c49;
    color: #804538;
    background: #f8ece8;
    font-size: 11px;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 15px;
}

.auth-form label,
.user-create-form label {
    display: grid;
    gap: 7px;
    color: #555f57;
    font-size: 10px;
    font-weight: 600;
}

.auth-form input,
.user-create-form input,
.user-create-form select,
.user-role-form select {
    width: 100%;
    height: 39px;
    padding: 0 10px;
    border: 1px solid #dfe2da;
    border-radius: 0;
    outline-color: #77907c;
    color: var(--ink);
    background: var(--white);
    font-size: 11px;
}

.auth-form label small,
.user-create-form label small {
    color: #858b83;
    font-size: 9px;
    font-weight: 400;
}

.auth-form .button {
    margin-top: 4px;
}

.auth-form .button:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}

.auth-back {
    display: inline-block;
    margin: 17px 0 0 2px;
    color: #70776f;
    font-size: 10px;
}

.auth-back:hover {
    color: var(--green);
}

.users-main {
    width: min(1050px, calc(100% - 48px));
    margin: 38px auto;
}

.users-main .app-heading {
    align-items: center;
}

.users-section {
    margin-top: 13px;
}

.users-section .content-heading {
    margin-top: 16px;
}

.users-table td {
    white-space: normal;
}

.user-role-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-role-form select {
    width: auto;
    min-width: 115px;
    height: 30px;
    padding: 0 5px;
    font-size: 9px;
}

.user-create-form {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    border: 1px solid #e6e7e0;
    background: var(--white);
}

.user-create-form .button {
    align-self: end;
    min-height: 39px;
}

.role-guide {
    margin-top: 22px;
    padding: 13px 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 9px 15px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: #777f77;
    font-size: 10px;
}

.role-guide strong {
    color: #435448;
}

.users-main .app-footer {
    margin-top: 23px;
}

@media (min-width: 1500px) {

    .portfolio-header,
    .portfolio-hero,
    .work-section,
    .tracking-section,
    .public-agenda-section,
    .about-section,
    .contact-section,
    .portfolio-footer {
        padding-right: max(7.2%, calc((100% - 1280px)/2));
        padding-left: max(7.2%, calc((100% - 1280px)/2));
    }
}

@media (max-width: 1000px) {
    .portfolio-header {
        padding-right: 5%;
        padding-left: 5%;
    }

    .portfolio-hero,
    .work-section,
    .tracking-section,
    .public-agenda-section,
    .about-section,
    .contact-section,
    .portfolio-footer {
        padding-right: 5%;
        padding-left: 5%;
    }

    .portfolio-hero {
        padding-right: 5%;
        padding-left: 5%;
    }

    .portfolio-hero h1 {
        font-size: 53px;
    }

    .project-feature {
        grid-template-columns: .85fr 1.15fr;
    }

    .project-copy {
        padding-left: 25px;
    }

    .project-preview {
        margin-right: 18px;
        padding: 14px;
    }

    .app-shell {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .app-main {
        padding-right: 24px;
        padding-left: 24px;
    }

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

@media (max-width: 820px) {
    .letter-dialog {
        width: calc(100vw - 28px);
    }

    .portfolio-header {
        height: 65px;
        padding: 0 20px;
    }

    .portfolio-nav {
        gap: 10px;
        font-size: 9px;
    }

    .public-active-leave-section { padding: 54px 22px; }
    .public-active-leave-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-agenda-section { padding: 54px 22px; }
    .public-agenda-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .header-cta {
        padding: 9px;
        font-size: 9px;
    }

    .header-cta span {
        margin-left: 4px;
    }

    .wordmark {
        gap: 6px;
        font-size: 12px;
    }

    .wordmark-mark {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }

    .portfolio-hero {
        min-height: 0;
        padding: 18px 22px 53px;
    }

    .carousel-slide figcaption {
        right: 16px;
        bottom: 18px;
        left: 16px;
        gap: 9px;
    }

    .carousel-slide figcaption strong {
        font-size: 11px;
    }

    .carousel-dots {
        right: 17px;
        bottom: 21px;
    }

    .carousel-arrow {
        width: 34px;
        height: 34px;
        font-size: 22px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .hero-copy {
        margin-top: 35px;
    }

    .portfolio-hero h1 {
        margin-top: 17px;
        font-size: clamp(40px, 10vw, 55px);
    }

    .hero-description {
        max-width: 440px;
        font-size: 13px;
    }

    .hero-footnote {
        margin-top: 37px;
        gap: 13px;
        font-size: 8px;
    }

    .scroll-cue {
        display: none;
    }

    .work-section {
        padding: 67px 22px 72px;
    }

    .section-heading {
        margin-bottom: 27px;
        display: block;
    }

    .section-heading h2,
    .about-content h2 {
        font-size: 37px;
    }

    .section-intro {
        margin: 17px 0 0;
        font-size: 12px;
    }

    .project-feature {
        grid-template-columns: 1fr;
    }

    .project-copy {
        padding: 26px 22px 23px;
    }

    .project-copy h3 {
        margin-top: 28px;
        font-size: 27px;
    }

    .project-link {
        margin-top: 19px;
    }

    .project-preview {
        margin: 0 12px 13px;
        padding: 13px;
    }

    .preview-row {
        grid-template-columns: 1.4fr .75fr .6fr;
        gap: 5px;
        font-size: 7px;
    }

    .preview-row-head {
        font-size: 6px;
    }

    .preview-stats {
        gap: 5px;
    }

    .preview-stats div {
        min-height: 74px;
        padding: 8px;
    }

    .preview-stats small {
        font-size: 6px;
    }

    .preview-title {
        font-size: 10px;
    }

    .preview-date {
        font-size: 6px;
    }

    .about-section {
        padding: 63px 22px 69px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-label {
        flex-direction: row;
    }

    .about-content h2 {
        margin-top: 0;
    }

    .about-content>p {
        font-size: 12px;
    }

    .skills-line {
        gap: 13px;
        font-size: 9px;
    }

    .contact-section {
        padding: 54px 22px 27px;
    }

    .contact-layout {
        padding-bottom: 29px;
        align-items: start;
        flex-direction: column;
        gap: 23px;
    }

    .contact-layout h2 {
        font-size: 42px;
    }

    .contact-button {
        margin-bottom: 0;
    }

    .contact-bottom {
        align-items: start;
        flex-direction: column;
        gap: 14px;
        font-size: 9px;
    }

    .public-active-leave-heading { align-items: start; flex-direction: column; gap: 12px; }
    .public-active-leave-grid { grid-template-columns: 1fr; }
    .public-agenda-heading { align-items: start; flex-direction: column; gap: 12px; }
    .public-agenda-grid { grid-template-columns: 1fr; }

    .tracking-section { padding: 52px 22px; }
    .tracking-form>div { align-items: stretch; flex-direction: column; }
    .tracking-form .button { justify-content: center; }
    .tracking-result dl { grid-template-columns: 1fr; }

    .portfolio-footer {
        padding: 16px 22px;
        flex-wrap: wrap;
        font-size: 9px;
    }

    .portfolio-footer>span {
        order: 3;
        width: 100%;
    }

    .app-topbar {
        height: 60px;
        padding: 0 15px;
    }

    .sidebar-toggle { display: inline-grid; place-items: center; flex: 0 0 38px; }

    .app-brand strong {
        font-size: 11px;
    }

    .back-portfolio {
        font-size: 10px;
    }

    .account-controls {
        gap: 10px;
    }

    .account-name {
        display: none;
    }

    .app-shell {
        min-height: calc(100vh - 60px);
        display: block;
    }

    .app-sidebar {
        padding: 10px 11px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .sidebar-label,
    .sidebar-note,
    .sidebar-portfolio {
        display: none;
    }

    .app-navigation {
        display: flex;
        gap: 3px;
        overflow-x: auto;
    }

    .nav-item {
        min-height: 36px;
        padding: 0 9px;
        flex: 0 0 auto;
        gap: 6px;
        font-size: 10px;
    }

    .nav-item>span {
        font-size: 13px;
    }

    .app-main {
        padding: 26px 15px 16px;
    }

    .app-heading {
        margin-bottom: 18px;
        align-items: start;
        flex-direction: column;
        gap: 15px;
    }

    .app-heading h1 {
        font-size: 23px;
    }

    .app-heading-actions {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .today-label {
        font-size: 9px;
    }

    .metric-grid {
        gap: 8px;
    }

    .metric-card {
        min-height: 119px;
        padding: 12px;
    }

    .metric-icon {
        top: 10px;
        right: 10px;
        width: 23px;
        height: 23px;
    }

    .metric-label {
        font-size: 8px;
    }

    .metric-card strong {
        margin-top: 15px;
        font-size: 24px;
    }

    .content-heading {
        min-height: 65px;
    }

    .table-tools {
        padding: 0 8px;
    }

    .search-field {
        width: 80%;
    }

    .search-field input {
        font-size: 9px;
    }

    .letters-table {
        min-width: 680px;
    }

    .agenda-toolbar {
        align-items: stretch;
        flex-wrap: wrap;
        gap: 8px;
    }

    .agenda-toolbar>.search-field {
        flex-basis: 100%;
    }

    .agenda-filters {
        flex: 1;
    }

    .agenda-filters label,
    .agenda-filters select {
        min-width: 0;
        width: 100%;
    }

    .agenda-metrics {
        grid-template-columns: 1fr;
    }

    .agenda-form-grid {
        gap: 8px;
    }

    .inventory-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .inventory-heading-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .inventory-heading-actions .button {
        flex: 1 1 auto;
    }

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

    .inventory-toolbar {
        align-items: stretch;
        flex-wrap: wrap;
        gap: 8px;
    }

    .inventory-toolbar .search-field {
        flex-basis: 100%;
    }

    .inventory-toolbar select {
        width: 100%;
    }

    .inventory-form-grid {
        gap: 8px;
    }

    .app-footer {
        gap: 10px;
        font-size: 7px;
    }

    .auth-page {
        padding: 22px 14px;
    }

    .auth-panel {
        padding: 23px 19px;
    }

    .auth-panel h1 {
        font-size: 23px;
    }

    .users-main {
        width: calc(100% - 30px);
        margin: 25px auto;
    }

    .report-period {
        align-items: stretch;
    }

    .report-period label {
        flex: 1 1 130px;
    }

    .report-period input {
        width: 100%;
    }

    .report-period .button {
        flex: 1 1 100%;
    }

    .report-range-label {
        margin: 0;
        padding: 2px 0 0;
    }

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

    .table-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .table-pagination>div {
        justify-content: space-between;
    }

    .user-create-form {
        grid-template-columns: 1fr;
        padding: 13px;
    }

    .users-table {
        min-width: 620px;
    }

    .role-guide {
        gap: 9px;
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.document-view-button {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid #dce5d9;
    border-radius: 7px;
    color: var(--green);
    background: #f3f6f1;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.document-view-button:hover { background: #e8efe5; }

.employee-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 22px;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid #e5e9e2;
    border-radius: 10px;
    background: #eef1ec;
}
.employee-tab {
    min-height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #657067;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.employee-tab:hover { color: var(--green); }
.employee-tab.is-active {
    border-color: #e0e7df;
    color: var(--green);
    background: var(--white);
    box-shadow: 0 2px 7px rgba(32, 43, 37, .06);
}
.employee-tab:focus-visible { outline: 2px solid #72917a; outline-offset: 2px; }
.employee-tab span {
    min-width: 22px;
    padding: 2px 6px;
    border-radius: 10px;
    color: #657568;
    background: #edf2eb;
    font-size: 11px;
    text-align: center;
}
.employee-tab span.has-reminders {
    border: 1px solid #f2c4a4;
    color: #a44920;
    background: #fff0e5;
}
.employee-tab-panel[hidden] { display: none !important; }
.employee-tab-panel > .content-heading { margin-top: 0; }
.agenda-tab-panel[hidden] { display: none !important; }
.agenda-tab-panel > .content-heading { margin-top: 0; }
.inventory-tab-panel[hidden] { display: none !important; }
.inventory-tab-panel > .content-heading { margin-top: 0; }
.employee-search-toolbar {
    margin: 0 0 12px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e4e8e1;
    border-radius: 8px;
    background: var(--white);
}
.employee-search-toolbar .search-field { width: auto; flex: 1 1 260px; }
.employee-search-toolbar .search-field input { font-size: 13px; }
.employee-search-toolbar .button { min-height: 36px; white-space: nowrap; }
.employee-search-toolbar .quiet-button { white-space: nowrap; }

/* Final shared type scale overrides older per-section values. */
body { font-size: var(--text-base); line-height: 1.6; }
.eyebrow { font-size: var(--text-xs); }
.portfolio-nav { font-size: var(--text-sm); }
.portfolio-header .wordmark { font-size: var(--text-base); }
.header-cta, .button, .text-link, .contact-button { font-size: var(--text-sm); }
.portfolio-hero h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(40px, 5.2vw, 68px);
    line-height: 1.08;
    letter-spacing: -.035em;
}
.hero-description { font-size: var(--text-base); line-height: 1.75; }
.section-heading h2, .about-content h2, .contact-layout h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: var(--text-2xl);
    line-height: 1.15;
    letter-spacing: -.025em;
}
.project-copy h3 { font-family: var(--display); font-weight: 600; font-size: var(--text-xl); line-height: 1.25; }
.project-copy p, .section-intro { font-size: var(--text-sm); line-height: 1.75; }
.about-content>p { font-size: var(--text-base); line-height: 1.75; }
.app-heading h1, .content-heading h2, .agenda-entry-form .dialog-heading h3 {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -.02em;
}
.app-heading h1 { font-size: var(--text-xl); line-height: 1.25; }
.app-subtitle { font-size: var(--text-sm); line-height: 1.55; }
.content-heading h2 { font-size: var(--text-base); line-height: 1.35; }
.tracking-copy h2 { font-size: var(--text-2xl); line-height: 1.12; }
.public-active-leave-heading h2, .public-agenda-heading h2 {
    line-height: 1.12;
    letter-spacing: -.025em;
}
.public-active-leave-heading p:not(.eyebrow), .public-agenda-heading p:not(.eyebrow) {
    font-size: var(--text-sm);
    line-height: 1.65;
}

@media (max-width: 820px) {
    .portfolio-nav { font-size: 10px; }
    .portfolio-hero h1 { font-size: clamp(38px, 9vw, 54px); }
    .section-heading h2, .about-content h2, .contact-layout h2,
    .tracking-copy h2 { font-size: clamp(28px, 7vw, 38px); }
}

@media (max-width: 560px) {
    .employee-tabs { gap: 3px; margin-bottom: 16px; padding: 4px; }
    .employee-tab { min-height: 40px; padding: 0 11px; font-size: 12px; }
    .employee-search-toolbar { flex-wrap: wrap; }
    .employee-search-toolbar .search-field { flex-basis: 100%; }
    .employee-search-toolbar .button { flex: 1; }
}
