* { box-sizing: border-box; }

:root {
  --paper: #f7f7f5;
  --paper-deep: #e3e3df;
  --ink: #111111;
  --muted: #666666;
  --line: #c8c8c4;
  --rust: #111111;
  --rust-dark: #000000;
  --sage: #888888;
  --night: #111111;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", Helvetica, sans-serif;
}

html { min-height: 100%; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-family: var(--sans); }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(17, 17, 17, .35); outline-offset: 3px; }

.shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); }
.brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 42px clamp(32px, 7vw, 112px) 42px clamp(32px, 7vw, 112px); background: var(--night); color: var(--paper); }
.brand-panel::before { content: ""; position: absolute; width: 52vw; height: 52vw; right: -20vw; bottom: -26vw; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255, 255, 255, .03), 0 0 0 84px rgba(255, 255, 255, .03); }
.brand-panel::after { content: ""; position: absolute; left: 10%; top: 18%; width: 1px; height: 180px; background: rgba(255, 255, 255, .23); }
.brand-mark { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; width: max-content; font-family: var(--serif); font-size: 20px; letter-spacing: .08em; }
.mark-line { display: block; width: 30px; height: 1px; background: currentColor; opacity: .65; }
.brand-copy { position: relative; z-index: 1; max-width: 620px; margin: auto 0; padding: 80px 0; }
.eyebrow { margin: 0 0 22px; color: var(--rust); font-size: 11px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.brand-panel .eyebrow { color: #d0d0d0; }
h1, h2, p { margin-top: 0; }
.brand-copy h1, .dashboard-content h1 { margin-bottom: 30px; font-family: var(--serif); font-size: clamp(54px, 6vw, 92px); font-weight: 600; line-height: .94; letter-spacing: -.035em; }
em { color: var(--rust); font-style: normal; }
.brand-panel em { color: #d0d0d0; }
.intro { max-width: 350px; margin-bottom: 0; color: #c5c5c5; font-size: 15px; line-height: 1.75; }
.field-note { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; color: #b0b0b0; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.field-note strong { margin-left: auto; color: #d0d0d0; font-size: 12px; font-weight: 500; }
.note-dot { width: 7px; height: 7px; border: 1px solid #d0d0d0; border-radius: 50%; }

.auth-panel { display: flex; flex-direction: column; justify-content: center; width: min(100%, 570px); padding: 56px clamp(32px, 8vw, 105px); background: var(--paper); }
.auth-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 48px; }
.auth-header h2 { max-width: 340px; margin: 0; font-family: var(--serif); font-size: clamp(32px, 3.5vw, 45px); font-weight: 600; line-height: 1.04; letter-spacing: -.025em; }
.sun-symbol { position: relative; width: 38px; height: 38px; margin-top: 4px; border: 1px solid var(--rust); border-radius: 50%; }
.sun-symbol::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--rust); }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.tab { position: relative; border: 0; padding: 0 0 13px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 600; }
.tab.is-active { color: var(--ink); }
.tab.is-active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--rust); }
.form-message { min-height: 0; margin-bottom: 0; color: var(--rust-dark); font-size: 13px; line-height: 1.45; }
.form-message:not(:empty) { min-height: 20px; margin-bottom: 17px; }
.field-group { margin-bottom: 24px; }
label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
input[type="email"], input[type="text"], input[type="password"] { width: 100%; border: 1px solid var(--line); border-radius: 0; padding: 14px 15px; color: var(--ink); background: rgba(255, 255, 255, .2); font-size: 14px; transition: border-color .2s, background .2s; }
input[type="email"]::placeholder, input[type="text"]::placeholder, input[type="password"]::placeholder { color: #999999; }
input[type="email"]:hover, input[type="text"]:hover, input[type="password"]:hover { border-color: #777777; }
input[type="email"]:focus, input[type="text"]:focus, input[type="password"]:focus { border-color: var(--rust); background: rgba(255, 255, 255, .5); outline: none; }
.label-row { display: flex; justify-content: space-between; }
.text-button, .inline-button { border: 0; padding: 0; color: var(--rust); background: transparent; font-size: 11px; }
.text-button:hover, .inline-button:hover { color: var(--rust-dark); text-decoration: underline; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 58px; }
.password-toggle { position: absolute; top: 50%; right: 14px; border: 0; padding: 0; color: var(--muted); background: transparent; font-size: 11px; transform: translateY(-50%); }
.check-row { display: flex; align-items: center; gap: 9px; margin: 2px 0 28px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.check-row input { width: 15px; height: 15px; margin: 0; accent-color: var(--rust); }
.submit-button { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; padding: 17px 18px; color: #ffffff; background: var(--rust); font-size: 13px; font-weight: 700; transition: background .2s, transform .2s; }
.submit-button:hover { background: var(--rust-dark); transform: translateY(-2px); }
.arrow { font-size: 19px; font-weight: 400; }
.auth-footer { margin: 27px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.legal { margin: 58px 0 0; color: #888888; font-size: 10px; line-height: 1.5; text-align: center; }
a { color: inherit; }

.dashboard { min-height: 100vh; padding: 38px clamp(28px, 6vw, 90px) 70px; background: var(--paper); }
.dashboard-nav { display: flex; align-items: center; justify-content: space-between; }
.dashboard-actions { display: flex; align-items: center; gap: 24px; }
.admin-tab-button { border: 0; border-bottom: 1px solid var(--rust); padding: 0 0 5px; color: var(--rust-dark); background: transparent; font-size: 12px; font-weight: 700; }
.admin-tab-button span { margin-left: 7px; font-size: 16px; font-weight: 400; }
.brand-mark.small { font-size: 17px; }
.signout-button { border: 0; border-bottom: 1px solid var(--ink); padding: 0 0 5px; color: var(--ink); background: transparent; font-size: 12px; }
.signout-button span { margin-left: 8px; color: var(--rust); font-size: 16px; }
.dashboard-content { max-width: 980px; margin: 13vh auto 0; }
.dashboard-content h1 { max-width: 630px; margin-bottom: 25px; font-size: clamp(50px, 7vw, 96px); }
.dashboard-intro { max-width: 380px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 76px; }
.dashboard-card { position: relative; min-height: 225px; padding: 25px; border: 1px solid var(--line); background: rgba(255, 255, 255, .22); }
.dashboard-card.is-disabled { cursor: not-allowed; opacity: .52; }
.dashboard-card.is-disabled .card-arrow { display: none; }
.dashboard-card h2 { margin: 44px 0 13px; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.dashboard-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.card-index { color: var(--rust); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.card-arrow { position: absolute; right: 25px; bottom: 23px; color: var(--rust); font-size: 22px; }
.feature-card { background: var(--night); color: var(--paper); }
.feature-card p { color: #c5c5c5; }
.accent-card { background: var(--paper-deep); }
.ticket-form { max-width: 820px; border: 1px solid var(--line); padding: 16px 18px; background: rgba(255, 255, 255, .24); }
.ticket-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ticket-field { margin-bottom: 12px; }
.ticket-field input, .ticket-field textarea, .ticket-status-wrap select { width: 100%; border: 1px solid var(--line); border-radius: 0; padding: 9px 11px; color: var(--ink); background: rgba(255, 255, 255, .45); font: inherit; font-size: 13px; }
.ticket-field textarea { min-height: 72px; resize: vertical; }
.ticket-field input:focus, .ticket-field textarea:focus, .ticket-status-wrap select:focus { border-color: var(--rust); outline: none; }
.ticket-field input[type="file"] { padding: 10px 12px; background: rgba(255, 255, 255, .45); }
.field-help { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.ticket-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ticket-status-wrap { flex: 0 0 200px; }
.ticket-status-wrap label { margin-bottom: 8px; }
.ticket-submit { width: auto; min-width: 200px; }
.ticket-creator-note { color: var(--muted); font-size: 12px; }
.customer-ticket-message { min-height: 18px; margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.customer-search-wrap { max-width: 820px; margin: 0 0 24px; }
.customer-search-wrap label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.customer-search-wrap input { width: 100%; border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; background: rgba(255, 255, 255, .45); font: inherit; }
.customer-search-wrap input:focus { border-color: var(--rust); outline: none; }
.ticket-list { display: grid; gap: 14px; margin-top: 18px; }
.customer-ticket { border: 1px solid var(--line); background: rgba(255, 255, 255, .22); }
.customer-ticket-row { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(150px, 1.4fr) minmax(170px, 1.4fr) auto auto auto; align-items: center; gap: 16px; min-height: 64px; padding: 12px 16px; }
.customer-ticket-number { width: max-content; border: 0; border-bottom: 1px solid var(--rust); padding: 0 0 3px; color: var(--rust); background: transparent; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.customer-ticket-number:hover { color: var(--rust-dark); }
.customer-ticket-subject { overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.customer-ticket-order { overflow: hidden; color: var(--rust); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
.customer-ticket-email { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.customer-ticket-status { display: inline-flex; align-items: center; border: 1px solid var(--line); padding: 6px 10px; color: var(--rust); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.customer-ticket-priority { border: 0; }
.customer-ticket-priority-urgent { color: #ffffff; background: #c62828; border-color: #c62828; }
.customer-ticket-priority-high { color: #ffffff; background: #e67e22; border-color: #e67e22; }
.customer-ticket-priority-medium { color: #5c4b00; background: #f1d34b; border-color: #d2b62c; }
.customer-ticket-priority-low { color: #ffffff; background: #4d8b55; border-color: #4d8b55; }
.customer-ticket-photo { display: inline-block; margin: 0 0 16px; color: var(--rust); font-size: 12px; text-decoration: underline; }
.customer-ticket-customer { overflow: hidden; margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.customer-ticket-details-panel { border-top: 1px solid var(--line); padding: 18px 16px 16px; }
.customer-ticket-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 12px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.customer-ticket-details { margin: 0 0 10px; color: var(--ink); font-size: 14px; line-height: 1.7; }
.customer-ticket-comments-heading { margin: 18px 0 8px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.customer-ticket-comment { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.customer-ticket-empty-comment { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.customer-ticket-comment-form { display: flex; align-items: end; gap: 12px; margin-top: 14px; }
.customer-ticket-comment-form textarea { flex: 1; border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; color: var(--ink); background: rgba(255, 255, 255, .45); font: inherit; font-size: 13px; resize: vertical; }
.customer-ticket-comment-form textarea:focus { border-color: var(--rust); outline: none; }
.customer-ticket-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.customer-ticket-time { color: var(--muted); font-size: 11px; }
.customer-status-select { width: 180px; border: 1px solid var(--line); border-radius: 0; padding: 8px 10px; color: var(--ink); background: var(--paper); font-size: 12px; }
.customer-ticket-delete { border: 0; padding: 0; color: var(--muted); background: transparent; font-size: 11px; }
.customer-ticket-delete:hover { color: var(--rust-dark); text-decoration: underline; }
.empty-tickets { color: var(--muted); font-size: 13px; }
.admin-panel { min-height: 100vh; padding: 38px clamp(28px, 6vw, 90px) 70px; background: var(--paper); }
.admin-content { max-width: 980px; margin: 11vh auto 0; }
.admin-content h1 { max-width: 600px; margin-bottom: 24px; font-family: var(--serif); font-size: clamp(52px, 7vw, 92px); font-weight: 600; line-height: .94; letter-spacing: -.035em; }
.admin-message { min-height: 20px; margin: 28px 0 14px; color: var(--rust-dark); font-size: 13px; }
.users-list { display: grid; gap: 10px; max-width: 900px; }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--line); padding: 18px 20px; background: rgba(255, 255, 255, .25); }
.user-details { min-width: 0; }
.user-details h2 { margin: 0 0 5px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.user-details p { margin: 0 0 8px; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.user-role { color: var(--rust); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.user-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.admin-role-select { border: 1px solid var(--line); border-radius: 0; padding: 9px 10px; color: var(--ink); background: var(--paper); font-size: 12px; }
.admin-password-input { width: 145px; border: 1px solid var(--line); border-radius: 0; padding: 9px 10px; color: var(--ink); background: var(--paper); font-size: 12px; }
.admin-password-input:focus { border-color: var(--rust); outline: none; }
.admin-self { color: var(--muted); font-size: 12px; font-style: italic; }

.product-workspace { min-height: 100vh; padding: 38px clamp(28px, 6vw, 90px) 70px; background: var(--paper); }
.workspace-nav { display: flex; align-items: center; justify-content: space-between; }
.workspace-actions { display: flex; align-items: center; gap: 28px; }
.back-button { border: 0; border-bottom: 1px solid var(--line); padding: 0 0 5px; color: var(--muted); background: transparent; font-size: 12px; }
.back-button span { margin-left: 8px; color: var(--rust); font-size: 16px; }
.workspace-content { max-width: 1080px; margin: 11vh auto 0; }
.workspace-content h1 { max-width: 720px; margin-bottom: 24px; font-family: var(--serif); font-size: clamp(48px, 6vw, 82px); font-weight: 600; line-height: .96; letter-spacing: -.035em; }
.workspace-intro { max-width: 470px; margin-bottom: 56px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.upload-message { min-height: 20px; margin: -30px 0 28px; color: var(--rust-dark); font-size: 13px; }
.upload-message:not(:empty) { padding: 10px 12px; border-left: 2px solid var(--rust); background: rgba(17, 17, 17, .06); }
.workspace-tabs { display: flex; gap: 28px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.workspace-tab { position: relative; flex: 0 0 auto; border: 0; padding: 0 0 14px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 700; }
.workspace-tab:hover, .tab:hover, .admin-tab-button:hover, .back-button:hover, .signout-button:hover { color: #000000; }
.workspace-tab.is-active { color: var(--ink); }
.workspace-tab.is-active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--rust); }
.upload-panel { max-width: 760px; padding-top: 42px; }
.panel-index { color: var(--rust); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.upload-panel h2 { margin: 17px 0 10px; font-family: var(--serif); font-size: 34px; font-weight: 600; }
.upload-panel > p { margin-bottom: 26px; color: var(--muted); font-size: 14px; }
.upload-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 760px; margin-bottom: 24px; }
.upload-options select, .upload-options input { width: 100%; border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; color: var(--ink); background: rgba(255, 255, 255, .45); font: inherit; font-size: 13px; }
.upload-options select:focus, .upload-options input:focus { border-color: var(--rust); outline: none; }
.finance-controls { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; max-width: 1080px; margin: 18px 0 20px; align-items: end; }
.finance-field { display: flex; flex-direction: column; gap: 8px; }
.finance-field input, .finance-field select { width: 100%; border: 1px solid var(--line); border-radius: 0; padding: 11px 12px; background: rgba(255, 255, 255, .45); font: inherit; font-size: 13px; }
.finance-field input:focus, .finance-field select:focus { border-color: var(--rust); outline: none; }
.report-field { min-width: 0; }
.date-picker-button { width: 100%; border: 1px solid var(--line); padding: 11px 12px; color: var(--ink); background: rgba(255, 255, 255, .45); font: inherit; font-size: 13px; text-align: left; }
.date-picker-button:hover { border-color: var(--ink); }
.finance-date-options { position: absolute; z-index: 3; display: grid; gap: 6px; max-height: 240px; overflow-y: auto; min-width: 220px; margin-top: 74px; border: 1px solid var(--line); padding: 10px; background: var(--paper); box-shadow: 0 8px 20px rgba(17, 17, 17, .12); }
.finance-field { position: relative; }
.finance-date-option { display: flex; align-items: center; gap: 8px; margin: 0; padding: 5px; color: var(--ink); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.finance-date-option input { width: 15px; height: 15px; accent-color: var(--rust); }
.finance-calendar { position: absolute; z-index: 3; width: 280px; margin-top: 74px; border: 1px solid var(--line); padding: 12px; background: var(--paper); box-shadow: 0 8px 20px rgba(17, 17, 17, .12); }
.finance-calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.finance-calendar-header strong { font-size: 13px; }
.finance-calendar-nav { border: 0; padding: 2px 8px; color: var(--ink); background: transparent; font-size: 20px; }
.finance-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.finance-calendar-day-name { padding: 4px 0; color: var(--muted); font-size: 10px; font-weight: 700; }
.finance-calendar-date { min-height: 30px; border: 1px solid transparent; padding: 4px; color: var(--ink); background: transparent; font-size: 12px; }
.finance-calendar-date:hover, .finance-calendar-date.is-range-start, .finance-calendar-date.is-range-end { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.finance-calendar-date.is-in-range { background: var(--paper-deep); }
.finance-calendar-date.is-unavailable { color: #b5b5b0; }
.report-button { width: auto; min-width: 180px; }
.finance-results { margin-top: 26px; }
.finance-upload-status { min-height: 18px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.finance-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: rgba(255,255,255,.32); font-size: 12px; }
.finance-table th, .finance-table td { border: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; }
.finance-table thead th { background: rgba(17,17,17,.04); color: var(--ink); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.finance-table tbody tr:nth-child(even) { background: rgba(17,17,17,.02); }
.finance-report-output { margin-top: 28px; }
.finance-report-card { border: 1px solid var(--line); background: rgba(255,255,255,.28); padding: 18px; }
.finance-report-card h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 24px; }
.finance-report-card p { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.shopee-upload-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.shopee-upload-zone { min-height: 130px; padding: 20px 14px; }
.shopee-upload-zone small { max-width: 150px; line-height: 1.45; }
.new-brand-entry { display: flex; gap: 8px; margin-top: 8px; }
.new-brand-entry input { flex: 1; min-width: 0; }
.new-brand-entry button { border: 1px solid var(--ink); padding: 0 12px; color: var(--paper); background: var(--ink); font-size: 12px; }
.upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 190px; border: 1px dashed #888888; padding: 28px; color: var(--ink); background: rgba(255, 255, 255, .28); text-align: center; transition: border-color .2s, background .2s; }
.upload-zone:hover { border-color: var(--rust); background: rgba(255, 255, 255, .55); }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border: 1px solid var(--rust); border-radius: 50%; color: var(--rust); font-size: 23px; font-weight: 400; }
.upload-zone strong { font-size: 14px; }
.upload-zone small { margin-top: 8px; color: var(--muted); font-size: 11px; }
.file-list { display: grid; gap: 8px; min-height: 24px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.file-row { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); padding: 8px 10px 8px 14px; color: var(--ink); background: var(--paper-deep); }
.file-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-metadata { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 11px; }
.file-timestamp { flex: 0 0 auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.file-download { color: var(--rust-dark); text-decoration: underline; text-decoration-color: #888888; text-underline-offset: 3px; }
.file-download:hover { color: var(--rust); }
.status-select { width: 160px; flex: 0 0 160px; border: 1px solid var(--line); border-radius: 0; padding: 8px 9px; color: var(--ink); background: var(--paper); font-size: 12px; }
.file-delete { white-space: nowrap; }
.note-editor { max-width: 760px; border: 1px solid var(--line); padding: 24px; background: rgba(255, 255, 255, .24); }
.note-field { margin-bottom: 20px; }
.note-field input, .note-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; padding: 13px 14px; color: var(--ink); background: rgba(255, 255, 255, .35); font: inherit; font-size: 14px; resize: vertical; }
.note-field textarea { line-height: 1.6; }
.note-field input:focus, .note-field textarea:focus { border-color: var(--rust); background: rgba(255, 255, 255, .65); outline: none; }
.note-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.note-form-message { min-height: 18px; color: #555555; font-size: 12px; }
.note-form-actions { display: flex; align-items: center; gap: 18px; }
.note-submit { width: auto; min-width: 150px; }
.notes-list { display: grid; gap: 10px; max-width: 760px; margin-top: 30px; }
.empty-notes { color: var(--muted); font-size: 13px; }
.note-card { border: 1px solid var(--line); padding: 20px 22px; background: rgba(255, 255, 255, .24); }
.note-card h3 { margin: 0 0 9px; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.note-card p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.note-card time { color: var(--rust); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.note-actions { display: flex; gap: 16px; margin-top: 16px; }
.note-delete { color: var(--rust-dark); }

[hidden] { display: none !important; }
@media (max-width: 820px) {
  .shell { display: block; }
  .brand-panel { min-height: 410px; padding: 27px 28px 30px; }
  .brand-panel::after { display: none; }
  .brand-copy { padding: 55px 0 35px; }
  .brand-copy h1 { margin-bottom: 20px; font-size: clamp(48px, 14vw, 72px); }
  .intro { max-width: 310px; font-size: 13px; }
  .auth-panel { width: 100%; max-width: 590px; margin: 0 auto; padding: 49px 28px 42px; }
  .auth-header { margin-bottom: 40px; }
  .legal { margin-top: 40px; }
  .dashboard-content { margin-top: 90px; }
  .dashboard-grid { grid-template-columns: 1fr; margin-top: 48px; }
  .dashboard-card { min-height: 190px; }
  .product-workspace { padding: 27px 28px 42px; }
  .admin-panel { padding: 27px 28px 42px; }
  .workspace-actions { gap: 16px; }
  .workspace-content { margin-top: 80px; }
  .workspace-content h1 { font-size: clamp(46px, 13vw, 72px); }
  .workspace-intro { margin-bottom: 42px; }
  .workspace-tabs { gap: 22px; }
  .customer-ticket-row { grid-template-columns: minmax(82px, .7fr) minmax(100px, 1fr) minmax(120px, 1.3fr) auto auto; gap: 10px; }
  .customer-ticket-order { display: none; }
  .customer-ticket-email { display: none; }
  .customer-ticket-comment-form { align-items: stretch; flex-direction: column; }
  .customer-ticket-comment-form .text-button { align-self: flex-start; }
  .file-row { gap: 8px; }
  .file-timestamp { font-size: 10px; }
  .note-form-footer { align-items: flex-start; flex-direction: column; }
  .note-form-actions { width: 100%; justify-content: flex-end; }
  .user-row { align-items: flex-start; flex-direction: column; gap: 14px; }
  .user-actions { width: 100%; flex-wrap: wrap; }
  .admin-role-select { flex: 0 0 110px; }
  .admin-password-input { flex: 1 1 150px; }
  .finance-controls { grid-template-columns: 1fr; }
  .report-button { width: 100%; }
  .finance-table { display: block; overflow-x: auto; }
  .shopee-upload-grid { grid-template-columns: 1fr; }
}
