*,*::before,*::after{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:#f1f5f9;color:#0f172a;line-height:1.5}a{color:#1d4ed8;text-decoration:none}a:hover{text-decoration:underline}.container{max-width:1200px;margin:0 auto;padding:24px}.card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px;box-shadow:0 1px 2px rgba(15,23,42,.04)}.grid{display:grid;gap:16px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:768px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border-radius:8px;border:1px solid transparent;font-weight:600;cursor:pointer;text-decoration:none;font-size:14px}.btn-primary{background:#1e40af;color:#fff}.btn-secondary{background:#fff;border-color:#cbd5e1;color:#0f172a}.btn-danger{background:#dc2626;color:#fff}.btn-sm{padding:6px 12px;font-size:13px}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:12px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top}.table th{font-size:12px;text-transform:uppercase;color:#64748b;letter-spacing:.04em}.badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;background:#e2e8f0;color:#334155}.badge-success{background:#dcfce7;color:#166534}.badge-warning{background:#fef3c7;color:#92400e}.badge-danger{background:#fee2e2;color:#991b1b}.badge-info{background:#dbeafe;color:#1e40af}.alert{padding:12px 16px;border-radius:8px;margin-bottom:16px}.alert-success{background:#dcfce7;color:#166534}.alert-error{background:#fee2e2;color:#991b1b}.form-group{margin-bottom:16px}.form-group label{display:block;margin-bottom:6px;font-weight:600;font-size:14px}.form-control,.form-select{width:100%;padding:10px 12px;border:1px solid #cbd5e1;border-radius:8px;font:inherit;background:#fff}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}@media(max-width:768px){.form-row{grid-template-columns:1fr}}.admin-shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.admin-main{display:flex;flex-direction:column;min-height:100vh;background:#f1f5f9}.sidebar{background:#0f172a;color:#e2e8f0;padding:24px 16px}.sidebar h1{font-size:16px;margin:0 0 24px;color:#fff}.sidebar nav a{display:block;padding:10px 12px;border-radius:8px;color:#cbd5e1;margin-bottom:4px}.sidebar nav a.active,.sidebar nav a:hover{background:#1e293b;color:#fff;text-decoration:none}.sidebar-logout{margin-top:24px}.sidebar-logout .btn{width:100%}.admin-main .main-content{flex:1;padding:24px}.main-content{padding:24px}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:16px;flex-wrap:wrap}.page-header h2{margin:0;font-size:28px}.stat-card .stat-value{font-size:32px;font-weight:700;color:#1e40af}.stat-card .stat-label{color:#64748b;font-size:14px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px;border-bottom:1px solid #e2e8f0;padding-bottom:8px}.tabs a{padding:8px 12px;border-radius:8px 8px 0 0;color:#475569}.tabs a.active{background:#fff;border:1px solid #e2e8f0;border-bottom-color:#fff;color:#1e40af;font-weight:600;text-decoration:none}.progress-bar{height:10px;background:#e2e8f0;border-radius:999px;overflow:hidden}.progress-bar span{display:block;height:100%;background:linear-gradient(90deg,#1e40af,#3b82f6)}.timeline{display:grid;gap:16px}.milestone-card{border-left:4px solid #1e40af;padding-left:16px}.empty-state{text-align:center;padding:40px;color:#64748b}.auth-page{flex:1;display:flex;align-items:center;justify-content:center;padding:24px 16px;min-height:0;width:100%}.auth-card{width:100%;max-width:420px}.customer-header{background:#0f172a;color:#fff;padding:20px 0}.customer-header .container{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.customer-header h1{margin:0;font-size:20px}.contact-list{display:grid;gap:12px}.contact-option{display:flex;justify-content:space-between;align-items:center;padding:16px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.text-muted{color:#64748b;font-size:14px}.actions{display:flex;gap:8px;flex-wrap:wrap}.hidden{display:none!important}.sidebar-brand{display:block;margin-bottom:24px;text-decoration:none}.sidebar-logo{max-width:160px;width:100%;height:auto;display:block;filter:brightness(0) invert(1)}.auth-brand{text-align:center;margin-bottom:20px}.auth-logo{max-width:200px;width:100%;height:auto}.customer-logo{max-width:140px;height:auto;filter:brightness(0) invert(1)}.error-page{text-align:center;padding:48px 24px}.error-page h1{font-size:72px;margin:0;color:#1e40af;line-height:1}.error-page h2{margin:12px 0}.milestone-accordion{display:grid;gap:10px}.milestone-item{border:1px solid #e2e8f0;border-radius:10px;background:#fff;overflow:hidden}.milestone-item.dragging{opacity:.6;border-color:#1e40af}.milestone-summary{display:flex;align-items:center;gap:12px;padding:14px 16px;cursor:pointer;background:#f8fafc;user-select:none}.milestone-summary-text{flex:1;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.milestone-body{padding:16px;border-top:1px solid #e2e8f0}.milestone-toggle{color:#64748b;font-size:12px}.drag-handle{cursor:grab;color:#94a3b8;font-size:18px}.comment-item{background:#f8fafc;border-radius:8px;padding:10px 12px;margin:8px 0}.comment-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px;font-size:13px}.site-body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;-webkit-text-size-adjust:100%}.site-body--admin{display:block;min-height:100dvh}.site-body--guest{min-height:100dvh;max-height:100dvh;overflow:hidden}.site-body--customer{min-height:100dvh;display:flex;flex-direction:column}.site-body--guest .auth-page{overflow-y:auto;-webkit-overflow-scrolling:touch}.customer-content{flex:1;padding-top:24px;padding-bottom:24px}.site-footer{margin-top:auto;padding:0;border-top:1px solid #e2e8f0;background:#fff}.site-footer-inner{max-width:1200px;margin:0 auto;padding:14px 24px;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;font-size:13px;color:#64748b;line-height:1.4}.site-footer-copy{color:#94a3b8}.site-footer-sep{width:4px;height:4px;border-radius:50%;background:#cbd5e1;flex-shrink:0}.site-footer a{color:#1e40af;font-weight:600;text-decoration:none;transition:color .15s ease}.site-footer a:hover{color:#1e3a8a;text-decoration:none}.site-footer--dark{border-top:none;background:#0f172a}.site-footer--dark .site-footer-inner{color:#94a3b8}.site-footer--dark .site-footer-copy{color:#64748b}.site-footer--dark .site-footer-sep{background:#334155}.site-footer--dark a{color:#e2e8f0}.site-footer--dark a:hover{color:#fff}.site-body--guest .auth-page{flex:1;min-height:0}.milestone-attach-icon{font-size:14px;line-height:1;opacity:.9;flex-shrink:0}
.site-body--customer .container{width:100%;max-width:1200px}
.site-body--customer .customer-content{flex:1;width:100%;padding-top:16px;padding-bottom:16px;padding-bottom:calc(16px + env(safe-area-inset-bottom,0))}
.site-body--customer .tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;gap:0;padding-bottom:2px}
.site-body--customer .tabs a{white-space:nowrap;flex-shrink:0}
.site-body--customer .page-header{flex-wrap:wrap;gap:12px}
@media(max-width:768px){.site-body--customer .container{padding:12px 16px}.site-body--customer .card{padding:16px}.site-body--customer .page-header h2{font-size:1.25rem}}
.gallery-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px}.gallery-modal.hidden{display:none!important}.gallery-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.82)}.gallery-modal-panel{position:relative;z-index:1;width:min(960px,100%);max-height:calc(100dvh - 32px);background:#0f172a;color:#fff;border-radius:14px;box-shadow:0 24px 48px rgba(0,0,0,.35);display:flex;flex-direction:column;overflow:hidden}.gallery-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #334155}.gallery-modal-title{margin:0;font-size:18px;color:#fff}.gallery-modal-caption{margin:4px 0 0;font-size:13px;color:#94a3b8}.gallery-modal-close{background:transparent;border:none;color:#e2e8f0;font-size:28px;line-height:1;cursor:pointer;padding:0 4px}.gallery-modal-body{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;padding:16px;min-height:280px;flex:1;min-height:0}.gallery-stage{flex:1;display:flex;align-items:center;justify-content:center;min-width:0;max-height:60dvh}.gallery-stage img{max-width:100%;max-height:60dvh;object-fit:contain;border-radius:8px;background:#1e293b}.gallery-nav{flex-shrink:0;width:40px;height:40px;border-radius:999px;border:1px solid #475569;background:#1e293b;color:#fff;font-size:18px;cursor:pointer}.gallery-nav:hover{background:#334155}.gallery-thumbs{display:flex;gap:8px;padding:12px 16px 16px;overflow-x:auto;-webkit-overflow-scrolling:touch;border-top:1px solid #334155}.gallery-thumb{flex-shrink:0;width:72px;height:72px;padding:0;border:2px solid transparent;border-radius:8px;background:#1e293b;cursor:pointer;overflow:hidden}.gallery-thumb.is-active{border-color:#3b82f6}.gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block}.milestone-files-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}.milestone-file-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;margin-top:8px}.milestone-file-thumb{display:flex;flex-direction:column;gap:6px;padding:0;border:1px solid #e2e8f0;border-radius:10px;background:#fff;cursor:pointer;overflow:hidden;text-align:left}.milestone-file-thumb img{width:100%;aspect-ratio:4/3;object-fit:cover;background:#f1f5f9}.milestone-file-thumb span{padding:0 8px 8px;font-size:12px;color:#475569;line-height:1.3;word-break:break-word}.milestone-file-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.milestone-gallery-btn{flex-shrink:0}body.gallery-open{overflow:hidden}.sortable-list{display:grid;gap:10px}.sortable-item{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.sortable-item.dragging,.milestone-item.dragging{opacity:.6;border-color:#1e40af}.sortable-item-body{flex:1;min-width:0}.template-item-body{display:flex;flex-direction:column;gap:4px}.template-item-row{align-items:center}.status-sortable-item .status-edit-form{width:100%}.status-sortable-item .form-row{display:flex;flex-wrap:wrap;gap:12px}.milestone-unread-dot{display:inline-block;width:10px;height:10px;border-radius:999px;background:#22c55e;box-shadow:0 0 0 2px rgba(34,197,94,.25);flex-shrink:0}.tab-unread-dot{vertical-align:middle;margin-left:4px}.customer-header-label{color:#cbd5e1;font-size:14px}.mobile-topbar{display:none}.sidebar-backdrop{display:none}.mail-editor{border:1px solid #cbd5e1;border-radius:8px;overflow:hidden;background:#fff}.mail-editor-tabs{display:flex;gap:0;border-bottom:1px solid #e2e8f0;background:#f8fafc}.mail-editor-tab{padding:8px 14px;border:none;background:transparent;font:inherit;font-size:13px;font-weight:600;color:#64748b;cursor:pointer;border-bottom:2px solid transparent}.mail-editor-tab.active{color:#1e40af;border-bottom-color:#1e40af;background:#fff}.mail-editor-toolbar{display:flex;flex-wrap:wrap;gap:4px;padding:8px;border-bottom:1px solid #e2e8f0;background:#f8fafc}.mail-editor-toolbar button{padding:6px 10px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;font-size:12px;cursor:pointer;color:#334155}.mail-editor-toolbar button:hover{background:#eff6ff;border-color:#93c5fd}.mail-editor-sep{width:1px;background:#e2e8f0;margin:0 4px;align-self:stretch}.mail-editor-panel{padding:0}.mail-editor-visual{min-height:160px;padding:12px;outline:none;line-height:1.6}.mail-editor-visual:focus{background:#fefefe}.mail-editor-source{border:none;border-radius:0;resize:vertical;font-family:Consolas,Monaco,monospace;font-size:13px}.mail-editor-preview{min-height:160px;padding:12px;background:#f8fafc;border-top:1px solid #e2e8f0;line-height:1.6}.mail-editor-preview .card{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:12px;margin:8px 0}html{-webkit-tap-highlight-color:transparent}body.sidebar-open{overflow:hidden;touch-action:none}.customer-header{position:sticky;top:0;z-index:40;padding-top:env(safe-area-inset-top,0)}@media(max-width:768px){.container{padding:16px}.admin-shell{display:flex;flex-direction:column;min-height:100dvh;grid-template-columns:unset}.mobile-topbar{display:flex;align-items:center;gap:12px;padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top,0));background:#0f172a;color:#fff;position:sticky;top:0;z-index:90;border-bottom:1px solid #1e293b;flex-shrink:0}.mobile-topbar-title{font-size:16px;font-weight:600;letter-spacing:.01em}.mobile-menu-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid #334155;border-radius:10px;background:#1e293b;color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent}.mobile-menu-icon{display:block;width:18px;height:2px;background:currentColor;position:relative;border-radius:1px}.mobile-menu-icon::before,.mobile-menu-icon::after{content:"";position:absolute;left:0;width:18px;height:2px;background:currentColor;border-radius:1px}.mobile-menu-icon::before{top:-6px}.mobile-menu-icon::after{top:6px}.sidebar{position:fixed;inset:0 auto 0 0;width:min(280px,86vw);z-index:1000;transform:translateX(-105%);transition:transform .24s ease;padding-top:calc(24px + env(safe-area-inset-top,0));padding-bottom:env(safe-area-inset-bottom,0);overflow-y:auto;-webkit-overflow-scrolling:touch;box-shadow:none}.sidebar.is-open{transform:translateX(0);box-shadow:8px 0 32px rgba(0,0,0,.28)}.sidebar-backdrop{display:block;position:fixed;inset:0;background:rgba(15,23,42,.52);z-index:999;opacity:0;pointer-events:none;transition:opacity .24s ease}.sidebar-backdrop.is-visible{opacity:1;pointer-events:auto}.admin-main{flex:1;min-height:0;display:flex;flex-direction:column}.admin-main .main-content,.main-content{padding:16px}.page-header h2{font-size:22px}.page-header{align-items:flex-start;margin-bottom:16px}.card{border-radius:16px;padding:16px;overflow-x:auto;-webkit-overflow-scrolling:touch}.table{min-width:560px}.table th,.table td{white-space:nowrap}.auth-card{border-radius:16px;box-shadow:0 8px 32px rgba(15,23,42,.08)}.site-body--guest .auth-page{padding:16px 16px 8px}.site-footer{flex-shrink:0}.site-footer-inner{padding:12px 16px;padding-bottom:calc(12px + env(safe-area-inset-bottom,0))}.site-footer--dark .site-footer-inner{padding-bottom:calc(12px + env(safe-area-inset-bottom,0))}.btn,.form-control,.form-select{min-height:44px;font-size:16px}.btn-sm{min-height:38px;font-size:14px}.tabs{gap:6px;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;padding-bottom:4px;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tabs a{white-space:nowrap;flex-shrink:0;font-size:14px}.actions .btn,.actions form .btn{flex:1 1 auto;justify-content:center}.milestone-summary{padding:12px}.milestone-body{padding:12px}.contact-option{flex-direction:column;align-items:flex-start;gap:12px}.customer-logo{max-width:120px}.customer-header-label{font-size:13px}.error-page h1{font-size:56px}.error-page{padding:32px 16px}.mail-editor-toolbar button{min-height:36px;padding:8px 10px}.mail-editor-tab{padding:10px 12px;min-height:44px}}
.info-modal{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;padding:16px}.info-modal.hidden{display:none!important}.info-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55)}.info-modal-panel{position:relative;z-index:1;width:min(520px,100%);max-height:calc(100dvh - 32px);background:#fff;border-radius:14px;box-shadow:0 20px 40px rgba(15,23,42,.18);display:flex;flex-direction:column;overflow:hidden}.info-modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #e2e8f0}.info-modal-header h3{margin:0;font-size:18px}.info-modal-close{background:transparent;border:none;font-size:28px;line-height:1;color:#64748b;cursor:pointer;padding:0 4px}.info-modal-body{padding:18px;overflow-y:auto;-webkit-overflow-scrolling:touch}.party-rows{display:grid;gap:12px}.party-row-main{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 16px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.party-row-actions{display:flex;gap:8px;flex-wrap:wrap}.payment-settings-fold{margin-bottom:4px}.payment-settings-fold summary{cursor:pointer;font-weight:600;color:#1e40af}.table-compact .table th,.table-compact .table td{padding:10px 12px}.col-actions{width:120px;text-align:right}.table-actions{display:inline-flex;align-items:center;gap:6px}.inline-form{display:inline;margin:0}.btn-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#475569;cursor:pointer;text-decoration:none;transition:background .15s,border-color .15s,color .15s}.btn-icon:hover{background:#eff6ff;border-color:#93c5fd;color:#1e40af;text-decoration:none}.btn-icon-danger:hover{background:#fef2f2;border-color:#fca5a5;color:#dc2626}body.modal-open{overflow:hidden}

/* Customer portal */
.customer-project{margin-top:4px}
.customer-project-header{margin-bottom:20px}
.customer-project-header__main{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.customer-project-title{margin:0;font-size:clamp(1.35rem,4vw,1.75rem);font-weight:700;line-height:1.2;color:#0f172a}
.customer-signed-in{margin:8px 0 0;font-size:14px;color:#64748b}
.customer-tabs{display:flex;gap:8px;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:4px;margin-bottom:20px;scrollbar-width:none}
.customer-tabs::-webkit-scrollbar{display:none}
.customer-tabs__link{display:inline-flex;align-items:center;gap:6px;padding:10px 16px;border-radius:999px;font-size:14px;font-weight:600;color:#475569;background:#e2e8f0;text-decoration:none;white-space:nowrap;flex-shrink:0;transition:background .2s,color .2s,box-shadow .2s}
.customer-tabs__link:hover{text-decoration:none;color:#1e40af;background:#dbeafe}
.customer-tabs__link.is-active{color:#fff;background:linear-gradient(135deg,#1e40af,#2563eb);box-shadow:0 4px 14px rgba(37,99,235,.35)}
.customer-parties-intro{margin:0 0 16px;font-size:14px;color:#64748b}
.customer-party-stack{display:grid;gap:12px}
.customer-party-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;overflow:hidden;box-shadow:0 1px 3px rgba(15,23,42,.06);transition:box-shadow .2s,border-color .2s}
.customer-party-card.is-open{border-color:#93c5fd;box-shadow:0 8px 24px rgba(37,99,235,.12)}
.customer-party-card__trigger{display:flex;align-items:center;gap:14px;width:100%;padding:16px 18px;border:none;background:transparent;text-align:left;cursor:pointer;font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
.customer-party-card__trigger:hover{background:#f8fafc}
.customer-party-card__avatar{flex-shrink:0;width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#1e3a5f,#1e40af);color:#fff;font-weight:700;font-size:16px;display:flex;align-items:center;justify-content:center}
.customer-party-card__meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.customer-party-card__name{font-size:16px;font-weight:600;color:#0f172a;line-height:1.3}
.customer-party-card__sub{font-size:13px;color:#64748b}
.customer-party-card__chevron{flex-shrink:0;width:10px;height:10px;border-right:2px solid #94a3b8;border-bottom:2px solid #94a3b8;transform:rotate(45deg);transition:transform .25s ease;margin-right:4px}
.customer-party-card.is-open .customer-party-card__chevron{transform:rotate(-135deg);margin-top:6px;border-color:#1e40af}
.customer-party-card__panel{border-top:1px solid #e2e8f0;background:#fafbfc;animation:panelSlide .25s ease}
@keyframes panelSlide{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
.customer-party-card__sections{padding:16px 18px 18px;display:grid;gap:16px}
.customer-party-section__title{margin:0 0 10px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#64748b}
.party-role-badge{display:inline-block;width:fit-content;padding:3px 10px;border-radius:999px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.party-role-badge--customer{background:#dbeafe;color:#1e40af}
.party-role-badge--responsible{background:#fef3c7;color:#92400e}
.party-role-badge--manufacturer{background:#dcfce7;color:#166534}
.detail-list{margin:0;display:grid;gap:10px}
.detail-list__row{display:grid;grid-template-columns:minmax(90px,34%) 1fr;gap:8px 12px;align-items:start}
.detail-list__row dt{margin:0;font-size:12px;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.03em}
.detail-list__row dd{margin:0;font-size:14px;color:#0f172a;line-height:1.5;word-break:break-word}
.detail-empty{margin:0;font-size:14px;color:#94a3b8;font-style:italic}
.payment-role-block{margin:0}
.payment-role-block--spaced{margin-top:14px;padding-top:14px;border-top:1px dashed #e2e8f0}
.payment-role-badge{display:inline-block;margin-bottom:10px;padding:4px 10px;border-radius:6px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.payment-role-badge--payee{background:#ede9fe;color:#5b21b6}
.payment-role-badge--exporter{background:#e0f2fe;color:#0369a1}
@media(max-width:768px){.detail-list__row{grid-template-columns:1fr;gap:2px}.customer-party-card__trigger{padding:14px 16px}}
.customer-auth-card{max-width:480px;margin:0 auto;border-radius:16px;padding:24px}
.customer-auth-card__title{margin:0 0 8px;font-size:1.35rem;font-weight:700;color:#0f172a}
.customer-auth-card__lead{margin:0 0 20px;font-size:14px;color:#64748b;line-height:1.5}
.customer-contact-list{display:grid;gap:10px}
.customer-contact-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;transition:border-color .2s,box-shadow .2s}
.customer-contact-item:hover{border-color:#93c5fd;box-shadow:0 2px 8px rgba(37,99,235,.08)}
.customer-contact-item__info{display:flex;flex-direction:column;gap:2px;min-width:0}
.customer-contact-item__info strong{font-size:15px;color:#0f172a}
.customer-otp-form{margin-top:8px}
.customer-otp-input{font-size:24px!important;letter-spacing:.35em;text-align:center;font-weight:600;padding:14px!important}
.customer-otp-hint{margin:0 0 16px;font-size:13px;line-height:1.5}
.customer-otp-resend{margin-top:12px;padding-top:12px;border-top:1px solid #e2e8f0}
@media(max-width:768px){.customer-contact-item{flex-direction:column;align-items:stretch}.customer-contact-item form .btn{width:100%}}
.customer-header__inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.customer-header__brand{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.customer-logout-form{margin:0}
.customer-logout-btn{background:rgba(255,255,255,.12)!important;border-color:rgba(255,255,255,.28)!important;color:#fff!important;min-height:38px}
.customer-logout-btn:hover{background:rgba(255,255,255,.2)!important;color:#fff!important}
.dhl-tracking-card{margin-top:16px;padding:16px 18px;border:1px solid #fde68a;border-radius:16px;background:linear-gradient(180deg,#fffbeb 0%,#fff 42%);box-shadow:0 4px 16px rgba(234,179,8,.12)}
.dhl-tracking-card__header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.dhl-tracking-card__brand{display:flex;align-items:center;gap:12px;min-width:0}
.dhl-tracking-card__logo{display:inline-flex;align-items:center;justify-content:center;min-width:52px;height:36px;padding:0 10px;border-radius:8px;background:#ffcc00;color:#d40511;font-weight:900;font-size:14px;letter-spacing:.04em}
.dhl-tracking-card__title{margin:0 0 4px;font-size:15px;font-weight:700;color:#0f172a}
.dhl-tracking-card__number{margin:0;font-size:13px;color:#64748b}
.dhl-tracking-card__number a{color:#1e40af;font-weight:600;text-decoration:none}
.dhl-tracking-card__number a:hover{text-decoration:underline}
.dhl-tracking-card__hint,.dhl-tracking-card__alert{margin:0}
.dhl-status-badge{display:inline-flex;align-items:center;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.dhl-status-badge--delivered{background:#dcfce7;color:#166534}
.dhl-status-badge--transit{background:#dbeafe;color:#1e40af}
.dhl-status-badge--default{background:#f1f5f9;color:#475569}
.dhl-tracking-card__route{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:14px;padding:12px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0}
.dhl-route-point{display:flex;flex-direction:column;gap:2px}
.dhl-route-point__label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#64748b}
.dhl-route-point__value{font-size:14px;color:#0f172a;line-height:1.4}
.dhl-current-status{margin-bottom:14px;padding:12px 14px;border-radius:12px;background:#fff;border:1px solid #e2e8f0}
.dhl-current-status__label{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#64748b;margin-bottom:4px}
.dhl-current-status__desc{margin:0 0 4px;font-size:15px;font-weight:600;color:#0f172a}
.dhl-current-status__meta{margin:0;font-size:13px}
.dhl-events__title{margin:0 0 12px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#64748b}
.dhl-events-fold{margin-top:4px;border-top:1px solid #fde68a;padding-top:12px}
.dhl-events-fold__trigger{display:flex;align-items:center;gap:8px;width:100%;padding:10px 0;border:none;background:transparent;font:inherit;color:#0f172a;cursor:pointer;list-style:none;-webkit-tap-highlight-color:transparent}
.dhl-events-fold__trigger::-webkit-details-marker{display:none}
.dhl-events-fold__label{font-size:14px;font-weight:600;color:#0f172a}
.dhl-events-fold__count{font-size:13px;color:#64748b;font-weight:500}
.dhl-events-fold__chevron{margin-left:auto;flex-shrink:0;width:8px;height:8px;border-right:2px solid #94a3b8;border-bottom:2px solid #94a3b8;transform:rotate(45deg);transition:transform .2s ease}
.dhl-events-fold[open] .dhl-events-fold__chevron{transform:rotate(-135deg);margin-top:4px;border-color:#1e40af}
.dhl-events-fold .dhl-events__list{margin-top:8px;padding-top:4px}
.dhl-events__list{margin:0;padding:0;list-style:none;display:grid;gap:0}
.dhl-event{display:grid;grid-template-columns:16px 1fr;gap:12px;padding:0 0 14px;position:relative}
.dhl-event:last-child{padding-bottom:0}
.dhl-event:not(:last-child)::before{content:"";position:absolute;left:7px;top:14px;bottom:0;width:2px;background:#e2e8f0}
.dhl-event__dot{width:12px;height:12px;margin-top:4px;border-radius:999px;background:#94a3b8;border:2px solid #fff;box-shadow:0 0 0 2px #e2e8f0;position:relative;z-index:1}
.dhl-event--delivered .dhl-event__dot{background:#22c55e;box-shadow:0 0 0 2px #dcfce7}
.dhl-event--transit .dhl-event__dot{background:#3b82f6;box-shadow:0 0 0 2px #dbeafe}
.dhl-event__desc{margin:0 0 2px;font-size:14px;color:#0f172a;line-height:1.45}
.dhl-event__meta{margin:0;font-size:12px}
@media(max-width:768px){.dhl-tracking-card{padding:14px}.dhl-tracking-card__route{grid-template-columns:1fr}}
