:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --ink: #172033;
    --muted: #64748b;
    --line: #dbe3ef;
    --soft: #f4f7fb;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #f7fafc;
}

.public-body {
    min-height: 100vh;
}

.app-report-body {
    --primary: #e85d12;
    --primary-dark: #b91c1c;
    --ink: #1f1f22;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 117, 24, .18), transparent 32%),
        radial-gradient(circle at 88% 5%, rgba(185, 28, 28, .12), transparent 28%),
        linear-gradient(180deg, #fff7ef 0%, #f7f1ed 45%, #eef2f7 100%);
}

.app-report-shell {
    width: min(480px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 26px 14px 28px;
}

.app-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.app-logo-panel {
    display: grid;
    place-items: center;
    margin: 0 0 18px;
}

.app-logo-panel img {
    width: min(390px, 96%);
    max-height: 210px;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(120, 45, 20, .18));
}

.app-mini-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.app-mini-brand span,
.app-admin-link,
.app-state-dot {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: #ff7a1a;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    backdrop-filter: blur(12px);
}

.app-admin-link {
    text-decoration: none;
}

.app-report-card {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 122, 26, .22);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .26);
}

.form-brand-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px;
    background:
        linear-gradient(135deg, rgba(255, 240, 229, .96), rgba(255, 255, 255, .98));
    border: 1px solid #fed7aa;
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 16px 34px rgba(120, 45, 20, .08);
}

.form-brand-panel img {
    width: 118px;
    max-width: 32vw;
    height: 62px;
    object-fit: contain;
    padding: 6px;
    background: #fff;
    border: 1px solid #ffe2cc;
    border-radius: 14px;
}

.form-brand-panel strong,
.form-brand-panel span {
    display: block;
    min-width: 0;
}

.form-brand-panel strong {
    color: #8a1218;
    font-size: 1.08rem;
    font-weight: 900;
}

.form-brand-panel span {
    margin-top: 2px;
    color: var(--muted);
    line-height: 1.35;
}

.app-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.app-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 6px 9px;
    color: #8a1218;
    background: #fff3e8;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}

.app-card-head h1 {
    margin: 12px 0 8px;
    font-size: 1.85rem;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
    color: #8a1218;
}

.app-card-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

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

.app-input-group {
    display: grid;
    gap: 7px;
}

.app-input-group label {
    color: #334155;
    font-weight: 850;
}

.app-input-wrap {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    min-height: 52px;
    background: #fffaf5;
    border: 1px solid #f4d2bd;
    border-radius: 14px;
    overflow: hidden;
}

.app-textarea-wrap {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: start;
    min-height: 112px;
    padding-top: 12px;
    background: #fffaf5;
    border: 1px solid #f4d2bd;
    border-radius: 14px;
    overflow: hidden;
}

.app-input-wrap i {
    color: var(--primary);
    text-align: center;
}

.app-textarea-wrap i {
    color: var(--primary);
    text-align: center;
    padding-top: 4px;
}

.app-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 52px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 700;
}

.app-textarea-wrap textarea {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    resize: vertical;
    background: transparent;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.45;
    padding: 0 12px 12px 0;
}

.app-upload-box {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 210px;
    padding: 18px;
    background: linear-gradient(180deg, #fffaf5, #fff);
    border: 1px dashed #e85d12;
    border-radius: 18px;
    overflow: hidden;
}

.app-upload-box.has-preview {
    padding: 8px;
    background: #111827;
    border-style: solid;
    border-color: #cbd5e1;
}

.app-upload-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.app-upload-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    font-weight: 700;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.app-photo-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 700;
}

.app-photo-meta[hidden] {
    display: none;
}

.app-photo-meta span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.upload-empty {
    display: grid;
    justify-items: center;
    gap: 6px;
    color: var(--muted);
    text-align: center;
}

.upload-empty[hidden] {
    display: none;
}

.upload-empty i {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--primary);
    background: #fff0e5;
    font-size: 1.35rem;
}

.upload-empty strong {
    color: var(--ink);
    max-width: 100%;
    overflow-wrap: anywhere;
}

#photoPreview {
    display: none;
    width: 100%;
    height: 245px;
    object-fit: cover;
    border-radius: 14px;
}

#photoPreview.is-visible {
    display: block;
}

@media (max-width: 420px) {
    .app-upload-actions {
        grid-template-columns: 1fr;
    }
}

.app-auto-stack {
    display: grid;
    gap: 10px;
}

.app-auto-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fffaf5;
    border: 1px solid #f4d2bd;
    border-radius: 14px;
}

.app-auto-item > i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #fff0e5;
    border-radius: 12px;
}

.app-auto-item strong,
.app-auto-item span {
    display: block;
}

.app-auto-item strong {
    font-size: .95rem;
}

.app-auto-item span {
    color: var(--muted);
    font-size: .84rem;
}

.app-auto-item.is-ready {
    border-color: rgba(22, 163, 74, .35);
    background: #f0fdf4;
}

.app-auto-item.is-ready > i {
    color: #15803d;
    background: #dcfce7;
}

.app-auto-item.is-error {
    border-color: rgba(220, 38, 38, .35);
    background: #fef2f2;
}

.app-auto-item.is-error > i {
    color: var(--danger);
    background: #fee2e2;
}

.app-submit-btn {
    min-height: 54px;
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(232, 93, 18, .24);
}

.public-shell {
    overflow: hidden;
}

.public-hero {
    min-height: 620px;
    padding: 22px clamp(18px, 4vw, 64px) 78px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(8, 18, 41, .92), rgba(15, 23, 42, .66)),
        url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.brand-mark span,
.soft-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 28px;
    align-items: end;
    max-width: 1180px;
    margin: 120px auto 0;
}

.eyebrow,
.section-heading span {
    color: #93c5fd;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
}

.hero-copy h1 {
    max-width: 760px;
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    line-height: .98;
    font-weight: 900;
    margin: 14px 0 22px;
}

.hero-copy p {
    max-width: 690px;
    color: rgba(255, 255, 255, .84);
    font-size: 1.08rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero-stats div,
.institution-card,
.report-form,
.map-panel,
.trust-strip {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
}

.hero-stats div {
    min-width: 135px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
}

.hero-stats strong {
    display: block;
    font-size: 1.35rem;
}

.hero-stats span,
.institution-card p,
.mini-list span {
    color: rgba(255, 255, 255, .76);
}

.institution-card {
    padding: 24px;
    background: rgba(15, 23, 42, .5);
    backdrop-filter: blur(16px);
}

.institution-card h2 {
    font-size: 1.35rem;
    margin: 18px 0 10px;
}

.mini-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.mini-list span {
    display: flex;
    align-items: center;
    gap: 10px;
    word-break: break-word;
}

.form-band {
    margin-top: -46px;
    padding: 0 0 62px;
}

.report-form,
.map-panel,
.trust-strip,
.admin-card,
.content-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 55px rgba(15, 23, 42, .08);
}

.report-form {
    padding: clamp(20px, 4vw, 34px);
}

.section-heading h2 {
    font-weight: 850;
    margin: 6px 0 22px;
}

.form-label {
    font-weight: 700;
    color: #334155;
}

.form-control,
.form-select {
    border-color: var(--line);
    border-radius: var(--radius);
    min-height: 46px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .14);
}

.location-row {
    display: grid;
    grid-template-columns: 1fr 52px;
    gap: 10px;
}

.btn {
    border-radius: var(--radius);
    font-weight: 700;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

#publicMap {
    width: 100%;
    height: 410px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.map-caption {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    color: var(--muted);
    font-weight: 650;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
    padding: 16px;
}

.trust-strip div {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .86rem;
    text-align: center;
}

.trust-strip i {
    color: var(--primary);
    font-size: 1.2rem;
}

.admin-body {
    background:
        radial-gradient(circle at 12% 8%, rgba(232, 93, 18, .09), transparent 28%),
        linear-gradient(180deg, #fff7ef 0%, #f6f1ed 38%, #eef2f7 100%);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 22px;
    background:
        linear-gradient(120deg, rgba(15, 23, 42, .88), rgba(37, 99, 235, .62)),
        url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.auth-card {
    width: min(440px, 100%);
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 28px 80px rgba(2, 6, 23, .24);
}

.login-brand-panel {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 16px 14px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(255, 240, 229, .96), rgba(255, 255, 255, .98));
    border: 1px solid #fed7aa;
    border-radius: 18px;
}

.login-brand-panel img {
    width: min(270px, 88%);
    max-height: 130px;
    object-fit: contain;
}

.login-brand-panel strong,
.login-brand-panel span {
    display: block;
}

.login-brand-panel strong {
    color: #8a1218;
    font-size: 1.18rem;
    font-weight: 900;
}

.login-brand-panel span {
    color: var(--muted);
    font-weight: 700;
}

.admin-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 20px;
    background: rgba(255, 255, 255, .88);
    color: var(--ink);
    border-right: 1px solid #ead8cf;
    box-shadow: 12px 0 40px rgba(120, 45, 20, .08);
    overflow-y: auto;
}

.sidebar .brand-mark {
    margin-bottom: 26px;
    color: #8a1218;
}

.sidebar .brand-mark span {
    background: #fff0e5;
    border-color: #fed7aa;
    color: #e85d12;
}

.nav-menu {
    display: grid;
    gap: 8px;
}

.nav-menu a,
.nav-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    color: #6b5c57;
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    list-style: none;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.nav-menu a {
    justify-content: flex-start;
}

.nav-group summary::-webkit-details-marker {
    display: none;
}

.nav-group summary span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.nav-group summary > .fa-chevron-down {
    font-size: .78rem;
    transition: transform .16s ease;
}

.nav-group[open] summary > .fa-chevron-down {
    transform: rotate(180deg);
}

.nav-menu a.active,
.nav-menu a:hover,
.nav-group summary.active,
.nav-group summary:hover {
    color: #8a1218;
    background: #fff0e5;
    border-color: #fed7aa;
}

.nav-submenu {
    display: grid;
    gap: 4px;
    margin: 6px 0 2px 16px;
    padding-left: 12px;
    border-left: 1px solid #f2d8c8;
}

.nav-submenu a {
    min-height: 38px;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: .94rem;
}

.nav-menu .nav-logout {
    color: #b91c1c;
}

.nav-menu .nav-logout:hover,
.nav-menu .nav-logout.active {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fecaca;
}

.admin-main {
    min-width: 0;
}

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

.admin-userbox {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.admin-user-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.admin-user-meta strong {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-content {
    padding: 24px;
}

.page-title h1 {
    font-size: 1.55rem;
    font-weight: 850;
    margin: 0;
}

.page-title p {
    margin: 4px 0 0;
    color: var(--muted);
}

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

.metric-card {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.metric-card span {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 750;
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    font-size: 2rem;
    line-height: 1;
}

.content-card {
    padding: 18px;
}

.tracking-body,
.technician-body,
.technician-auth-body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 117, 24, .16), transparent 32%),
        linear-gradient(180deg, #fff7ef 0%, #f7f1ed 45%, #eef2f7 100%);
}

.tracking-shell,
.technician-shell {
    width: min(760px, 100%);
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 24px 14px 38px;
}

.tracking-logo {
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.tracking-logo img {
    width: min(360px, 92%);
    max-height: 170px;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(120, 45, 20, .16));
}

.tracking-search,
.tracking-card,
.technician-detail-card,
.technician-login-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 122, 26, .2);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 22px 55px rgba(120, 45, 20, .1);
}

.tracking-card h1 {
    margin: 12px 0 8px;
    color: #8a1218;
    font-size: 1.45rem;
    font-weight: 900;
}

.tracking-photo,
.technician-detail-card > img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #f4d2bd;
    margin-top: 14px;
}

.work-photo-preview,
.work-photo-grid {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.tech-upload-box {
    width: 100%;
    min-width: 0;
    display: grid;
    place-items: center;
    min-height: 210px;
    padding: 18px;
    background: linear-gradient(180deg, #fffaf5, #fff);
    border: 1px dashed #e85d12;
    border-radius: 18px;
    overflow: hidden;
}

.tech-upload-box.has-preview {
    place-items: stretch;
    padding: 10px;
    border-style: solid;
    border-color: #f4d2bd;
}

.tech-upload-empty {
    display: grid;
    justify-items: center;
    gap: 6px;
    color: var(--muted);
    text-align: center;
}

.tech-upload-empty[hidden] {
    display: none;
}

.tech-upload-empty i {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--primary);
    background: #fff0e5;
    font-size: 1.35rem;
}

.tech-upload-empty strong {
    color: var(--ink);
}

.work-photo-preview-item,
.work-photo-item {
    position: relative;
    min-width: 0;
    max-width: 100%;
    display: grid;
    gap: 7px;
    padding: 8px;
    color: var(--ink);
    text-decoration: none;
    background: #fffaf5;
    border: 1px solid #f4d2bd;
    border-radius: 12px;
}

.work-photo-preview-item::before {
    content: "Memuat foto...";
    position: absolute;
    inset: 8px 8px auto 8px;
    aspect-ratio: 4 / 3;
    max-width: calc(100% - 16px);
    display: none;
    place-items: center;
    color: var(--muted);
    background: #fff;
    border-radius: 9px;
    font-size: .78rem;
    font-weight: 800;
}

.work-photo-preview-item.is-loading::before,
.work-photo-preview-item.is-error::before {
    display: grid;
}

.work-photo-preview-item.is-error::before {
    content: "Preview tidak tersedia";
    color: #b91c1c;
}

.work-photo-preview-item img,
.work-photo-item img,
.work-photo-item span {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 9px;
    background: #fff;
}

.work-photo-item span {
    display: grid;
    place-items: center;
    color: #e85d12;
    font-size: 2rem;
}

.work-photo-preview-item span,
.work-photo-item strong,
.work-photo-item small {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: .82rem;
}

.work-photo-item small {
    color: var(--muted);
}

.work-photo-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(185, 28, 28, .92);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .22);
}

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

.tracking-grid div {
    padding: 12px;
    background: #fffaf5;
    border: 1px solid #f4d2bd;
    border-radius: 12px;
}

.tracking-grid .span-all {
    grid-column: 1 / -1;
}

.tracking-grid span {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tracking-grid strong {
    display: block;
    margin-top: 3px;
}

.technician-auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.technician-login-card {
    width: min(430px, 100%);
}

.technician-login-card img {
    display: block;
    width: min(290px, 90%);
    margin: 0 auto 16px;
}

.technician-login-card h1 {
    color: #8a1218;
    font-weight: 900;
}

.technician-login-card p {
    color: var(--muted);
}

.technician-form-brand {
    margin: 0 0 18px;
    background:
        linear-gradient(135deg, rgba(255, 240, 229, .98), rgba(248, 250, 252, .96));
}

.technician-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid #ead8cf;
    backdrop-filter: blur(14px);
}

.technician-topbar strong,
.technician-topbar span {
    display: block;
}

.technician-topbar span {
    color: var(--muted);
    font-size: .86rem;
}

.technician-list {
    display: grid;
    gap: 12px;
}

.technician-task-card {
    display: grid;
    grid-template-columns: 86px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    color: var(--ink);
    text-decoration: none;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 122, 26, .2);
    border-radius: 16px;
    box-shadow: 0 16px 38px rgba(120, 45, 20, .08);
}

.technician-task-card img {
    width: 86px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.technician-task-card span,
.technician-task-card small {
    display: block;
    color: var(--muted);
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.photo-thumb {
    width: 68px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.detail-photo {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.detail-list {
    display: grid;
    gap: 12px;
}

.detail-list div {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.detail-list span {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-list strong {
    display: block;
    margin-top: 4px;
    word-break: break-word;
}

#adminMap {
    height: 330px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

#heatMap {
    height: 480px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.timeline-list,
.comment-list,
.attachment-list {
    display: grid;
    gap: 12px;
}

.timeline-list div,
.comment-list div,
.attachment-list a,
.qr-card {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fafc;
}

.timeline-list span,
.comment-list span,
.attachment-list span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: .82rem;
}

.comment-list p,
.timeline-list p {
    margin: 8px 0 0;
}

.history-photo-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.timeline-list .history-photo-strip a {
    display: block;
    overflow: hidden;
    padding: 0;
    border: 1px solid #f4d2bd;
    border-radius: 10px;
    background: #fff;
}

.history-photo-strip img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.attachment-list a {
    display: grid;
    gap: 4px;
    color: var(--ink);
    text-decoration: none;
}

.qr-card {
    text-align: center;
}

.qr-card img {
    width: min(260px, 100%);
    height: auto;
}

@media (max-width: 991.98px) {
    .hero-grid,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .public-hero {
        min-height: auto;
        padding-bottom: 92px;
    }

    .hero-grid {
        margin-top: 76px;
    }

    .sidebar {
        position: static;
        height: auto;
    }

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

    .nav-group {
        min-width: 0;
    }

    .nav-submenu {
        margin-left: 8px;
    }

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

@media (max-width: 575.98px) {
    .topbar,
    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-menu {
        grid-template-columns: 1fr;
    }

    .admin-userbox {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .admin-user-meta strong {
        max-width: 160px;
    }

    .form-brand-panel {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .form-brand-panel img {
        max-width: 220px;
        width: 72%;
        height: 78px;
    }

    .hero-stats,
    .trust-strip {
        grid-template-columns: 1fr;
    }

    .hero-stats div {
        width: 100%;
    }

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

    .admin-content {
        padding: 16px;
    }
}
