@font-face {
    font-family: "Kapta General";
    src: url("fonts/GeneralSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Kapta General";
    src: url("fonts/GeneralSans-Semibold.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Kapta Satoshi";
    src: url("fonts/Satoshi-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

:root {
    --ink: #161616;
    --muted: #777;
    --line: #dededc;
    --surface: #ffffff;
    --soft: #f6f6f4;
    --purple: #e5555c;
    --purple-dark: #c94148;
    --purple-soft: #fff0f1;
    --green: #1aa878;
    --amber: #e89a31;
    --red: #e5555c;
    --navy: #161616;
    --shadow: 0 18px 50px rgba(22,22,22,.07);
    --radius: 18px;
    --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--font); background: #fbfaf8; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(229,85,92,.25); outline-offset: 2px; }

.public-body { min-height: 100vh; background: radial-gradient(circle at 92% 5%, rgba(229,85,92,.07), transparent 30%), #fbfaf8; }
.public-nav { height: 78px; max-width: 1240px; padding: 0 28px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand > span, .small-logo { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--purple); border-radius: 10px; font-weight: 850; font-size: 19px; box-shadow: 0 7px 16px rgba(229,85,92,.25); }
.brand strong { letter-spacing: -.7px; font-size: 22px; }
.brand i { font-size: 10px; text-transform: uppercase; font-style: normal; letter-spacing: 1.3px; color: var(--muted); padding: 4px 7px; background: #f0eff6; border-radius: 5px; }
.nav-right { display: flex; align-items: center; gap: 30px; font-size: 13px; }
.nav-right > a { color: #56586d; font-weight: 650; }
.service-status { color: #707286; display: flex; align-items: center; gap: 8px; }
.service-status i, .live-dot { display: inline-block; width: 7px; height: 7px; background: #25b786; border-radius: 99px; box-shadow: 0 0 0 4px rgba(37,183,134,.12); }

/* Portal público inspirado na linguagem visual de kapta.pt */
.public-body { font-family: "Kapta General", var(--font); color: #161616; background: radial-gradient(circle at 7% 20%, rgba(229,85,92,.16), transparent 32%), #fff; }
.public-nav { max-width: 1530px; height: 98px; padding: 0 4.8vw; }
.kapta-wordmark { display: inline-flex; align-items: center; line-height: 0; }
.kapta-wordmark img { display: block; width: 130px; height: auto; }
.kapta-public-label { display: flex; align-items: center; gap: 10px; color: #656565; font-size: 12px; }
.kapta-public-label i { width: 7px; height: 7px; background: #3aa878; border-radius: 50%; box-shadow: 0 0 0 4px rgba(58,168,120,.12); }
.kapta-public-links { display: flex; align-items: center; gap: 29px; font-size: 14px; }
.kapta-public-links > a:first-child { transition: opacity .2s; }
.kapta-public-links > a:first-child:hover { opacity: .55; }
.team-access { min-height: 46px; padding: 0 21px; display: inline-flex; align-items: center; gap: 22px; border: 1px solid #222; border-radius: 99px; transition: background .2s, color .2s; }
.team-access:hover { color: #fff; background: #161616; }
.kapta-support { width: min(1530px, 100%); min-height: calc(100vh - 98px); margin: 0 auto; padding: 72px 4.8vw 90px; display: grid; grid-template-columns: minmax(330px, .8fr) minmax(580px, 1.2fr); gap: clamp(55px, 8vw, 145px); align-items: start; }
.support-intro { position: sticky; top: 52px; padding-top: 17px; }
.kapta-slash { display: block; margin-bottom: 29px; font-size: 13px; font-weight: 600; }
.support-intro h1 { margin: 0 0 31px; font-family: "Kapta Satoshi", "Helvetica Neue", sans-serif; font-size: clamp(67px, 7.15vw, 110px); font-weight: 400; line-height: .91; letter-spacing: -5.8px; }
.support-intro > p { max-width: 475px; margin: 0 0 56px; color: #656565; font-size: 18px; line-height: 1.45; }
.support-promise { max-width: 490px; min-height: 61px; display: flex; gap: 19px; align-items: flex-start; padding: 15px 0; border-top: 1px solid rgba(22,22,22,.17); }
.support-promise:last-child { border-bottom: 1px solid rgba(22,22,22,.17); }
.support-promise > span { width: 27px; padding-top: 2px; color: #a4a4a4; font-size: 10px; font-weight: 600; }
.support-promise > div { display: flex; flex-direction: column; gap: 4px; }
.support-promise strong { font-size: 13px; font-weight: 600; }
.support-promise small { color: #777; font-size: 11px; line-height: 1.4; }
.support-form-panel { position: relative; overflow: hidden; padding: 40px clamp(28px, 3.4vw, 53px) 42px; background: rgba(246,246,244,.96); border: 1px solid #dededc; border-radius: 22px; box-shadow: 0 28px 70px rgba(22,22,22,.06); }
.support-form-panel::before { content: ""; position: absolute; top: 0; right: 0; width: 72px; height: 5px; background: #e5555c; }
.support-form-heading { display: flex; justify-content: space-between; gap: 25px; align-items: flex-start; margin-bottom: 37px; }
.support-form-heading > div:first-child { display: flex; flex-direction: column; gap: 8px; }
.support-form-heading span { color: #777; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
.support-form-heading h2 { margin: 0; font-family: "Kapta Satoshi", "Helvetica Neue", sans-serif; font-size: clamp(27px, 2.3vw, 36px); font-weight: 400; letter-spacing: -1.5px; }
.support-live { display: flex; align-items: center; gap: 8px; padding-top: 7px; color: #777; font-size: 10px; white-space: nowrap; }
.support-live i { width: 7px; height: 7px; background: #3aa878; border-radius: 50%; box-shadow: 0 0 0 4px rgba(58,168,120,.12); }
.kapta-ticket-form fieldset { padding: 0 0 27px; margin: 0 0 27px; border: 0; border-bottom: 1px solid #dcdcd9; }
.kapta-ticket-form legend { width: 100%; display: flex; gap: 12px; margin-bottom: 21px; color: #161616; font-size: 12px; font-weight: 600; }
.kapta-ticket-form legend span { color: #e5555c; font-size: 9px; padding-top: 2px; }
.kapta-ticket-form .field { gap: 9px; margin-bottom: 17px; }
.kapta-ticket-form .field label { color: #4f4f4f; font-size: 11px; font-weight: 600; }
.kapta-ticket-form .field label b { color: #e5555c; }
.kapta-ticket-form .field input,
.kapta-ticket-form .field select,
.kapta-ticket-form .field textarea { color: #161616; background: #fff; border: 1px solid #d8d8d5; border-radius: 12px; }
.kapta-ticket-form .field input,
.kapta-ticket-form .field select { height: 50px; padding: 0 15px; }
.kapta-ticket-form .field textarea { min-height: 132px; padding: 15px; }
.kapta-ticket-form .field input:focus,
.kapta-ticket-form .field select:focus,
.kapta-ticket-form .field textarea:focus { border-color: #161616; box-shadow: 0 0 0 3px rgba(22,22,22,.07); }
.kapta-ticket-form .field.has-error input,
.kapta-ticket-form .field.has-error select,
.kapta-ticket-form .field.has-error textarea { border-color: #e5555c; }
.integration-selects { display: grid; grid-template-columns: 1fr 34px 1fr; gap: 11px; align-items: center; }
.integration-selects .field { margin-bottom: 0; }
.connection-arrow { width: 34px; height: 34px; margin-top: 18px; display: grid; place-items: center; color: #fff; background: #161616; border-radius: 50%; font-size: 14px; }
.field-help { margin: 13px 0 0; color: #8a8a8a; font-size: 9px; line-height: 1.5; }
.kapta-ticket-form .two-columns { gap: 0 15px; }
.problem-grid { grid-template-columns: minmax(0, 1.55fr) minmax(170px, .75fr); gap: 15px; }
.impact-field { min-width: 0; }
.kapta-form-alert { margin-bottom: 25px; padding: 13px 15px; display: flex; flex-direction: column; gap: 3px; color: #843c3f; background: #fce8e9; border-left: 3px solid #e5555c; font-size: 10px; }
.kapta-form-alert strong { font-size: 11px; }
.kapta-submit-row { display: flex; gap: 25px; align-items: center; justify-content: space-between; }
.kapta-submit-row p { max-width: 310px; margin: 0; color: #8a8a8a; font-size: 9px; line-height: 1.5; }
.kapta-submit { min-width: 185px; height: 51px; padding: 0 17px 0 23px; display: inline-flex; justify-content: space-between; align-items: center; color: #fff; background: #161616; border: 1px solid #161616; border-radius: 99px; font-size: 12px; font-weight: 600; transition: color .2s, background .2s, transform .2s; }
.kapta-submit span { width: 29px; height: 29px; display: grid; place-items: center; color: #161616; background: #fff; border-radius: 50%; font-size: 13px; }
.kapta-submit:hover { color: #161616; background: transparent; transform: translateY(-1px); }
.kapta-submit:hover span { color: #fff; background: #e5555c; }
.kapta-submit:disabled { opacity: .58; cursor: wait; }
.public-footer { max-width: 1530px; padding: 25px 4.8vw; font-family: "Kapta General", var(--font); color: #777; }
.public-footer a { color: #161616; }
.dark-page .kapta-wordmark img { filter: brightness(0) invert(1); }
.dark-page .kapta-public-links, .dark-page .kapta-public-label { color: #fff; }
.dark-page .team-access { border-color: rgba(255,255,255,.5); }

.home-main { max-width: 1120px; padding: 82px 28px 44px; margin: 0 auto; }
.home-hero { max-width: 760px; margin-bottom: 72px; }
.eyebrow, .section-kicker, .admin-eyebrow { color: var(--purple); text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: 1.7px; }
.eyebrow { display: flex; gap: 10px; align-items: center; }
.eyebrow span { width: 24px; height: 1px; background: var(--purple); }
.home-hero h1 { margin: 20px 0; letter-spacing: -3.8px; font-size: clamp(48px, 7vw, 76px); line-height: .99; font-weight: 750; }
.home-hero h1 em { font-style: normal; color: var(--purple); font-weight: 500; }
.home-hero > p { max-width: 620px; color: var(--muted); font-size: 18px; line-height: 1.7; margin: 0; }
.integration-picker { margin-top: 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.section-heading h2 { font-size: 25px; letter-spacing: -1px; margin: 7px 0 0; }
.text-link { color: var(--purple); font-size: 13px; font-weight: 750; }
.text-link span { display: inline-block; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.integration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.integration-card { position: relative; min-height: 250px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 38px rgba(27,27,62,.05); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.integration-card::after { content: ""; position: absolute; width: 170px; height: 170px; border: 1px solid #f0eff9; border-radius: 50%; top: -90px; right: -60px; box-shadow: 0 0 0 28px rgba(245,244,252,.7), 0 0 0 56px rgba(249,249,252,.8); }
.integration-card:hover { transform: translateY(-5px); border-color: #d8d4ff; box-shadow: 0 22px 55px rgba(58,49,130,.12); }
.integration-logos { display: flex; align-items: center; gap: 13px; z-index: 1; }
.platform-logo, .platform-dot { flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: var(--platform); font-weight: 850; border-radius: 14px; box-shadow: 0 8px 18px color-mix(in srgb, var(--platform) 26%, transparent); }
.platform-logo { width: 48px; height: 48px; font-size: 21px; }
.platform-logo.small { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; box-shadow: none; }
.route-arrow { color: #b5b4c4; font-size: 19px; }
.integration-card-copy h3 { font-size: 22px; margin: 28px 0 9px; letter-spacing: -.7px; }
.integration-card-copy h3 span { color: #aaa9b8; font-weight: 400; padding: 0 3px; }
.integration-card-copy p { color: var(--muted); line-height: 1.55; margin: 0 0 26px; font-size: 14px; }
.card-action { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid #eeeeF3; font-size: 13px; font-weight: 750; }
.card-action b { width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; background: var(--purple-soft); color: var(--purple); }
.home-footer-note { margin-top: 42px; padding: 22px 26px; display: flex; align-items: center; border: 1px dashed #dedde8; border-radius: 16px; color: #5f6173; }
.trust-mark { width: 38px; height: 38px; border-radius: 11px; background: #eceafc; color: var(--purple); font-weight: 850; display: grid; place-items: center; margin-right: 14px; }
.home-footer-note div:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.home-footer-note strong { color: var(--ink); font-size: 13px; }
.home-footer-note span { font-size: 12px; }
.home-footer-note > a { color: var(--purple); margin-left: auto; font-size: 13px; font-weight: 700; }
.public-footer { max-width: 1180px; margin: 70px auto 0; padding: 24px 28px; display: flex; justify-content: space-between; border-top: 1px solid #eeedf3; color: #a0a1ae; font-size: 11px; }

.request-main { max-width: 1180px; padding: 46px 28px 60px; margin: 0 auto; }
.back-link { display: inline-block; color: #77798d; font-size: 12px; font-weight: 650; margin-bottom: 30px; }
.request-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 34px; }
.request-heading h1 { margin: 7px 0 8px; font-size: 40px; letter-spacing: -1.9px; }
.request-heading p { margin: 0; color: var(--muted); }
.route-display { padding: 12px 16px; display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 8px 28px rgba(32,30,77,.05); font-size: 13px; }
.route-display i { margin: 0 4px; color: #aaaabd; font-style: normal; }
.platform-dot { width: 29px; height: 29px; border-radius: 9px; box-shadow: none; font-size: 12px; }
.request-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 24px; align-items: start; }
.card, .aside-card, .admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 35px rgba(31,29,70,.045); }
.ticket-form { padding: 36px; }
.ticket-form fieldset { border: 0; padding: 0 0 34px; margin: 0 0 34px; border-bottom: 1px solid #eeeeF3; }
.ticket-form legend { display: flex; align-items: center; gap: 11px; width: 100%; margin-bottom: 25px; font-size: 15px; font-weight: 800; }
.ticket-form legend span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--purple-soft); color: var(--purple); font-size: 12px; }
.form-grid { display: grid; gap: 19px; }
.two-columns { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 19px; }
.field:last-child { margin-bottom: 0; }
.field label, .assign-form label { color: #45475a; font-size: 12px; font-weight: 750; }
.field label b { color: var(--purple); }
.field input, .field select, .field textarea, .assign-form select, .note-form textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid #dedee7; border-radius: 10px; outline: 0; transition: border-color .2s ease, box-shadow .2s ease; }
.field input, .field select, .assign-form select { height: 44px; padding: 0 13px; }
.field textarea, .note-form textarea { resize: vertical; padding: 13px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder, .note-form textarea::placeholder { color: #b3b4bf; }
.field input:focus, .field select:focus, .field textarea:focus, .assign-form select:focus, .note-form textarea:focus { border-color: #e5555c; box-shadow: 0 0 0 3px rgba(229,85,92,.10); }
.field.has-error input, .field.has-error textarea { border-color: #dc6a70; }
.field-error { color: #cf4d55; font-size: 11px; }
.label-row { display: flex; justify-content: space-between; }
.label-row small { color: #91918e; font-size: 10px; }
.severity-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.severity-choice { position: relative; display: flex; gap: 9px; align-items: center; padding: 12px; border: 1px solid #e3e3df; border-radius: 10px; cursor: pointer; }
.severity-choice input { position: absolute; opacity: 0; }
.severity-choice:has(input:checked) { border-color: #e5555c; background: #fff5f5; box-shadow: 0 0 0 2px rgba(229,85,92,.08); }
.severity-choice > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.severity-choice strong { font-size: 11px; }
.severity-choice small { color: #9293a2; font-size: 9px; margin-top: 2px; white-space: nowrap; }
.severity-icon { width: 9px; height: 9px; border-radius: 50%; background: #a4a7b1; }
.severity-icon.severity-normal { background: #555550; }
.severity-icon.severity-high { background: var(--amber); }
.severity-icon.severity-critical { background: var(--red); }
.form-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.form-submit-row > span { max-width: 310px; color: #9697a6; font-size: 10px; line-height: 1.5; }
.button { min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; border: 0; border-radius: 10px; font-size: 12px; font-weight: 800; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .65; cursor: wait; transform: none; }
.button-primary { color: #fff; background: var(--purple); box-shadow: 0 9px 20px rgba(229,85,92,.24); }
.button-primary:hover { background: var(--purple-dark); box-shadow: 0 12px 24px rgba(229,85,92,.3); }
.button-secondary { color: #3f3f3d; background: #fff; border: 1px solid #d8d8d4; box-shadow: 0 5px 14px rgba(22,22,22,.04); }
.button-dark { color: #fff; background: var(--navy); }
.button-small { min-height: 35px; }
.button-full { width: 100%; }
.request-aside { display: flex; flex-direction: column; gap: 16px; }
.aside-card { padding: 25px; }
.aside-label { color: #999aaa; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.routing-avatar { width: 45px; height: 45px; margin: 23px 0 13px; display: grid; place-items: center; border-radius: 14px; color: var(--purple); background: var(--purple-soft); font-weight: 850; }
.routing-preview h3, .help-card h3 { font-size: 14px; margin: 0 0 7px; }
.routing-preview p, .help-card p { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 0; }
.routing-meta { margin-top: 22px; padding-top: 17px; border-top: 1px solid #eeeef2; color: #767889; font-size: 10px; display: flex; align-items: center; gap: 8px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #20b581; box-shadow: 0 0 0 4px rgba(32,181,129,.12); }
.help-card { display: flex; gap: 13px; }
.help-icon { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; background: #f1f1f6; color: #77798c; border-radius: 9px; font-weight: 850; font-size: 12px; }
.form-alert { padding: 13px 16px; margin-bottom: 20px; color: #8a6017; background: #fff6e8; border: 1px solid #f1d39a; border-radius: 11px; font-size: 12px; }
.form-alert.error { color: #a34449; background: #fff1f2; border-color: #f0c6c8; }

.tracking-main { width: min(720px, calc(100% - 40px)); margin: 70px auto; text-align: center; }
.success-orbit { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; background: #fff0f1; box-shadow: 0 0 0 12px #fff8f8; }
.success-orbit span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--purple); color: #fff; font-size: 20px; font-weight: 800; }
.centered { display: block; text-align: center; }
.tracking-main > h1 { margin: 9px 0 8px; font-size: 36px; letter-spacing: -1.6px; }
.tracking-intro { color: var(--muted); margin: 0 0 34px; }
.tracking-card { overflow: hidden; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.tracking-top { display: flex; align-items: center; justify-content: space-between; padding: 19px 24px; border-bottom: 1px solid #ededf2; }
.tracking-top > div { display: flex; flex-direction: column; gap: 4px; }
.ticket-reference { color: #9a9baa; font-size: 9px; text-transform: uppercase; letter-spacing: 1.3px; font-weight: 800; }
.copy-reference { padding: 0; color: var(--ink); background: none; border: 0; font-size: 13px; font-weight: 850; }
.copy-reference span { margin-left: 7px; color: var(--purple); font-size: 9px; }
.tracking-subject { padding: 28px 28px 23px; }
.tracking-subject h2 { margin: 15px 0 7px; font-size: 20px; }
.tracking-subject p { margin: 0; color: var(--muted); font-size: 11px; }
.mini-route { display: flex; align-items: center; gap: 7px; color: #5f6071; font-size: 11px; font-weight: 700; }
.mini-route span, .table-route > span { width: 23px; height: 23px; display: grid; place-items: center; background: var(--platform); color: #fff; border-radius: 7px; font-size: 9px; font-weight: 850; }
.mini-route i { font-style: normal; color: #afb0ba; margin: 0 3px; }
.public-progress { display: grid; grid-template-columns: repeat(4, 1fr); padding: 24px 26px; background: #fafafd; border-top: 1px solid #efeff3; border-bottom: 1px solid #efeff3; }
.progress-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #a2a3af; font-size: 9px; }
.progress-step::after { content: ""; position: absolute; left: calc(50% + 15px); right: calc(-50% + 15px); top: 11px; height: 1px; background: #dcdce5; }
.progress-step:last-child::after { display: none; }
.progress-step > span { width: 23px; height: 23px; z-index: 1; display: grid; place-items: center; border: 1px solid #dcdce4; background: #fff; border-radius: 50%; font-size: 8px; }
.progress-step.done { color: #4c4d60; }
.progress-step.done > span { color: #fff; background: var(--purple); border-color: var(--purple); }
.progress-step.done::after { background: var(--purple); }
.progress-step.current strong { color: var(--purple); }
.tracking-assignee { display: flex; align-items: center; padding: 21px 25px; }
.agent-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--purple); background: var(--purple-soft); font-weight: 850; margin-right: 12px; }
.tracking-assignee > div:nth-child(2), .tracking-updated { display: flex; flex-direction: column; gap: 3px; }
.tracking-assignee span { color: #9b9caa; font-size: 9px; }
.tracking-assignee strong { font-size: 11px; }
.tracking-updated { margin-left: auto; text-align: right; }
.tracking-home-link { display: inline-block; margin-top: 26px; }

.dark-page { background: #161616; }
.dark-page .public-nav { color: #fff; }
.dark-page .nav-right, .dark-page .public-footer { display: none; }
.dark-page .brand i { color: #b3b3b0; background: rgba(255,255,255,.08); }
.login-main { min-height: calc(100vh - 98px); display: grid; grid-template-columns: 1fr 1fr; color: #fff; }
.login-panel { padding: 48px max(40px, 8vw) 60px; background: radial-gradient(circle at 10% 90%, rgba(229,85,92,.20), transparent 35%), #161616; }
.login-panel .back-link { color: #c1c1bd; }
.login-copy { margin: 64px 0 60px; max-width: 470px; }
.login-copy h1 { margin: 14px 0 20px; font-family: "Kapta Satoshi", "Helvetica Neue", sans-serif; font-size: clamp(45px, 5vw, 67px); font-weight: 400; line-height: .98; letter-spacing: -3px; }
.login-copy p { color: #c3c3bf; line-height: 1.7; }
.login-feature { max-width: 410px; display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); }
.login-feature > span { color: #e5555c; font-size: 10px; font-weight: 800; }
.login-feature > div { display: flex; flex-direction: column; gap: 4px; }
.login-feature strong { font-size: 13px; }
.login-feature small { color: #aaa9a5; font-size: 10px; }
.login-form-wrap { display: grid; place-items: center; padding: 50px; background: #f6f6f4; color: var(--ink); }
.login-form { width: min(380px, 100%); }
.login-form-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 34px; }
.login-form-heading h2 { margin: 0 0 5px; font-size: 23px; }
.login-form-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.demo-access { margin-top: 24px; padding: 13px 15px; display: flex; align-items: center; gap: 9px; border: 1px dashed #d7d7d2; border-radius: 10px; color: #777773; font-size: 9px; }
.demo-access strong { color: #3f3f3d; margin-right: auto; }
.demo-access code { color: #c94148; background: #fff0f1; padding: 4px 6px; border-radius: 5px; }

.admin-body { min-height: 100vh; background: #f7f7fa; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 228px; z-index: 20; display: flex; flex-direction: column; background: var(--navy); color: #fff; }
.admin-brand { height: 80px; padding: 0 24px; display: flex; gap: 11px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.075); }
.admin-brand img { display: block; width: 104px; height: auto; filter: brightness(0) invert(1); }
.admin-brand > span { color: #78778d; text-transform: uppercase; letter-spacing: 1.1px; font-size: 7px; white-space: nowrap; }
.admin-nav { padding: 26px 13px; display: flex; flex-direction: column; }
.nav-section { margin: 7px 11px 10px; color: #666579; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px; }
.admin-nav a { height: 43px; padding: 0 12px; display: flex; gap: 11px; align-items: center; margin-bottom: 3px; color: #9d9caf; border-radius: 9px; font-size: 11px; font-weight: 650; }
.admin-nav a i { width: 17px; color: #77768b; font-size: 16px; font-style: normal; text-align: center; }
.admin-nav a b { margin-left: auto; min-width: 21px; padding: 3px 6px; color: #cac9d8; background: rgba(255,255,255,.09); border-radius: 6px; font-size: 8px; text-align: center; }
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,.04); }
.admin-nav a.active { color: #fff; background: var(--purple); box-shadow: 0 8px 18px rgba(58,47,176,.27); }
.admin-nav a.active i { color: #fff; }
.admin-nav a.active b { color: #fff; }
.sidebar-user { margin: auto 13px 14px; padding: 12px 10px; display: flex; align-items: center; gap: 9px; border-top: 1px solid rgba(255,255,255,.08); }
.user-avatar, .top-avatar { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #dddafc; background: rgba(101,88,232,.3); font-weight: 850; font-size: 11px; }
.sidebar-user > div:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sidebar-user strong { max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.sidebar-user span { color: #77768b; font-size: 8px; }
.sidebar-user form { margin-left: auto; }
.sidebar-user button { color: #77768b; background: none; border: 0; }
.admin-main { min-height: 100vh; margin-left: 228px; }
.admin-topbar { height: 62px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; color: #8c8d9c; background: #fff; border-bottom: 1px solid #e9e9ef; font-size: 9px; text-transform: uppercase; letter-spacing: .8px; }
.admin-topbar > div { display: flex; align-items: center; gap: 11px; }
.admin-content { max-width: 1420px; padding: 33px 35px 60px; margin: 0 auto; }
.admin-title-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 27px; }
.admin-title-row h1 { margin: 7px 0 5px; font-size: 31px; letter-spacing: -1.4px; }
.admin-title-row p { margin: 0; color: #828391; font-size: 11px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
.stat-card { min-height: 98px; padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #e7e7ed; border-radius: 13px; transition: transform .2s, box-shadow .2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(32,30,68,.07); }
.stat-card > div { display: flex; flex-direction: column; gap: 8px; }
.stat-card span { color: #828391; font-size: 9px; font-weight: 700; }
.stat-card strong { font-size: 27px; letter-spacing: -1px; }
.stat-card > i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #f1f0fb; color: var(--purple); font-size: 14px; font-style: normal; font-weight: 800; }
.stat-triage > i { color: #d18a2d; background: #fff4e7; }
.stat-progress > i { color: #347bbd; background: #edf6ff; }
.stat-resolved > i { color: #168f68; background: #e9f8f2; }
.tickets-card { position: relative; overflow: hidden; }
.tickets-card.is-loading { pointer-events: none; }
.tickets-card.is-loading > * { opacity: .48; }
.tickets-card.is-loading::after { content: ""; position: absolute; z-index: 2; top: 16px; right: 18px; width: 15px; height: 15px; border: 2px solid rgba(101,88,232,.2); border-top-color: var(--purple); border-radius: 50%; animation: ticket-loading .6s linear infinite; }
@keyframes ticket-loading { to { transform: rotate(360deg); } }
.ticket-toolbar { min-height: 64px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eaeaef; }
.toolbar-tabs { align-self: stretch; display: flex; align-items: center; gap: 21px; }
.toolbar-tabs a { height: 100%; display: flex; align-items: center; position: relative; color: #8a8b98; font-size: 10px; font-weight: 750; }
.toolbar-tabs a.active { color: var(--ink); }
.toolbar-tabs a.active::after { content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: 0; background: var(--purple); }
.ticket-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.ticket-view-switch { display: flex; gap: 2px; padding: 3px; background: #f2f2f6; border-radius: 9px; }
.ticket-view-switch a { min-height: 28px; padding: 0 9px; display: inline-flex; align-items: center; color: #8b8c99; border-radius: 6px; font-size: 8px; font-weight: 750; transition: color .16s ease, background .16s ease, box-shadow .16s ease; }
.ticket-view-switch a:hover { color: #5f6070; }
.ticket-view-switch a.active { color: #4e46b9; background: #fff; box-shadow: 0 1px 3px rgba(27,27,51,.12); }
.ticket-search { width: 205px; height: 34px; padding: 0 11px; display: flex; align-items: center; gap: 7px; border: 1px solid #e1e1e8; border-radius: 9px; }
.ticket-search span { color: #9fa0ad; font-size: 16px; }
.ticket-search input { width: 100%; border: 0; outline: 0; font-size: 10px; }
.kanban-scroll { padding: 17px; overflow-x: auto; }
.kanban-board { min-width: 1030px; display: grid; grid-template-columns: repeat(4, minmax(235px, 1fr)); gap: 13px; }
.kanban-column { min-height: 485px; display: flex; flex-direction: column; background: #f8f8fb; border: 1px solid #ebebf0; border-radius: 12px; }
.kanban-column-header { min-height: 51px; padding: 0 13px 0 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e9e9ef; }
.kanban-column-header > div { display: flex; align-items: center; gap: 8px; }
.kanban-column-header i { width: 7px; height: 7px; display: block; background: #e5555c; border-radius: 50%; }
.kanban-column-header h2 { margin: 0; color: #555650; font-size: 10px; }
.kanban-column-progress .kanban-column-header i { background: #161616; }
.kanban-column-waiting .kanban-column-header i { background: #cf902d; }
.kanban-column-done .kanban-column-header i { background: #1e9a70; }
.kanban-list { min-height: 0; padding: 9px; display: flex; flex: 1; flex-direction: column; gap: 9px; }
.kanban-empty { margin: auto 8px; color: #a0a1ad; font-size: 9px; line-height: 1.45; text-align: center; }
.kanban-ticket { padding: 12px; background: #fff; border: 1px solid #e7e7ed; border-radius: 10px; box-shadow: 0 2px 5px rgba(33,33,61,.025); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.kanban-ticket:hover { border-color: #d8d4ff; box-shadow: 0 8px 18px rgba(63,54,146,.08); transform: translateY(-1px); }
.kanban-ticket-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: #9b9ca8; font-size: 8px; }
.kanban-ticket-meta > span { color: #747584; font-weight: 750; }
.kanban-ticket-meta time { white-space: nowrap; }
.kanban-ticket-title { max-height: 2.9em; overflow: hidden; margin-bottom: 6px; display: block; color: #373849; font-size: 10px; font-weight: 750; line-height: 1.45; }
.kanban-ticket-title:hover { color: var(--purple); }
.kanban-ticket-requester { overflow: hidden; margin: 0 0 11px; color: #9899a5; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.kanban-ticket-route { min-width: 0; display: flex; align-items: center; gap: 5px; padding: 8px 0; border-top: 1px solid #f0f0f4; border-bottom: 1px solid #f0f0f4; color: #747583; font-size: 8px; }
.kanban-ticket-route > span { width: 19px; height: 19px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: var(--platform); border-radius: 6px; font-size: 7px; font-weight: 850; }
.kanban-ticket-route strong { overflow: hidden; min-width: 0; font-size: 8px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.kanban-ticket-route i { color: #b1b2bd; font-size: 10px; font-style: normal; }
.kanban-ticket-footer { min-height: 31px; display: flex; align-items: end; justify-content: space-between; gap: 7px; }
.kanban-ticket-footer .status-pill { padding: 5px 7px; font-size: 7px; }
.kanban-ticket-footer .status-pill i { width: 5px; height: 5px; }
.kanban-ticket-footer .severity-badge { font-size: 7px; }
.kanban-ticket-footer .severity-badge i { width: 5px; height: 5px; }
.kanban-assignee, .kanban-unassigned { min-height: 27px; margin: 8px 0 0; display: flex; align-items: center; gap: 6px; color: #777887; font-size: 8px; }
.kanban-assignee > span { width: 20px; height: 20px; display: grid; place-items: center; color: var(--purple); background: var(--purple-soft); border-radius: 7px; font-size: 7px; font-weight: 850; }
.kanban-assignee strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.kanban-unassigned { color: #a1a2ad; font-style: italic; }
.table-wrap { overflow-x: auto; }
.tickets-table { width: 100%; min-width: 930px; border-collapse: collapse; }
.tickets-table th { height: 42px; padding: 0 13px; color: #a0a1ad; background: #fafafd; border-bottom: 1px solid #ececf1; text-align: left; font-size: 8px; text-transform: uppercase; letter-spacing: .7px; }
.tickets-table th:first-child, .tickets-table td:first-child { padding-left: 20px; }
.tickets-table td { height: 74px; padding: 10px 13px; border-bottom: 1px solid #efeff3; font-size: 10px; }
.tickets-table tbody tr { cursor: pointer; transition: background .15s; }
.tickets-table tbody tr:hover { background: #fbfaff; }
.tickets-table tbody tr:last-child td { border-bottom: 0; }
.ticket-main-link { display: flex; flex-direction: column; gap: 5px; min-width: 210px; }
.ticket-main-link strong { max-width: 300px; font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ticket-main-link span { color: #9697a5; font-size: 8px; }
.table-route { display: flex; align-items: center; gap: 5px; min-width: 145px; }
.table-route > span { width: 25px; height: 25px; }
.table-route i { color: #aaaab7; font-style: normal; }
.table-route small { color: #6f7080; margin-left: 2px; font-size: 8px; }
.status-pill, .severity-badge { width: fit-content; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 8px; font-weight: 750; }
.status-pill { padding: 6px 9px; border-radius: 99px; color: #626475; background: #f1f1f5; }
.status-pill i, .severity-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-new { color: #c47728; background: #fff4e7; }
.status-triage { color: #a83f46; background: #fff0f1; }
.status-assigned { color: #535350; background: #efefec; }
.status-in_progress { color: #161616; background: #eeeeeb; }
.status-waiting_customer { color: #9b6a2f; background: #faf1e5; }
.status-resolved, .status-closed { color: #188965; background: #e9f7f2; }
.severity-badge { color: #6c6c68; }
.severity-text-high { color: #d48625; }
.severity-text-critical { color: #d1535a; }
.severity-text-low { color: #999a96; }
.severity-text-normal { color: #555550; }
.person-cell { display: flex; align-items: center; gap: 7px; min-width: 100px; }
.person-cell > span { width: 25px; height: 25px; display: grid; place-items: center; color: var(--purple); background: var(--purple-soft); border-radius: 8px; font-size: 8px; font-weight: 850; }
.person-cell strong { font-size: 8px; }
.unassigned { color: #a0a1ad; font-size: 8px; font-style: italic; }
.muted-cell { color: #9293a1; font-size: 8px; }
.row-arrow { width: 27px; height: 27px; display: grid; place-items: center; color: var(--purple); background: #f0effb; border-radius: 8px; opacity: 0; transform: translateX(-4px); transition: .15s; }
.ticket-row:hover .row-arrow { opacity: 1; transform: none; }
.empty-state { padding: 70px 20px; text-align: center; }
.empty-state > span { width: 42px; height: 42px; margin: 0 auto 13px; display: grid; place-items: center; color: #188965; background: #e9f7f2; border-radius: 50%; }
.empty-state h3 { margin: 0 0 5px; }
.empty-state p { color: var(--muted); font-size: 11px; }
.empty-state a { color: var(--purple); font-size: 10px; font-weight: 750; }

.detail-breadcrumb { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; color: #9a9baa; font-size: 9px; }
.detail-breadcrumb a { color: var(--purple); }
.ticket-detail-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 25px; }
.heading-meta { display: flex; gap: 12px; align-items: center; color: #9798a6; font-size: 9px; }
.ticket-detail-heading h1 { margin: 9px 0 12px; max-width: 760px; font-size: 29px; letter-spacing: -1.2px; }
.detail-route { font-size: 9px; }
.inline-status-form { min-width: 175px; }
.inline-status-form label { display: block; margin: 0 0 6px; color: #92939f; font-size: 8px; text-transform: uppercase; letter-spacing: .7px; }
.status-select { width: 175px; height: 39px; padding: 0 12px; color: #525366; background: #fff; border: 1px solid #dddde5; border-radius: 10px; font-size: 10px; font-weight: 700; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(255px, .7fr); gap: 17px; align-items: start; }
.detail-main, .detail-aside { display: flex; flex-direction: column; gap: 15px; }
.customer-message { padding: 25px 27px; }
.message-author { display: flex; align-items: center; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid #ededf2; }
.customer-avatar { width: 37px; height: 37px; display: grid; place-items: center; color: #326b9e; background: #e8f3fc; border-radius: 11px; font-size: 12px; font-weight: 850; }
.message-author > div:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.message-author strong { font-size: 11px; }
.message-author span { color: #9192a0; font-size: 9px; }
.message-author time { margin-left: auto; color: #9c9da9; font-size: 8px; }
.message-body { padding: 23px 2px 10px; color: #484a5c; font-size: 12px; line-height: 1.8; }
.reference-line { margin-top: 17px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; background: #f7f7fa; border-radius: 9px; font-size: 9px; }
.reference-line span { color: #9293a0; text-transform: uppercase; letter-spacing: .6px; }
.card-heading { min-height: 53px; padding: 0 21px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ededf2; }
.card-heading > div { display: flex; align-items: center; gap: 9px; }
.card-heading h2 { margin: 0; font-size: 12px; }
.card-heading small { color: #9a9ba8; font-size: 8px; }
.note-lock { color: var(--amber); font-size: 9px; }
.note-form { padding: 18px 20px; }
.note-form textarea { min-height: 80px; font-size: 10px; }
.note-form > div { margin-top: 9px; display: flex; align-items: center; justify-content: space-between; }
.note-form > div > span { color: #a0a1ad; font-size: 8px; }
.comment-list { border-top: 1px solid #ededf2; }
.internal-comment { display: flex; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #f0f0f4; }
.internal-comment:last-child { border-bottom: 0; }
.comment-avatar { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; color: var(--purple); background: var(--purple-soft); border-radius: 9px; font-size: 9px; font-weight: 850; }
.internal-comment > div:nth-child(2) { flex: 1; }
.internal-comment > div > div { display: flex; justify-content: space-between; }
.internal-comment strong { font-size: 9px; }
.internal-comment time { color: #a1a2ad; font-size: 8px; }
.internal-comment p { margin: 6px 0 0; color: #636474; font-size: 10px; line-height: 1.55; }
.timeline-symbol { color: var(--purple); font-weight: 850; }
.timeline-list { padding: 12px 22px; }
.timeline-event { position: relative; display: flex; gap: 12px; padding: 11px 0; }
.timeline-event:not(:last-child)::after { content: ""; position: absolute; width: 1px; left: 5px; top: 26px; bottom: -8px; background: #e4e4ea; }
.event-dot { width: 11px; height: 11px; flex: 0 0 auto; margin-top: 2px; border: 3px solid #d7d7df; background: #fff; border-radius: 50%; }
.event-assignment, .event-status { border-color: var(--purple); }
.event-comment { border-color: #dfa24e; }
.timeline-event p { margin: 0 0 4px; color: #5c5e6e; font-size: 9px; }
.timeline-event time { color: #a1a2ad; font-size: 8px; }
.recommendation-card { padding: 21px; color: #fff; background: linear-gradient(145deg, #5d50df, #786bea); border-radius: 16px; box-shadow: 0 14px 30px rgba(85,71,207,.22); }
.recommendation-label { display: block; color: #d8d5ff; text-transform: uppercase; letter-spacing: 1px; font-size: 8px; font-weight: 800; }
.recommended-person { display: flex; gap: 10px; align-items: center; margin: 18px 0 12px; }
.recommended-person > div { width: 37px; height: 37px; display: grid; place-items: center; background: rgba(255,255,255,.18); border-radius: 11px; font-size: 11px; font-weight: 850; }
.recommended-person > span { display: flex; flex-direction: column; gap: 3px; }
.recommended-person strong { font-size: 11px; }
.recommended-person small { color: #d2cffb; font-size: 8px; }
.recommendation-card > p { color: #d6d3fb; font-size: 9px; line-height: 1.5; }
.recommendation-card .button { margin-top: 9px; color: var(--purple); background: #fff; box-shadow: none; }
.properties-card { padding: 20px; }
.properties-card h2 { margin: 0 0 17px; font-size: 12px; }
.current-assignee { display: flex; gap: 9px; align-items: center; padding: 11px; margin-bottom: 14px; background: #f7f6ff; border-radius: 10px; }
.current-assignee > div { width: 31px; height: 31px; display: grid; place-items: center; color: var(--purple); background: #e9e6ff; border-radius: 9px; font-size: 9px; font-weight: 850; }
.current-assignee span { display: flex; flex-direction: column; gap: 2px; }
.current-assignee small { color: #9191a2; font-size: 8px; }
.current-assignee strong { font-size: 9px; }
.no-assignee { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; padding: 12px; background: #f7f7fa; border-radius: 10px; }
.no-assignee > span { color: #a4a5b0; font-size: 17px; }
.no-assignee div { display: flex; flex-direction: column; gap: 2px; }
.no-assignee strong { font-size: 9px; }
.no-assignee small { color: #999aa7; font-size: 8px; }
.assign-form { display: flex; flex-direction: column; gap: 8px; }
.assign-form select { margin-bottom: 3px; font-size: 9px; }
.ticket-properties { margin: 0; }
.ticket-properties > div { display: flex; justify-content: space-between; align-items: center; min-height: 32px; border-bottom: 1px solid #f0f0f3; font-size: 9px; }
.ticket-properties > div:last-child { border: 0; }
.ticket-properties dt { color: #9596a3; }
.ticket-properties dd { margin: 0; max-width: 60%; text-align: right; font-weight: 700; }

.routes-layout { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 17px; align-items: start; }
.count-badge { min-width: 22px; padding: 3px 7px; color: var(--purple); background: var(--purple-soft); border-radius: 7px; font-size: 8px; font-weight: 800; text-align: center; }
.rule-row { min-height: 80px; padding: 15px 20px; display: grid; grid-template-columns: 1.5fr 1fr auto 45px; gap: 16px; align-items: center; border-bottom: 1px solid #ededf2; }
.rule-row:last-child { border-bottom: 0; }
.rule-route { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.rule-route i { margin: 0 3px; color: #aaaab8; font-style: normal; }
.rule-assignee { display: flex; gap: 8px; align-items: center; }
.rule-assignee > div { width: 30px; height: 30px; display: grid; place-items: center; color: var(--purple); background: var(--purple-soft); border-radius: 9px; font-size: 9px; font-weight: 850; }
.rule-assignee > span { display: flex; flex-direction: column; gap: 3px; }
.rule-assignee strong { font-size: 9px; }
.rule-assignee small { color: #9394a2; font-size: 8px; }
.priority-tag { padding: 5px 8px; color: #6d6e7d; background: #f1f1f5; border-radius: 99px; font-size: 8px; font-weight: 700; }
.priority-high { color: #bd7925; background: #fff4e7; }
.priority-critical { color: #c04b52; background: #fff0f1; }
.text-button, .button-link { color: var(--purple); background: none; border: 0; font-size: 9px; font-weight: 750; }
.rule-form-card { position: sticky; top: 18px; padding: 25px; }
.rule-form-card h2, .add-member-card h2, .password-card h2 { margin: 7px 0 8px; font-size: 18px; }
.rule-form-card > p { margin: 0 0 23px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.rule-form-arrow { width: 25px; height: 25px; margin: -11px auto 8px; display: grid; place-items: center; color: var(--purple); background: var(--purple-soft); border-radius: 8px; font-size: 11px; }
.button-link { width: 100%; display: block; margin-top: 10px; text-align: center; }
.permission-note { padding: 15px; color: #8a6017; background: #fff6e8; border-radius: 9px; font-size: 9px; line-height: 1.5; }

.team-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.team-card { overflow: hidden; }
.member-row { min-height: 78px; padding: 13px 21px; display: grid; grid-template-columns: 38px minmax(160px, .9fr) minmax(130px, .8fr) auto auto; gap: 14px; align-items: center; border-bottom: 1px solid #ededf2; transition: background .16s ease, box-shadow .16s ease; }
.member-row:last-child { border-bottom: 0; }
.member-row:hover { background: #fbfaff; }
.member-row.is-editing { background: #f8f7ff; box-shadow: inset 3px 0 0 var(--purple); }
.member-avatar { width: 37px; height: 37px; display: grid; place-items: center; color: #3176af; background: #e9f4fc; border-radius: 11px; font-size: 11px; font-weight: 850; }
.member-avatar.role-admin { color: var(--purple); background: var(--purple-soft); }
.member-avatar.role-support { color: #178d68; background: #e7f7f1; }
.member-identity { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.member-identity strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.member-identity strong small { padding: 2px 5px; color: var(--purple); background: var(--purple-soft); border-radius: 5px; font-size: 7px; }
.member-identity span { overflow: hidden; color: #9495a2; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.member-specialty { min-width: 0; padding-left: 14px; color: #777887; border-left: 1px solid #edecf2; font-size: 9px; line-height: 1.45; }
.role-badge { padding: 5px 8px; color: #686979; background: #f0f0f4; border-radius: 7px; font-size: 8px; font-weight: 700; white-space: nowrap; }
.member-actions { display: flex; align-items: center; gap: 6px; padding-left: 14px; border-left: 1px solid #edecf2; }
.member-actions form { margin: 0; }
.member-actions .text-button { min-height: 28px; padding: 0 9px; display: inline-flex; align-items: center; color: #6259c9; background: #f5f4ff; border: 1px solid #e5e2ff; border-radius: 7px; font-size: 8px; text-decoration: none; transition: background .16s ease, color .16s ease, border-color .16s ease; }
.member-actions .text-button:hover { color: #4f46b8; background: #eceaff; border-color: #d9d4ff; }
.member-actions .danger-button { color: #c75158; background: #fff5f5; border-color: #f6dfe1; }
.member-actions .danger-button:hover { color: #b6444b; background: #ffecee; border-color: #f1cdd1; }
.team-aside { display: flex; flex-direction: column; gap: 15px; }
.add-member-card, .password-card { padding: 25px; }

.add-member-card form, .password-card form { margin-top: 22px; }
.add-member-card .field { margin-bottom: 16px; }
.add-member-card .field:last-of-type { margin-bottom: 20px; }
.password-card { background: #fbfbfd; box-shadow: none; }
.password-card .field { margin-bottom: 16px; }
.password-card .field:last-of-type { margin-bottom: 20px; }

/* Linguagem visual Kapta no backoffice */
.admin-body {
    --ink: #161616;
    --muted: #777;
    --line: #dededc;
    --surface: #fff;
    --soft: #f6f6f4;
    --purple: #e5555c;
    --purple-dark: #c94148;
    --purple-soft: #fff0f1;
    --navy: #161616;
    --shadow: 0 18px 50px rgba(22,22,22,.06);
    color: #161616;
    background: #f6f6f4;
    font-family: "Kapta General", var(--font);
}
.admin-body button:focus-visible,
.admin-body input:focus-visible,
.admin-body select:focus-visible,
.admin-body textarea:focus-visible,
.admin-body a:focus-visible { outline-color: rgba(229,85,92,.35); }
.admin-body .admin-sidebar { background: #161616; }
.admin-body .admin-brand { border-bottom-color: rgba(255,255,255,.13); }
.admin-body .admin-brand > span,
.admin-body .nav-section,
.admin-body .sidebar-user span,
.admin-body .sidebar-user button { color: #929292; }
.admin-body .admin-nav a { color: #c3c3c0; }
.admin-body .admin-nav a i { color: #9c9c99; }
.admin-body .admin-nav a.active { background: #e5555c; box-shadow: 0 8px 20px rgba(229,85,92,.24); }
.admin-body .user-avatar,
.admin-body .top-avatar { color: #fff; background: rgba(229,85,92,.82); }
.admin-body .admin-topbar { color: #747474; background: #fff; border-bottom-color: #dededc; }
.admin-body .admin-title-row h1 { font-family: "Kapta Satoshi", "Helvetica Neue", sans-serif; font-weight: 400; letter-spacing: -1.7px; }
.admin-body .admin-title-row p { color: #777; }
.admin-body .admin-card,
.admin-body .stat-card { border-color: #dededc; border-radius: 14px; box-shadow: none; }
.admin-body .stat-card:hover { border-color: #cfcfcb; box-shadow: 0 12px 28px rgba(22,22,22,.055); }
.admin-body .stat-card > i { color: #e5555c; background: #fff0f1; }
.admin-body .stat-progress > i { color: #161616; background: #eeeeeb; }
.admin-body .stat-resolved > i { color: #188965; background: #e9f7f2; }
.admin-body .button { border-radius: 99px; }
.admin-body .button-primary { background: #e5555c; box-shadow: 0 9px 20px rgba(229,85,92,.22); }
.admin-body .button-primary:hover { background: #c94148; box-shadow: 0 12px 24px rgba(229,85,92,.28); }
.admin-body .button-secondary { color: #161616; border-color: #cfcfcb; box-shadow: none; }
.admin-body .button-dark { background: #161616; }
.admin-body .field label,
.admin-body .assign-form label { color: #3f3f3d; }
.admin-body .field input:focus,
.admin-body .field select:focus,
.admin-body .field textarea:focus,
.admin-body .assign-form select:focus,
.admin-body .note-form textarea:focus { border-color: #e5555c; box-shadow: 0 0 0 3px rgba(229,85,92,.10); }
.admin-body .tickets-card.is-loading::after { border-color: rgba(229,85,92,.2); border-top-color: #e5555c; }
.admin-body .ticket-view-switch { background: #efefec; }
.admin-body .ticket-view-switch a.active { color: #c94148; }
.admin-body .kanban-column { background: #f7f7f5; border-color: #e0e0dc; }
.admin-body .kanban-column-header { border-bottom-color: #e0e0dc; }
.admin-body .kanban-column-header i { background: #e5555c; }
.admin-body .kanban-column-progress .kanban-column-header i { background: #161616; }
.admin-body .kanban-ticket { border-color: #e0e0dc; box-shadow: 0 2px 5px rgba(22,22,22,.025); }
.admin-body .kanban-ticket:hover { border-color: #f0b5b8; box-shadow: 0 8px 18px rgba(229,85,92,.08); }
.admin-body .tickets-table tbody tr:hover,
.admin-body .member-row:hover { background: #fff7f7; }
.admin-body .status-triage { color: #a83f46; background: #fff0f1; }
.admin-body .status-assigned { color: #535350; background: #efefec; }
.admin-body .status-in_progress { color: #161616; background: #eeeeeb; }
.admin-body .severity-text-normal { color: #555550; }
.admin-body .row-arrow { color: #c94148; background: #fff0f1; }
.admin-body .customer-avatar { color: #c94148; background: #fff0f1; }
.admin-body .recommendation-card { background: linear-gradient(145deg, #161616, #3c2728); box-shadow: 0 14px 30px rgba(22,22,22,.18); }
.admin-body .recommendation-label,
.admin-body .recommended-person small,
.admin-body .recommendation-card > p { color: #f4cfd1; }
.admin-body .current-assignee { background: #fff5f5; }
.admin-body .current-assignee > div { color: #c94148; background: #ffe4e6; }
.admin-body .member-row.is-editing { background: #fff3f3; box-shadow: inset 3px 0 0 #e5555c; }
.admin-body .member-avatar { color: #4d4d49; background: #ececea; }
.admin-body .member-avatar.role-admin { color: #c94148; background: #fff0f1; }
.admin-body .member-actions .text-button { color: #c94148; background: #fff5f5; border-color: #f3d7d9; }
.admin-body .member-actions .text-button:hover { color: #a8373e; background: #ffecee; border-color: #efc4c7; }
.admin-body .member-actions .danger-button { color: #b6444b; background: #fff1f2; border-color: #f3d0d3; }


.flash-stack { position: fixed; z-index: 100; top: 17px; right: 20px; width: min(390px, calc(100% - 40px)); display: flex; flex-direction: column; gap: 8px; }
.flash { min-height: 48px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; color: #3d3e50; background: #fff; border: 1px solid #e1e1e8; border-radius: 11px; box-shadow: 0 12px 35px rgba(28,27,63,.14); font-size: 10px; }
.flash > span { width: 26px; height: 26px; display: grid; place-items: center; color: #168c66; background: #e7f6f0; border-radius: 8px; font-weight: 850; }
.flash-error > span { color: #c64f56; background: #ffedef; }
.flash button { margin-left: auto; color: #a1a2ad; background: none; border: 0; font-size: 17px; }
.flash.is-hiding { opacity: 0; transform: translateY(-5px); transition: .25s; }
.not-found { min-height: 60vh; display: grid; place-content: center; text-align: center; padding: 40px; }
.not-found > span { color: #f2c8ca; font-size: 90px; font-weight: 900; letter-spacing: -7px; }
.not-found h1 { margin: -8px 0 8px; font-size: 30px; }
.not-found p { color: var(--muted); }
.not-found .button { margin: 16px auto 0; }
.mobile-menu, .sidebar-overlay { display: none; }

@media (max-width: 1100px) {
    .kapta-support { grid-template-columns: minmax(270px, .65fr) minmax(500px, 1.35fr); gap: 45px; }
    .support-intro h1 { font-size: 68px; letter-spacing: -4px; }
    .support-intro > p { font-size: 15px; }
    .severity-options { grid-template-columns: 1fr 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .routes-layout, .team-layout { grid-template-columns: 1fr; }
    .rule-form-card { position: static; }
}

@media (max-width: 850px) {
    .kapta-support { min-height: auto; padding-top: 48px; grid-template-columns: 1fr; gap: 48px; }
    .support-intro { position: static; }
    .support-intro h1 { font-size: clamp(62px, 13vw, 92px); }
    .support-intro > p { margin-bottom: 34px; }
    .support-promise { max-width: 100%; }
    .public-nav { height: 68px; }
    .nav-right .service-status { display: none; }
    .home-main { padding-top: 54px; }
    .home-hero { margin-bottom: 50px; }
    .integration-grid { grid-template-columns: 1fr; }
    .request-heading { align-items: start; flex-direction: column; }
    .request-layout { grid-template-columns: 1fr; }
    .request-aside { display: grid; grid-template-columns: 1fr 1fr; }
    .admin-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .mobile-menu { position: fixed; z-index: 24; left: 17px; top: 14px; width: 35px; height: 35px; display: grid; place-items: center; color: #5f6072; background: #fff; border: 1px solid #e0e0e7; border-radius: 10px; }
    .sidebar-overlay { position: fixed; inset: 0; z-index: 18; background: rgba(15,15,32,.45); }
    .sidebar-overlay.open { display: block; }
    .admin-topbar { padding-left: 65px; }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-aside { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
    .recommendation-card { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .public-nav { height: 74px; }
    .kapta-wordmark img { width: 108px; }
    .kapta-public-links { gap: 0; }
    .kapta-public-links > a:first-child { display: none; }
    .team-access { min-height: 39px; padding: 0 15px; font-size: 11px; }
    .kapta-support { padding: 40px 18px 60px; gap: 39px; }
    .kapta-slash { margin-bottom: 21px; }
    .support-intro h1 { margin-bottom: 23px; font-size: clamp(56px, 18vw, 76px); line-height: .93; letter-spacing: -3.6px; }
    .support-intro > p { font-size: 15px; }
    .support-promise { display: none; }
    .support-form-panel { padding: 27px 18px 29px; border-radius: 17px; }
    .support-form-heading { margin-bottom: 28px; }
    .support-live { display: none; }
    .integration-selects { grid-template-columns: 1fr; gap: 4px; }
    .connection-arrow { margin: -2px auto -3px; transform: rotate(90deg); }
    .kapta-ticket-form .two-columns, .problem-grid { grid-template-columns: 1fr; gap: 0; }
    .kapta-submit-row { align-items: stretch; flex-direction: column; }
    .kapta-submit-row p { text-align: center; }
    .public-footer a { display: none; }
    .public-nav { padding: 0 18px; }
    .brand i, .nav-right { display: none; }
    .home-main, .request-main { padding-left: 18px; padding-right: 18px; }
    .home-hero h1 { letter-spacing: -2.5px; }
    .home-hero > p { font-size: 15px; }
    .section-heading { align-items: start; flex-direction: column; gap: 13px; }
    .home-footer-note { align-items: start; flex-wrap: wrap; }
    .home-footer-note > a { width: 100%; margin: 13px 0 0 52px; }
    .request-heading h1 { font-size: 32px; }
    .route-display { flex-wrap: wrap; }
    .ticket-form { padding: 23px 18px; }
    .two-columns { grid-template-columns: 1fr; }
    .form-submit-row { flex-direction: column-reverse; align-items: stretch; }
    .form-submit-row > span { text-align: center; }
    .request-aside { grid-template-columns: 1fr; }
    .public-footer { margin-top: 35px; padding: 20px 18px; }
    .tracking-main { margin-top: 45px; }
    .tracking-main > h1 { font-size: 30px; }
    .public-progress { padding: 20px 10px; }
    .progress-step strong { font-size: 8px; }
    .tracking-assignee { flex-wrap: wrap; }
    .tracking-updated { width: 100%; margin: 15px 0 0 50px; text-align: left; }
    .login-main { display: block; }
    .login-panel { min-height: auto; padding: 35px 24px; }
    .login-copy { margin: 40px 0 25px; }
    .login-copy h1 { font-size: 45px; }
    .login-feature { display: none; }
    .login-form-wrap { padding: 50px 24px; }
    .admin-content { padding: 25px 15px 50px; }
    .admin-topbar > div:first-child { display: none; }
    .admin-topbar { justify-content: end; }
    .admin-title-row { align-items: start; flex-direction: column; }
    .stat-grid { gap: 9px; }
    .stat-card { min-height: 85px; padding: 13px; }
    .stat-card strong { font-size: 23px; }
    .ticket-toolbar { padding: 11px 14px; align-items: stretch; flex-direction: column; gap: 10px; }
    .toolbar-tabs { min-height: 35px; }
    .ticket-toolbar-actions { width: 100%; }
    .ticket-view-switch { flex: 0 0 auto; }
    .ticket-search { width: 100%; }
    .kanban-scroll { padding: 12px; }
    .kanban-board { min-width: 970px; gap: 10px; }
    .kanban-column { min-height: 430px; }
    .ticket-detail-heading { align-items: start; flex-direction: column; }
    .ticket-detail-heading h1 { font-size: 25px; }
    .inline-status-form, .status-select { width: 100%; }
    .detail-aside { display: flex; }
    .message-author { flex-wrap: wrap; }
    .message-author time { width: 100%; margin: 5px 0 0 47px; }
    .rule-row { grid-template-columns: 1fr auto; }
    .rule-assignee { grid-column: 1; }
    .rule-row .priority-tag { grid-column: 2; grid-row: 1; }
    .text-button { grid-column: 2; grid-row: 2; }
    .member-row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; }
    .member-specialty { display: none; }
    .member-actions { grid-column: 2 / -1; justify-content: flex-end; padding: 0; border-left: 0; }
    .member-actions .text-button { min-height: 27px; }
}

/* Elementos decorativos removidos, sem limitar a geometria do restante produto. */
.support-form-panel::before,
.integration-card::after { content: none; display: none; }
.public-body { background: #fff; }
.public-body.dark-page { background: #161616; }
.support-form-panel { background: #f6f6f4; }
.button:hover,
.kapta-submit:hover,
.integration-card:hover,
.stat-card:hover,
.kanban-ticket:hover { transform: none; }

/* Movimento discreto para uma experiência de produto SaaS, sem elevação ou sombras. */
:root {
    --motion-fast: 140ms;
    --motion-base: 220ms;
    --motion-slow: 360ms;
    --motion-ease: cubic-bezier(.2, .8, .2, 1);
}
@keyframes ui-reveal {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes ui-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes ui-status-in {
    from { opacity: 0; transform: scale(.96); }
    to { opacity: 1; transform: scale(1); }
}
.public-nav,
.admin-topbar { animation: ui-fade var(--motion-slow) var(--motion-ease) both; }
.kapta-support > *,
.login-panel > *,
.login-form,
.admin-content > * { animation: ui-reveal var(--motion-slow) var(--motion-ease) both; }
.kapta-support > *:nth-child(2),
.admin-content > *:nth-child(2) { animation-delay: 55ms; }
.admin-content > *:nth-child(3) { animation-delay: 110ms; }
.stat-card,
.tickets-card,
.team-card,
.rule-form-card,
.add-member-card,
.password-card,
.detail-main > *,
.detail-aside > * { animation: ui-reveal var(--motion-slow) var(--motion-ease) both; }
.stat-card:nth-child(2) { animation-delay: 45ms; }
.stat-card:nth-child(3) { animation-delay: 90ms; }
.stat-card:nth-child(4) { animation-delay: 135ms; }
.button,
.text-button,
.button-link,
.admin-nav a,
.toolbar-tabs a,
.ticket-view-switch a,
.member-row,
.rule-row,
.kanban-ticket,
.ticket-search,
.field input,
.field select,
.field textarea { transition: color var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease), opacity var(--motion-fast) var(--motion-ease); }
.button:active,
.text-button:active,
.ticket-view-switch a:active,
.admin-nav a:active { transform: scale(.985); }
.admin-body .admin-nav a:hover { background: #282828; }
.admin-body .admin-nav a.active:hover { background: #c94148; }
.admin-body .stat-card:hover { border-color: #bdbdb8; background: #fffdfd; }
.admin-body .kanban-ticket:hover,
.admin-body .member-row:hover,
.admin-body .rule-row:hover { border-color: #e7a0a4; background: #fff8f8; }
.status-pill,
.severity-badge,
.count-badge { animation: ui-status-in var(--motion-base) var(--motion-ease) both; }
.tickets-card[aria-busy="true"] { animation: ui-fade var(--motion-fast) var(--motion-ease) both; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Shell administrativo CMS: navegação horizontal e conteúdo editorial. */
.admin-body {
    --admin-canvas: #f6f3ed;
    --admin-surface: #fff;
    --admin-ink: #161616;
    --admin-muted: #6f6d68;
    --admin-line: #dfd7cc;
    min-height: 100vh;
    color: var(--admin-ink);
    background: var(--admin-canvas);
    border-top: 3px solid #161616;
}
.admin-header {
    position: relative;
    z-index: 10;
    color: var(--admin-ink);
    background: var(--admin-surface);
    border-bottom: 1px solid var(--admin-line);
    animation: ui-fade var(--motion-slow) var(--motion-ease) both;
}
.admin-header-utility {
    width: min(1120px, calc(100% - 64px));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.admin-header-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    color: #161616;
    font-size: 15px;
    letter-spacing: -.45px;
    white-space: nowrap;
}
.admin-header-brand strong { font-weight: 600; }
.admin-header-brand span { color: #77736d; font-weight: 400; }
.admin-header-actions,
.admin-user-menu,
.admin-user-link {
    display: flex;
    align-items: center;
}
.admin-header-actions { gap: 12px; }
.admin-system-status,
.admin-locale {
    min-height: 30px;
    border-radius: 999px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4e4c47;
    background: #fff;
    border: 1px solid #d4cbbf;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .45px;
    text-transform: uppercase;
}
.admin-system-status { color: #168965; background: #edfbf4; border-color: #d4f2e4; }
.admin-system-status i { width: 5px; height: 5px; display: block; background: currentColor; border-radius: 50%; }
.admin-chevron {
    width: 6px;
    height: 6px;
    margin: -3px 2px 0 1px;
    display: inline-block;
    border-right: 1.5px solid #77736d;
    border-bottom: 1.5px solid #77736d;
    transform: rotate(45deg);
}
.admin-user-menu { position: relative; gap: 5px; }
.admin-user-link {
    min-width: 172px;
    border-radius: 999px;
    height: 34px;
    padding: 0 10px 0 4px;
    gap: 8px;
    color: #242320;
    background: #fff;
    border: 1px solid #cfc6ba;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
}
.admin-user-link:hover { border-color: #a99d8e; }
.admin-user-link strong { overflow: hidden; flex: 1; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-menu.is-open .admin-chevron { transform: rotate(225deg); margin-top: 3px; }
.admin-user-dropdown {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    min-width: 172px;
    padding: 6px;
    background: #fff;
    border: 1px solid #cfc6ba;
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(68,54,36,.11);
}
.admin-user-dropdown form { margin: 0; }
.admin-user-dropdown button {
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #4d2527;
    background: #fff7f7;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 600;
}
.admin-user-dropdown button:hover { color: #fff; background: #161616; }
.admin-user-dropdown button span { font-size: 13px; }
.admin-user-avatar {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #161616;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
}
.admin-logout {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #6f6d68;
    background: transparent;
    border: 1px solid transparent;
    font-size: 13px;
}
.admin-logout:hover { color: #161616; border-color: #cfc6ba; }
.admin-primary-nav {
    min-height: 48px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 7px;
    padding: 7px 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.admin-primary-nav::-webkit-scrollbar { display: none; }
.admin-primary-nav a {
    min-height: 32px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6f6d68;
    border: 1px solid transparent;
    font-size: 11px;
    white-space: nowrap;
    transition: color var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease);
}
.admin-primary-nav a:hover { color: #161616; background: #f6f3ed; }
.admin-primary-nav a[aria-current="page"] { color: #fff; background: #161616; border-color: #161616; border-radius: 999px; }
.admin-primary-nav a b {
    min-width: 16px;
    padding: 2px 4px;
    color: inherit;
    background: rgba(255,255,255,.15);
    font-size: 8px;
    text-align: center;
}
.admin-main { min-height: 0; margin-left: 0; }
.admin-content {
    width: min(1120px, calc(100% - 64px));
    max-width: none;
    padding: 48px 0 72px;
    margin: 0 auto;
}
.admin-content > * { animation: ui-reveal var(--motion-slow) var(--motion-ease) both; }
.admin-eyebrow { color: #706d67; font-size: 9px; letter-spacing: .85px; }
.admin-title-row { align-items: flex-start; margin-bottom: 42px; }
.admin-title-row h1 {
    margin: 12px 0 13px;
    color: #161616;
    font-family: "Kapta Satoshi", "Helvetica Neue", sans-serif;
    font-size: clamp(42px, 5.8vw, 64px);
    font-weight: 400;
    letter-spacing: -3.2px;
    line-height: .96;
}
.admin-title-row p { max-width: 585px; color: #595752; font-size: 15px; line-height: 1.5; }
.admin-title-row .button { margin-top: 9px; }
.admin-body .button {
    min-height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.admin-body .button-primary,
.admin-body .button-dark { color: #fff; background: #161616; border: 1px solid #161616; box-shadow: 0 12px 24px rgba(22,22,22,.12); }
.admin-body .button-primary:hover,
.admin-body .button-dark:hover { color: #161616; background: transparent; }
.admin-body .button-secondary { color: #161616; background: transparent; border-color: #bfb6aa; }
.admin-body .button-secondary:hover { background: #161616; color: #fff; }
.admin-body .admin-card,
.admin-body .stat-card {
    background: #fff;
    border: 1px solid var(--admin-line);
    border-radius: 26px;
    box-shadow: 0 22px 55px rgba(68,54,36,.07);
}
.stat-grid { gap: 12px; margin-bottom: 26px; }
.admin-body .stat-card { min-height: 132px; padding: 20px; border-radius: 18px; box-shadow: none; }
.admin-body .stat-card:hover { background: #fffdfa; border-color: #cfc5b9; }
.admin-body .stat-card span { color: #706d67; font-size: 9px; letter-spacing: .55px; text-transform: uppercase; }
.admin-body .stat-card strong { font-family: "Kapta Satoshi", "Helvetica Neue", sans-serif; font-size: 39px; font-weight: 400; letter-spacing: -1.8px; }
.admin-body .stat-card > i { width: 26px; height: 26px; color: #161616; background: #f2eee8; font-size: 11px; }
.admin-body .tickets-card { overflow: hidden; }
.admin-body .ticket-toolbar { min-height: 67px; padding: 0 27px; border-bottom-color: var(--admin-line); }
.admin-body .toolbar-tabs { gap: 24px; }
.admin-body .toolbar-tabs a { color: #75716b; font-size: 10px; }
.admin-body .toolbar-tabs a.active { color: #161616; }
.admin-body .toolbar-tabs a.active::after { background: #161616; }
.admin-body .ticket-view-switch { gap: 0; padding: 0; background: transparent; border: 1px solid #d4cbbf; border-radius: 999px; }
.admin-body .ticket-view-switch a { min-height: 29px; color: #6f6d68; border-right: 1px solid #d4cbbf; border-radius: 999px; box-shadow: none; }
.admin-body .ticket-view-switch a:last-child { border-right: 0; }
.admin-body .ticket-view-switch a.active { color: #fff; background: #161616; }
.admin-body .ticket-search { height: 32px; border-color: #d4cbbf; border-radius: 12px; }
.admin-body .tickets-table th { color: #77736d; background: #faf8f4; border-bottom-color: var(--admin-line); }
.admin-body .tickets-table td { border-bottom-color: #ebe5dd; }
.admin-body .tickets-table tbody tr:hover { background: #fffaf6; }
.admin-body .kanban-scroll { padding: 20px; }
.admin-body .kanban-column { background: #f3efe9; border-color: #ded6cc; border-radius: 20px; }
.admin-body .kanban-column-header { border-bottom-color: #ded6cc; }
.admin-body .kanban-ticket { background: #fff; border-color: #ded6cc; border-radius: 16px; box-shadow: 0 8px 20px rgba(68,54,36,.05); }
.admin-body .kanban-ticket:hover { background: #fffaf6; border-color: #c8bdb0; }
.admin-body .status-pill,
.admin-body .severity-badge,
.admin-body .count-badge,
.admin-body .priority-tag,
.admin-body .role-badge { border-radius: 999px; }
.admin-body .routes-layout,
.admin-body .team-layout { gap: 24px; }
.admin-body .rule-form-card,
.admin-body .add-member-card,
.admin-body .password-card { padding: 28px; background: #fff; border: 1px solid var(--admin-line); border-radius: 26px; }
.admin-body .rule-form-card > p { color: #6f6d68; }
.admin-body .rule-row,
.admin-body .member-row { border-bottom-color: #e6dfd6; }
.admin-body .rule-row:hover,
.admin-body .member-row:hover { background: #fffaf6; border-color: #e6dfd6; }
.admin-body .member-actions .text-button { color: #161616; background: transparent; border-color: #cfc5b9; }
.admin-body .member-actions .text-button:hover { color: #fff; background: #161616; border-color: #161616; }
.admin-body .member-actions .danger-button { color: #b6444b; border-color: #e8c2c4; }
.admin-body .recommendation-card,
.admin-body .properties-card,
.admin-body .password-card { color: #161616; background: #fff; border: 1px solid var(--admin-line); border-radius: 26px; }
.admin-body .recommendation-label,
.admin-body .recommended-person small,
.admin-body .recommendation-card > p { color: #6f6d68; }
.admin-body .recommendation-card .button { color: #fff; background: #161616; }
.admin-body .recommendation-card .button:hover { color: #161616; background: transparent; }
.admin-body .field label,
.admin-body .assign-form label { color: #625f59; font-size: 9px; letter-spacing: .65px; text-transform: uppercase; }
.admin-body .field input,
.admin-body .field select,
.admin-body .field textarea,
.admin-body .assign-form select,
.admin-body .note-form textarea { border-color: #cfc5b9; border-radius: 18px; }
.admin-body .field input:focus,
.admin-body .field select:focus,
.admin-body .field textarea:focus,
.admin-body .assign-form select:focus,
.admin-body .note-form textarea:focus { background: #fffdf9; border-color: #161616; }

/* Login administrativo centrado, com a mesma linguagem do CMS. */
.admin-login-body { min-height: 100vh; color: #161616; background: #f6f3ed; border-top: 3px solid #161616; font-family: "Kapta General", var(--font); }
.admin-login-header { width: min(400px, calc(100% - 40px)); margin: 0 auto; animation: ui-fade var(--motion-slow) var(--motion-ease) both; }
.admin-login-header > div { min-height: 98px; display: flex; align-items: center; justify-content: space-between; }
.admin-login-main { min-height: calc(100vh - 101px); padding: 30px 20px 44px; display: grid; place-content: center; gap: 30px; }
.admin-login-card { width: min(400px, calc(100vw - 40px)); padding: 42px 40px 39px; background: #fff; border: 1px solid #ded6cc; border-radius: 28px; box-shadow: 0 28px 70px rgba(68,54,36,.10); animation: ui-reveal var(--motion-slow) var(--motion-ease) both; }
.admin-login-card h1 { margin: 0 0 10px; font-family: "Kapta Satoshi", "Helvetica Neue", sans-serif; font-size: 40px; font-weight: 400; letter-spacing: -2px; }
.admin-login-card > p { margin: 0 0 31px; color: #5e5b55; font-size: 13px; line-height: 1.45; }
.admin-login-card .field { margin-bottom: 20px; }
.admin-login-card .field label { color: #625f59; font-size: 9px; letter-spacing: .8px; text-transform: uppercase; }
.admin-login-card .field input { height: 46px; background: #edf3ff; border-color: #bfb5a9; border-radius: 18px; }
.admin-login-card .field input:focus { background: #fffdf9; border-color: #161616; }
.admin-login-card .button { margin-top: 4px; min-height: 44px; justify-content: center; gap: 13px; border-radius: 999px; box-shadow: 0 14px 25px rgba(22,22,22,.13); }
.admin-login-footer { display: flex; justify-content: center; gap: 13px; color: #77736d; font-size: 10px; }
.admin-login-footer i { color: #b9b1a8; font-style: normal; }

/* Gestão de credenciais da API. */
.api-key-reveal {
    min-height: 148px;
    margin: -12px 0 24px;
    padding: 27px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    color: #161616;
    background: #fff;
    border: 1px solid var(--admin-line);
    border-radius: 26px;
    box-shadow: 0 22px 55px rgba(68,54,36,.07);
}
.api-key-reveal h2,
.api-create-card h2,
.api-guide-card h2 { margin: 7px 0 8px; font-size: 20px; letter-spacing: -.5px; }
.api-key-reveal p,
.api-create-card > p,
.api-guide-card > p { max-width: 505px; margin: 0; color: #6f6d68; font-size: 11px; line-height: 1.55; }
.api-key-secret { min-width: min(100%, 465px); padding: 8px 8px 8px 15px; display: flex; align-items: center; gap: 10px; background: #f6f3ed; border: 1px solid #ded6cc; border-radius: 16px; }
.api-key-secret code { min-width: 0; flex: 1; overflow: hidden; color: #242320; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.api-key-secret button { min-height: 31px; padding: 0 12px; color: #fff; background: #161616; border: 1px solid #161616; border-radius: 999px; cursor: pointer; font: inherit; font-size: 9px; font-weight: 600; white-space: nowrap; }
.api-key-secret button:hover { color: #161616; background: transparent; }
.api-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.api-keys-card { overflow: hidden; }
.api-key-list { display: flex; flex-direction: column; }
.api-key-row { min-height: 88px; padding: 16px 25px; display: grid; grid-template-columns: 34px minmax(160px, 1fr) minmax(130px, .8fr) minmax(125px, .8fr) auto; gap: 15px; align-items: center; border-bottom: 1px solid #e6dfd6; }
.api-key-row:last-child { border-bottom: 0; }
.api-key-row:hover { background: #fffaf6; }
.api-key-row.is-revoked { opacity: .62; }
.api-key-icon { width: 31px; height: 31px; display: grid; place-items: center; color: #161616; background: #f1ece5; border-radius: 50%; font-size: 14px; }
.api-key-identity { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.api-key-identity strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.api-key-identity code,
.api-guide-card code,
.api-guide-details code { color: #6b6258; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.api-key-meta { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.api-key-meta span { color: #4e4c47; font-size: 9px; font-weight: 600; }
.api-key-meta small { overflow: hidden; color: #807b74; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.api-key-row .danger-button { justify-self: end; color: #b6444b; border-color: #e8c2c4; }
.api-aside { display: flex; flex-direction: column; gap: 24px; }
.api-create-card,
.api-guide-card { padding: 28px; }
.api-create-card form { margin-top: 22px; }
.api-create-card .field { margin-bottom: 20px; }
.api-guide-card { background: #fbf9f5; }
.api-guide-card > p { margin-bottom: 20px; }
.api-guide-details { margin: 0 0 20px; }
.api-guide-details > div { padding: 10px 0; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid #e3dcd3; }
.api-guide-details > div:last-child { border-bottom: 1px solid #e3dcd3; }
.api-guide-details dt { color: #807b74; font-size: 8px; font-weight: 600; letter-spacing: .55px; text-transform: uppercase; }
.api-guide-details dd { margin: 0; }
.api-guide-card .text-link { color: #161616; }
.api-empty-state { padding: 52px 20px; }
@media (max-width: 1100px) {
    .api-layout { grid-template-columns: 1fr; }
    .api-aside { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .api-key-reveal { margin-top: -4px; padding: 24px; flex-direction: column; align-items: stretch; }
    .api-key-secret { min-width: 0; }
    .api-key-row { padding: 16px; grid-template-columns: 31px minmax(0, 1fr) auto; gap: 12px; }
    .api-key-row .api-key-meta { display: none; }
    .api-key-row .danger-button { grid-column: 2 / -1; justify-self: start; }
    .api-aside { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 760px) {
    .admin-header-utility,
    .admin-content { width: min(calc(100% - 32px), 1120px); }
    .admin-header-utility { min-height: 58px; gap: 12px; }
    .admin-system-status { display: none; }
    .admin-user-link { min-width: 0; width: 34px; padding: 4px; }
    .admin-user-link strong,
    .admin-user-link > b { display: none; }
    .admin-primary-nav { justify-content: flex-start; padding: 7px 16px; }
    .admin-content { padding: 35px 0 52px; }
    .admin-title-row { margin-bottom: 30px; }
    .admin-title-row h1 { font-size: 43px; }
    .admin-title-row p { font-size: 14px; }
    .admin-title-row .button { margin-top: 0; }
    .admin-body .ticket-toolbar { padding: 13px 16px; }
    .admin-login-card { padding: 34px 28px; }
    .admin-login-footer { flex-wrap: wrap; gap: 8px 11px; }
}

/* Documentação pública da API, pronta a partilhar com developers. */
.api-docs-main { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 56px 0 90px; }
.api-docs-hero { min-height: 290px; padding: 0 0 49px; display: flex; align-items: flex-end; justify-content: space-between; gap: 44px; border-bottom: 1px solid #dcd8d1; }
.api-docs-hero > div { max-width: 750px; }
.api-docs-kicker { display: block; margin-bottom: 24px; color: #5f5b55; font-size: 11px; font-weight: 600; }
.api-docs-hero h1 { max-width: 750px; margin: 0 0 20px; color: #161616; font-family: "Kapta Satoshi", "Helvetica Neue", sans-serif; font-size: clamp(47px, 6vw, 76px); font-weight: 400; letter-spacing: -4px; line-height: .94; }
.api-docs-hero p { max-width: 640px; margin: 0; color: #65615b; font-size: 16px; line-height: 1.55; }
.api-docs-share { width: 255px; flex: 0 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #f3f0eb; border: 1px solid #ded8cf; border-radius: 18px; }
.api-docs-share > span { color: #777069; font-size: 9px; font-weight: 600; letter-spacing: .65px; text-transform: uppercase; }
.api-docs-share code { overflow: hidden; color: #282622; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.api-docs-share button,
.api-endpoint-heading button,
.api-docs-code button { align-self: flex-start; padding: 0; color: #161616; background: transparent; border: 0; cursor: pointer; font: inherit; font-size: 10px; font-weight: 600; }
.api-docs-share button:hover,
.api-endpoint-heading button:hover,
.api-docs-code button:hover { color: #e5555c; }
.api-docs-notice { margin: 28px 0 48px; padding: 18px 21px; display: flex; align-items: flex-start; gap: 13px; color: #563d20; background: #fff6e7; border: 1px solid #f0dec0; border-radius: 18px; }
.api-docs-notice > span { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: #b77723; border-radius: 50%; font-size: 12px; font-weight: 700; }
.api-docs-notice strong { display: block; margin: 1px 0 4px; font-size: 12px; }
.api-docs-notice p { margin: 0; color: #71583b; font-size: 11px; line-height: 1.5; }
.api-docs-layout { display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: clamp(42px, 7vw, 96px); align-items: start; }
.api-docs-toc { position: sticky; top: 28px; display: flex; flex-direction: column; gap: 7px; }
.api-docs-toc > span { margin-bottom: 6px; color: #777069; font-size: 9px; font-weight: 600; letter-spacing: .65px; text-transform: uppercase; }
.api-docs-toc a { width: fit-content; padding: 4px 0; color: #69645d; font-size: 11px; }
.api-docs-toc a:hover { color: #161616; }
.api-docs-content { min-width: 0; }
.api-docs-section { padding: 0 0 52px; margin: 0 0 52px; border-bottom: 1px solid #ded9d2; scroll-margin-top: 26px; }
.api-docs-section:last-child { margin-bottom: 0; border-bottom: 0; }
.api-docs-section-number { display: block; margin-bottom: 14px; color: #e5555c; font-size: 10px; font-weight: 600; }
.api-docs-section h2 { margin: 0 0 14px; color: #161616; font-family: "Kapta Satoshi", "Helvetica Neue", sans-serif; font-size: 37px; font-weight: 400; letter-spacing: -1.7px; }
.api-docs-section > p { max-width: 690px; margin: 0 0 24px; color: #65615b; font-size: 13px; line-height: 1.6; }
.api-docs-section > p code,
.api-docs-inline-notice code { padding: 2px 4px; color: #4d4943; background: #f1eee9; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
.api-docs-steps { padding: 0; margin: 26px 0 0; list-style: none; }
.api-docs-steps li { padding: 16px 0; display: flex; gap: 15px; border-top: 1px solid #e4e0da; }
.api-docs-steps li:last-child { border-bottom: 1px solid #e4e0da; }
.api-docs-steps li > span { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: #161616; border-radius: 50%; font-size: 9px; font-weight: 600; }
.api-docs-steps strong { font-size: 12px; }
.api-docs-steps p { margin: 4px 0 0; color: #716c65; font-size: 11px; line-height: 1.5; }
.api-docs-steps em { color: #161616; font-style: normal; font-weight: 600; }
.api-endpoint-card { padding: 20px 22px; margin-top: 12px; background: #fff; border: 1px solid #dfd9d0; border-radius: 18px; box-shadow: 0 12px 28px rgba(68,54,36,.04); }
.api-endpoint-heading { min-width: 0; display: flex; align-items: center; gap: 11px; }
.api-endpoint-heading code { min-width: 0; flex: 1; overflow: hidden; color: #292620; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.api-method { min-width: 41px; height: 21px; display: inline-grid; place-items: center; border-radius: 999px; font-size: 8px; font-weight: 700; letter-spacing: .45px; }
.api-method-get { color: #147859; background: #e7f7ee; }
.api-method-post { color: #a23d44; background: #ffeced; }
.api-endpoint-card h3 { margin: 17px 0 5px; color: #161616; font-size: 13px; }
.api-endpoint-card p { margin: 0; color: #716c65; font-size: 11px; line-height: 1.55; }
.api-docs-code { overflow: hidden; margin-top: 20px; color: #eeeae4; background: #1d1c1a; border-radius: 18px; }
.api-docs-code > div { min-height: 39px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid rgba(255,255,255,.12); }
.api-docs-code > div span { color: #afa9a0; font-size: 9px; font-weight: 600; letter-spacing: .55px; text-transform: uppercase; }
.api-docs-code button { color: #fff; }
.api-docs-code button:hover { color: #ffc7c9; }
.api-docs-code pre { max-height: 420px; padding: 17px; margin: 0; overflow: auto; color: #f0ede8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.65; white-space: pre; }
.api-docs-code code { font-family: inherit; }
.api-fields-table { overflow: hidden; margin-top: 23px; border: 1px solid #dfd9d0; border-radius: 18px; }
.api-fields-table > div { display: grid; grid-template-columns: minmax(132px, .75fr) minmax(90px, .42fr) minmax(0, 1.55fr); gap: 16px; align-items: center; min-height: 51px; padding: 10px 18px; border-top: 1px solid #e6e0d8; }
.api-fields-table > div:first-child { border-top: 0; }
.api-fields-head { min-height: 37px !important; color: #777069; background: #f5f2ed; font-size: 8px; font-weight: 600; letter-spacing: .55px; text-transform: uppercase; }
.api-fields-table code { color: #25231f; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.api-fields-table strong,
.api-fields-table small { width: fit-content; padding: 3px 6px; color: #1b7f60; background: #e9f8f0; border-radius: 999px; font-size: 8px; font-weight: 600; }
.api-fields-table small { color: #716c65; background: #efebe6; }
.api-fields-table p { margin: 0; color: #6d6861; font-size: 10px; line-height: 1.45; }
.api-docs-inline-notice { padding: 13px 15px; margin: 17px 0 0; color: #5d5052; background: #fff1f2; border-left: 3px solid #e5555c; font-size: 11px; line-height: 1.55; }
.api-error-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.api-error-grid > div { min-height: 64px; padding: 12px; display: flex; flex-direction: column; gap: 4px; background: #f4f1ec; border-radius: 12px; }
.api-error-grid strong { color: #ad4047; font-size: 12px; }
.api-error-grid span { color: #69645d; font-size: 10px; line-height: 1.4; }
@media (max-width: 800px) {
    .api-docs-main { width: min(calc(100% - 32px), 1180px); padding-top: 35px; }
    .api-docs-hero { min-height: 0; padding-bottom: 34px; align-items: flex-start; flex-direction: column; }
    .api-docs-hero h1 { font-size: 51px; letter-spacing: -3px; }
    .api-docs-share { width: 100%; }
    .api-docs-layout { display: block; }
    .api-docs-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 5px 15px; padding: 0 0 26px; margin-bottom: 32px; border-bottom: 1px solid #ded9d2; }
    .api-docs-toc > span { width: 100%; }
    .api-docs-section { padding-bottom: 38px; margin-bottom: 38px; }
    .api-docs-section h2 { font-size: 32px; }
}
@media (max-width: 560px) {
    .api-docs-hero h1 { font-size: 43px; letter-spacing: -2.5px; }
    .api-docs-hero p { font-size: 14px; }
    .api-docs-notice { margin-bottom: 34px; }
    .api-endpoint-card { padding: 17px; }
    .api-endpoint-heading { align-items: flex-start; flex-wrap: wrap; }
    .api-endpoint-heading code { flex-basis: calc(100% - 55px); }
    .api-endpoint-heading button { margin-left: 52px; }
    .api-fields-table { overflow-x: auto; }
    .api-fields-table > div { min-width: 530px; }
    .api-error-grid { grid-template-columns: 1fr; }
}
