:root {
    color-scheme: light;
    --ink: #111827;
    --text: #263243;
    --muted: #697386;
    --quiet: #8a94a6;
    --line: #dce3ec;
    --line-strong: #c8d2df;
    --panel: #ffffff;
    --soft: #f6f8fb;
    --paper: #fbfcf8;
    --navy: #17223a;
    --navy-soft: #24304a;
    --blue: #315eea;
    --blue-dark: #2448c7;
    --teal: #0b766d;
    --teal-soft: #e8f7f4;
    --gold: #d99b2b;
    --gold-soft: #fff6df;
    --green: #168054;
    --danger: #b42318;
    --shadow: 0 26px 70px rgba(23, 34, 58, 0.13);
    --soft-shadow: 0 16px 40px rgba(23, 34, 58, 0.09);
    --hairline: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 251, 0.94)),
        repeating-linear-gradient(90deg, rgba(23, 34, 58, 0.035) 0 1px, transparent 1px 120px),
        var(--soft);
}

a {
    color: inherit;
}

.home-shell,
.support-shell,
.thanks-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.home-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(430px, 0.92fr);
    gap: 28px;
    align-items: center;
    padding: 42px 0;
}

.hero-panel,
.entry-panel,
.service-card,
.support-hero,
.thanks-panel {
    border: 1px solid rgba(220, 227, 236, 0.95);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-panel {
    position: relative;
    min-height: 680px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 42px;
    color: #fff;
    background:
        linear-gradient(142deg, rgba(18, 29, 50, 0.98) 0%, rgba(25, 42, 70, 0.96) 48%, rgba(11, 118, 109, 0.92) 100%),
        var(--navy);
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 78%);
    pointer-events: none;
}

.hero-panel::after {
    content: "";
    position: absolute;
    left: 42px;
    right: 42px;
    bottom: 122px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(217, 155, 43, 0.95), rgba(255, 255, 255, 0.06));
}

.brand-nav,
.hero-copy,
.support-preview,
.trust-list {
    position: relative;
    z-index: 1;
}

.brand-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 850;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: #201706;
    background: linear-gradient(180deg, #f8cf72, var(--gold));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), var(--hairline);
}

.hero-copy {
    max-width: 640px;
}

.eyebrow {
    margin: 0 0 9px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-panel .eyebrow {
    color: #baf3e9;
}

.hero-copy h1,
.support-hero h1,
.thanks-panel h1 {
    margin: 0;
    font-size: 46px;
    line-height: 1.08;
    letter-spacing: 0;
}

.hero-copy p {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.72;
}

.support-preview {
    height: 218px;
    margin: 30px 0;
}

.preview-window {
    position: absolute;
    left: 0;
    top: 14px;
    width: 74%;
    height: 168px;
    display: grid;
    gap: 13px;
    align-content: center;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.18), var(--hairline);
    backdrop-filter: blur(12px);
}

.preview-window::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

.preview-window span {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
}

.preview-window span:nth-child(2) {
    width: 74%;
    opacity: 0.56;
}

.preview-window span:nth-child(3) {
    width: 52%;
    opacity: 0.36;
}

.preview-ticket {
    position: absolute;
    right: 0;
    bottom: 8px;
    width: min(270px, 57%);
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24), var(--hairline);
}

.preview-ticket strong {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.preview-ticket span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 850;
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-list span {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 850;
}

.entry-panel,
.thanks-panel {
    position: relative;
    padding: 38px;
    box-shadow: 0 26px 70px rgba(23, 34, 58, 0.12);
}

.entry-panel::before,
.thanks-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 26px;
    right: 26px;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, var(--blue), var(--teal), var(--gold));
}

.panel-heading {
    margin-bottom: 24px;
}

.panel-heading h2,
.service-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: 28px;
    line-height: 1.18;
}

.panel-subtitle,
.service-content p,
.support-meta,
.thanks-copy,
.site-footer {
    color: var(--muted);
    line-height: 1.65;
}

.panel-subtitle {
    margin: 10px 0 0;
}

.support-form,
.service-form {
    display: grid;
    gap: 16px;
}

label,
.contact-action,
.upload-field {
    display: grid;
    gap: 8px;
    font-weight: 850;
}

label span,
.contact-action > span,
.upload-field > span {
    color: #344054;
    font-size: 14px;
}

.optional-label {
    color: var(--quiet);
    font-size: 12px;
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ink);
    background: linear-gradient(180deg, #ffffff, #fbfcfe);
    font: inherit;
    font-size: 16px;
    outline: none;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(49, 94, 234, 0.12), 0 8px 24px rgba(23, 34, 58, 0.07);
}

.field-help,
.file-upload-name {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.field-grid {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 14px;
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
}

.checkbox-line input {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    min-height: 20px;
    margin-top: 1px;
    accent-color: var(--blue);
}

.primary-button,
.secondary-button,
.mail-button,
.whatsapp-button,
.back-link,
.file-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 8px;
    padding: 0 18px;
    font: inherit;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.primary-button:hover,
.secondary-button:hover,
.mail-button:hover,
.whatsapp-button:hover,
.back-link:hover,
.file-upload-button:hover {
    transform: translateY(-1px);
}

.primary-button,
.secondary-button {
    border: 0;
    color: #fff;
}

.primary-button {
    width: 100%;
    background: linear-gradient(180deg, #3d68f0, var(--blue-dark));
    box-shadow: 0 16px 30px rgba(49, 94, 234, 0.26), var(--hairline);
}

.secondary-button {
    background: linear-gradient(180deg, var(--navy-soft), var(--navy));
    box-shadow: 0 14px 28px rgba(23, 34, 58, 0.2), var(--hairline);
}

.mail-button {
    width: 100%;
    border: 1px solid rgba(49, 94, 234, 0.2);
    color: var(--blue-dark);
    background: linear-gradient(180deg, #f6f9ff, #edf4ff);
}

.whatsapp-button {
    width: 100%;
    color: #fff;
    background: linear-gradient(180deg, #35dd76, #1fb85a);
    box-shadow: 0 14px 28px rgba(37, 211, 102, 0.24), var(--hairline);
}

.disabled-button {
    color: var(--muted);
    background: #edf1f5;
    box-shadow: none;
    cursor: not-allowed;
}

.disabled-button:hover {
    transform: none;
}

.alert,
.success {
    border-radius: 8px;
    padding: 13px 15px;
    margin-bottom: 18px;
    font-weight: 850;
}

.alert {
    color: var(--danger);
    background: #fff1f0;
    border: 1px solid #ffd1cc;
}

.alert p {
    margin: 0;
}

.success {
    color: var(--green);
    background: #ecf9f1;
    border: 1px solid #bfe8d2;
}

.support-shell {
    padding: 42px 0 30px;
}

.support-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    align-items: end;
    gap: 24px;
    margin-bottom: 22px;
    padding: 30px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(251, 252, 248, 0.98)),
        var(--panel);
    box-shadow: var(--soft-shadow);
}

.support-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--teal), var(--blue));
}

.support-hero h1 {
    max-width: 760px;
    margin-top: 12px;
}

.support-meta {
    margin: 10px 0 0;
}

.back-link {
    width: fit-content;
    min-height: 42px;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    color: var(--navy);
    background: #fff;
    box-shadow: 0 8px 18px rgba(23, 34, 58, 0.05);
}

.status-card,
.proof-box,
.next-step-box {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid rgba(22, 128, 84, 0.22);
    border-radius: 8px;
    background: linear-gradient(180deg, #f5fffa, #ebf8f2);
    box-shadow: var(--hairline);
}

.status-card span,
.proof-box span,
.next-step-box span,
.next-step-box small {
    color: var(--muted);
    font-weight: 850;
}

.status-card strong,
.proof-box strong,
.next-step-box strong {
    color: var(--green);
    font-size: 24px;
    line-height: 1.12;
    word-break: break-word;
}

.status-card small,
.next-step-box small {
    line-height: 1.45;
}

.service-stack {
    display: grid;
    gap: 18px;
}

.service-card {
    position: relative;
    display: grid;
    grid-template-columns: 250px minmax(0, 0.86fr) minmax(340px, 1fr);
    gap: 24px;
    align-items: start;
    padding: 28px;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--blue);
}

.warranty-card {
    grid-template-columns: 250px minmax(0, 1fr) 280px;
    border-color: rgba(22, 128, 84, 0.25);
    background: linear-gradient(180deg, #ffffff, #f7fcfa);
}

.warranty-card::before {
    background: var(--green);
}

.help-card {
    border-color: rgba(49, 94, 234, 0.22);
    background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.review-card {
    border-color: rgba(217, 155, 43, 0.42);
    background: linear-gradient(180deg, #ffffff, #fffaf0);
}

.review-card::before {
    background: var(--gold);
}

.card-kicker {
    display: grid;
    align-content: start;
    gap: 12px;
}

.icon-badge,
.success-mark {
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    font-weight: 900;
}

.icon-badge {
    width: 48px;
    height: 48px;
    background: linear-gradient(180deg, var(--navy-soft), var(--navy));
    font-size: 20px;
    box-shadow: 0 10px 22px rgba(23, 34, 58, 0.14), var(--hairline);
}

.warranty-card .icon-badge {
    background: linear-gradient(180deg, #22a96f, var(--green));
}

.review-card .icon-badge {
    color: #271a03;
    background: linear-gradient(180deg, #f7cf71, var(--gold));
}

.service-content p {
    margin: 12px 0 0;
}

.file-input-native {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.file-upload-button {
    border: 1px dashed rgba(49, 94, 234, 0.42);
    color: var(--blue-dark);
    background: linear-gradient(180deg, #f6f9ff, #eef5ff);
}

.rating-field {
    margin: 0;
    padding: 0;
    border: 0;
}

.rating-field legend {
    margin-bottom: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 850;
}

.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    padding: 4px 6px;
    border: 1px solid rgba(217, 155, 43, 0.22);
    border-radius: 8px;
    background: rgba(255, 246, 223, 0.72);
}

.star-rating input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    opacity: 0;
}

.star-rating label {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #c6ced8;
    font-size: 31px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.18s ease, transform 0.18s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: var(--gold);
}

.star-rating label:hover {
    transform: translateY(-1px);
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    font-size: 14px;
}

.thanks-shell {
    width: min(780px, calc(100% - 36px));
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 34px 0;
}

.thanks-panel {
    width: 100%;
}

.success-mark {
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: linear-gradient(180deg, #22a96f, var(--green));
    font-size: 30px;
    box-shadow: 0 14px 26px rgba(22, 128, 84, 0.22), var(--hairline);
}

.thanks-copy {
    margin: 14px 0 22px;
    font-size: 17px;
}

.submission-summary {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
}

.submission-summary div {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.submission-summary dt {
    color: var(--muted);
    font-weight: 900;
}

.submission-summary dd {
    margin: 0;
    word-break: break-word;
}

.next-step-box {
    margin-bottom: 18px;
}

.next-step-box strong {
    display: block;
    margin: 4px 0;
}

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

.admin-login-shell,
.admin-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.admin-login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 34px 0;
}

.admin-login-panel,
.admin-header,
.admin-metrics > div,
.admin-toolbar,
.admin-table-panel,
.admin-detail-panel {
    border: 1px solid rgba(220, 227, 236, 0.95);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--soft-shadow);
}

.admin-login-panel {
    position: relative;
    width: min(520px, 100%);
    padding: 38px;
    overflow: hidden;
}

.admin-login-panel::before,
.admin-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 26px;
    right: 26px;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, var(--blue), var(--teal), var(--gold));
}

.admin-brand {
    margin-bottom: 22px;
    color: var(--navy);
}

.admin-login-panel h1,
.admin-header h1 {
    margin: 0;
    font-size: 36px;
    line-height: 1.12;
}

.admin-login-form {
    margin-top: 22px;
}

.admin-shell {
    padding: 34px 0;
}

.admin-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
    padding: 28px;
}

.admin-header .back-link {
    margin: 0;
}

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

.admin-metrics > div {
    display: grid;
    gap: 6px;
    padding: 18px;
}

.admin-metrics span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.admin-metrics strong {
    color: var(--navy);
    font-size: 30px;
    line-height: 1;
}

.admin-toolbar {
    padding: 18px;
    margin-bottom: 18px;
}

.admin-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 200px 190px 170px;
    gap: 14px;
    align-items: end;
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 18px;
    align-items: start;
}

.admin-table-panel,
.admin-detail-panel {
    padding: 18px;
}

.admin-detail-panel {
    position: sticky;
    top: 18px;
}

.table-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.table-heading h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.table-heading > span {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: #fbfcfe;
    font-size: 13px;
    font-weight: 850;
}

.admin-table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    background: #fff;
}

.admin-table th,
.admin-table td {
    padding: 14px 13px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: var(--muted);
    background: #f8fafc;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.admin-table tbody tr {
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.admin-table tbody tr:hover,
.admin-table tbody tr.is-active,
.admin-table tbody tr:focus {
    background: #f6f9ff;
    outline: none;
}

.admin-table tbody tr.is-active {
    box-shadow: inset 4px 0 0 var(--blue);
}

.admin-table td strong,
.admin-table td span {
    display: block;
    word-break: break-word;
}

.admin-table td small,
.admin-table time {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    word-break: break-word;
}

.type-pill {
    width: fit-content;
    padding: 6px 8px;
    border: 1px solid rgba(11, 118, 109, 0.18);
    border-radius: 999px;
    color: var(--teal);
    background: var(--teal-soft);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.admin-pagination a,
.admin-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 96px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--navy);
    background: #fff;
    font-weight: 850;
    text-decoration: none;
}

.admin-pagination a {
    border-color: rgba(49, 94, 234, 0.22);
    color: var(--blue-dark);
    background: #f6f9ff;
}

.admin-pagination span {
    color: var(--quiet);
    background: #f8fafc;
}

.admin-pagination strong {
    color: var(--muted);
    font-size: 14px;
    font-weight: 850;
}

.detail-heading {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.detail-heading h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.14;
    word-break: break-word;
}

.detail-heading p:last-child {
    margin: 8px 0 0;
    color: var(--muted);
}

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

.detail-grid div,
.message-box,
.attachments-box {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.detail-grid dt,
.message-box span,
.attachments-box span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.detail-grid dd {
    margin: 7px 0 0;
    color: var(--ink);
    font-weight: 750;
    word-break: break-word;
}

.timeline-box,
.message-box,
.attachments-box {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.timeline-box {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.timeline-box > span,
.message-box > span,
.attachments-box > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.activity-list,
.message-list {
    display: grid;
    gap: 10px;
}

.status-line {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(22, 128, 84, 0.22);
    border-radius: 8px;
    background: linear-gradient(180deg, #f5fffa, #ebf8f2);
}

.status-line strong {
    color: var(--green);
    font-size: 22px;
    line-height: 1.12;
}

.status-line small {
    color: var(--muted);
    font-weight: 750;
    line-height: 1.45;
}

.activity-list article,
.message-list article {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.activity-list strong,
.message-list strong {
    color: var(--ink);
}

.activity-list time,
.activity-list small,
.message-list time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.message-box p {
    margin: 0;
    color: var(--text);
    line-height: 1.65;
}

.empty-note {
    color: var(--quiet) !important;
    font-weight: 700;
}

.attachment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 10px;
}

.attachment-card {
    display: grid;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(49, 94, 234, 0.22);
    border-radius: 8px;
    color: var(--blue-dark);
    background: #f6f9ff;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    word-break: break-word;
}

.attachment-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    background: #e8edf5;
}

.empty-state {
    margin: 0;
    padding: 18px;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    color: var(--muted);
    background: #fbfcfe;
    font-weight: 750;
}

@media (max-width: 1040px) {
    .home-shell {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .entry-panel {
        order: 1;
    }

    .hero-panel {
        order: 2;
        min-height: 520px;
    }

    .service-card,
    .warranty-card,
    .support-hero {
        grid-template-columns: 1fr;
    }

    .status-card,
    .proof-box {
        max-width: 380px;
    }

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

    .admin-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        background: var(--soft);
    }

    .home-shell,
    .support-shell,
    .thanks-shell,
    .admin-login-shell,
    .admin-shell {
        width: min(100% - 16px, 1180px);
    }

    .home-shell {
        min-height: auto;
        gap: 12px;
        padding: 8px 0 18px;
    }

    .hero-panel,
    .entry-panel,
    .service-card,
    .support-hero,
    .thanks-panel,
    .admin-login-panel,
    .admin-header,
    .admin-toolbar,
    .admin-table-panel,
    .admin-detail-panel {
        padding: 18px;
        box-shadow: 0 12px 34px rgba(23, 34, 58, 0.1);
    }

    .entry-panel::before,
    .thanks-panel::before,
    .admin-login-panel::before,
    .admin-header::before {
        left: 18px;
        right: 18px;
    }

    .hero-panel {
        min-height: auto;
    }

    .hero-panel::after {
        left: 18px;
        right: 18px;
        bottom: 104px;
    }

    .brand-nav {
        font-size: 14px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .hero-copy h1,
    .support-hero h1,
    .thanks-panel h1,
    .admin-login-panel h1,
    .admin-header h1 {
        font-size: 29px;
        line-height: 1.15;
    }

    .hero-copy p,
    .thanks-copy {
        font-size: 15px;
        line-height: 1.58;
    }

    .support-preview {
        height: 128px;
        margin: 18px 0;
    }

    .preview-window {
        width: 78%;
        height: 104px;
        padding: 18px;
        gap: 10px;
    }

    .preview-ticket {
        width: 50%;
        padding: 14px;
    }

    .preview-ticket strong {
        font-size: 23px;
    }

    .preview-ticket span {
        font-size: 12px;
    }

    .trust-list span {
        width: 100%;
        text-align: center;
    }

    .panel-heading {
        margin-bottom: 16px;
    }

    .panel-heading h2,
    .service-card h2 {
        font-size: 23px;
    }

    .field-grid,
    .submission-summary div,
    .thanks-actions,
    .detail-grid,
    .admin-metrics {
        grid-template-columns: 1fr;
    }

    .admin-header {
        display: grid;
    }

    .admin-header .back-link {
        width: 100%;
    }

    .admin-detail-panel {
        position: static;
    }

    .admin-filters {
        grid-template-columns: 1fr;
    }

    .table-heading {
        display: grid;
    }

    .admin-table-wrap {
        overflow: visible;
        border: 0;
    }

    .admin-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 8px 22px rgba(23, 34, 58, 0.06);
    }

    .admin-table th,
    .admin-table td {
        border-bottom: 1px solid var(--line);
        padding: 11px 13px;
    }

    .admin-table td {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
    }

    .admin-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .admin-table td:last-child {
        border-bottom: 0;
    }

    .admin-pagination {
        display: grid;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .submission-summary div {
        gap: 4px;
    }

    .primary-button,
    .secondary-button,
    .mail-button,
    .whatsapp-button,
    .file-upload-button {
        min-height: 54px;
        padding: 0 14px;
    }

    .support-shell {
        padding: 8px 0 18px;
    }

    .back-link {
        width: 100%;
        margin-bottom: 16px;
    }

    .status-card,
    .proof-box {
        max-width: none;
    }

    .card-kicker {
        grid-template-columns: 48px minmax(0, 1fr);
        align-items: center;
    }

    .card-kicker .eyebrow {
        margin: 0;
    }

    .star-rating {
        width: 100%;
        justify-content: center;
    }

    .star-rating label {
        width: 38px;
        height: 38px;
        font-size: 30px;
    }
}

@media (max-width: 380px) {
    .hero-panel,
    .entry-panel,
    .service-card,
    .support-hero,
    .thanks-panel,
    .admin-login-panel,
    .admin-header,
    .admin-toolbar,
    .admin-table-panel,
    .admin-detail-panel {
        padding: 15px;
    }

    .hero-copy h1,
    .support-hero h1,
    .thanks-panel h1,
    .admin-login-panel h1,
    .admin-header h1 {
        font-size: 26px;
    }

    .panel-heading h2,
    .service-card h2 {
        font-size: 21px;
    }
}
