:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f5;
  --text: #17181b;
  --muted: #727780;
  --line: #e6e8eb;
  --accent: #5a5bd8;
  --accent-soft: #ededff;
  --success: #2b7a4b;
  --success-soft: #eaf6ef;
  --warning: #9b6a17;
  --warning-soft: #fff6df;
  --danger: #b84b4b;
  --danger-soft: #fff0f0;
  --shadow-sm: 0 1px 2px rgba(20, 24, 32, .04), 0 6px 20px rgba(20, 24, 32, .04);
  --shadow-md: 0 10px 30px rgba(20, 24, 32, .08);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --sidebar: 244px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(90, 91, 216, .22);
  outline-offset: 2px;
}

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 22px;
  font-weight: 750;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--text);
  color: white;
  font-size: 13px;
  font-weight: 800;
}
.brand-sub { font-size: 11px; color: var(--muted); font-weight: 550; margin-top: 2px; }
.nav { display: grid; gap: 4px; }
.nav-section-label { font-size: 11px; color: #969ba4; padding: 12px 10px 8px; text-transform: uppercase; letter-spacing: .08em; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 12px;
  color: #565b63;
  font-size: 14px;
  font-weight: 600;
  transition: .18s ease;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active { background: var(--accent-soft); color: #4446b8; }
.nav-link svg { width: 18px; height: 18px; stroke-width: 1.8; }
.sidebar-footer { margin-top: auto; }
.user-mini {
  border-top: 1px solid var(--line);
  padding: 14px 8px 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9eaf0;
  font-size: 12px;
  font-weight: 800;
  color: #4d5260;
  flex: none;
}
.user-mini strong { display: block; font-size: 13px; }
.user-mini span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.icon-btn {
  border: 0;
  background: transparent;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  cursor: pointer;
  color: #717680;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

.main { margin-left: var(--sidebar); min-height: 100vh; }
.topbar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(230,232,235,.85);
  background: rgba(246,247,249,.88);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.container { max-width: 1180px; margin: 0 auto; padding: 34px 34px 86px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-title { margin: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.07; letter-spacing: -.045em; font-weight: 760; }
.page-sub { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.btn {
  border: 1px solid transparent;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--text); color: white; box-shadow: 0 2px 8px rgba(23,24,27,.15); }
.btn-primary:hover { transform: translateY(-1px); background: #08090a; }
.btn-secondary { background: var(--surface); border-color: var(--line); color: #40444b; }
.btn-secondary:hover { background: #fafafa; border-color: #d8dadd; }
.btn-soft { background: var(--accent-soft); color: #4547b8; }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.summary-line {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 8px 0 34px;
}
.metric { padding: 19px 30px 19px 0; margin-right: 30px; position: relative; min-width: 120px; }
.metric:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 19px; bottom: 19px; width: 1px; background: var(--line); }
.metric-label { font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.metric-value { font-size: 24px; font-weight: 760; letter-spacing: -.04em; }
.metric-value small { font-size: 12px; font-weight: 650; color: var(--muted); letter-spacing: 0; margin-left: 4px; }

.section { margin-top: 34px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.section-title { margin: 0; font-size: 18px; letter-spacing: -.025em; font-weight: 740; }
.section-note { color: var(--muted); font-size: 12px; }

.order-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.order-card { padding: 20px; transition: .18s ease; cursor: pointer; }
.order-card:hover { transform: translateY(-2px); border-color: #d7d9dd; box-shadow: var(--shadow-md); }
.order-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.order-number { font-size: 11px; color: #9499a2; font-weight: 750; letter-spacing: .055em; }
.order-card h3 { margin: 6px 0 2px; font-size: 18px; letter-spacing: -.03em; }
.order-location { color: var(--muted); font-size: 12px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 7px 9px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-planning { background: #f0f1f3; color: #626770; }
.status-shooting { background: #eef4ff; color: #4566a8; }
.status-editing, .status-review, .status-revision { background: var(--accent-soft); color: #4a4cbd; }
.status-completed { background: var(--success-soft); color: var(--success); }

.progress { display: grid; grid-template-columns: repeat(4, 1fr); margin: 23px 0 16px; }
.progress-step { position: relative; text-align: left; padding-top: 17px; font-size: 10px; color: #a3a7ad; font-weight: 650; }
.progress-step::before { content: ""; position: absolute; top: 4px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #dfe2e6; z-index: 2; }
.progress-step::after { content: ""; position: absolute; height: 1px; top: 7px; left: 8px; right: 0; background: #e1e3e7; }
.progress-step:last-child::after { display: none; }
.progress-step.done::before { background: var(--text); }
.progress-step.done::after { background: #afb2b9; }
.progress-step.active { color: var(--text); }
.progress-step.active::before { width: 10px; height: 10px; top: 3px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.order-meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-top: 14px; border-top: 1px solid #f0f1f3; font-size: 11px; color: var(--muted); }
.order-meta strong { color: #5b6068; font-weight: 650; }

.bar { height: 8px; background: #eceef1; border-radius: 999px; overflow: hidden; }
.bar > span { height: 100%; display: block; border-radius: inherit; background: var(--text); }
.bar-meta { display: flex; justify-content: space-between; margin-top: 7px; color: var(--muted); font-size: 11px; }

.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f3f4ff;
  border: 1px solid #e7e7ff;
  color: #4f51a8;
  font-size: 12px;
}
.notice-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: white; flex: none; }
.notice strong { display: block; color: #34368f; font-size: 12px; margin-bottom: 2px; }

.tabs { display: flex; gap: 5px; padding: 4px; background: #eceef0; border-radius: 12px; width: fit-content; margin-bottom: 18px; }
.tab { border: 0; background: transparent; padding: 8px 12px; border-radius: 9px; color: #71767f; font-size: 12px; font-weight: 700; cursor: pointer; }
.tab.active { background: white; color: var(--text); box-shadow: 0 1px 3px rgba(20,24,32,.08); }

.list { display: grid; gap: 10px; }
.list-row { padding: 16px 18px; display: grid; grid-template-columns: 1.7fr 1fr 1fr auto; gap: 16px; align-items: center; }
.list-row:hover { border-color: #d9dbe0; }
.row-main { min-width: 0; }
.row-main strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main span, .row-cell span { color: var(--muted); font-size: 11px; margin-top: 3px; display: block; }
.row-cell { font-size: 12px; }

.form-card { max-width: 820px; padding: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field.full { grid-column: 1 / -1; }
label { display: block; font-size: 12px; font-weight: 690; margin-bottom: 7px; color: #4c5159; }
input, textarea, select {
  width: 100%;
  border: 1px solid #dfe2e6;
  background: white;
  color: var(--text);
  border-radius: 12px;
  min-height: 43px;
  padding: 10px 12px;
  outline: none;
  transition: .16s ease;
  font-size: 13px;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:hover, textarea:hover, select:hover { border-color: #cfd2d7; }
input:focus, textarea:focus, select:focus { border-color: #a9aae8; box-shadow: 0 0 0 3px rgba(90,91,216,.08); }
.help { color: var(--muted); font-size: 10px; margin-top: 6px; line-height: 1.5; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.upload-box { border: 1px dashed #cfd2d7; border-radius: 14px; padding: 22px; text-align: center; background: #fafbfc; }
.upload-box input { display: none; }
.upload-label { cursor: pointer; display: block; margin: 0; }
.upload-title { font-size: 13px; font-weight: 700; }
.upload-copy { font-size: 11px; color: var(--muted); margin-top: 5px; }
.file-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.file-chip { background: white; border: 1px solid var(--line); padding: 7px 9px; border-radius: 9px; font-size: 10px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 18px; align-items: start; }
.detail-main, .detail-side { display: grid; gap: 15px; }
.panel { padding: 21px; }
.panel-title { font-size: 11px; color: #8b9099; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.current-status { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.current-status h2 { margin: 0 0 3px; font-size: 22px; letter-spacing: -.035em; }
.current-status p { margin: 0; color: var(--muted); font-size: 12px; }
.info-list { display: grid; gap: 13px; }
.info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 13px; border-bottom: 1px solid #f0f1f3; }
.info-row:last-child { padding-bottom: 0; border-bottom: 0; }
.info-row span { color: var(--muted); font-size: 11px; }
.info-row strong { text-align: right; font-size: 12px; max-width: 65%; }
.brief { font-size: 13px; line-height: 1.75; color: #4d525a; margin: 0; }
.price { font-size: 28px; font-weight: 760; letter-spacing: -.045em; margin: 2px 0 6px; }

.timeline { position: relative; display: grid; gap: 0; }
.timeline-item { position: relative; padding: 0 0 20px 24px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 4px; top: 7px; width: 7px; height: 7px; background: #b9bdc4; border-radius: 50%; z-index: 2; }
.timeline-item::after { content: ""; position: absolute; left: 7px; top: 13px; bottom: -4px; width: 1px; background: #e1e3e6; }
.timeline-item:last-child::after { display: none; }
.timeline-item:first-child::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline-time { font-size: 10px; color: #999ea6; margin-bottom: 3px; }
.timeline-text { font-size: 12px; font-weight: 650; }

.empty { padding: 46px 20px; text-align: center; }
.empty-icon { width: 46px; height: 46px; border-radius: 15px; background: #f0f1f3; display: grid; place-items: center; margin: 0 auto 12px; color: #6e737b; }
.empty h3 { margin: 0 0 6px; font-size: 15px; }
.empty p { max-width: 390px; margin: 0 auto 17px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: white; }
.auth-visual { background: #17181b; color: white; padding: 50px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.auth-visual::before { content: ""; width: 520px; height: 520px; border-radius: 50%; position: absolute; top: -170px; right: -210px; background: radial-gradient(circle at 40% 40%, rgba(124,126,255,.55), rgba(124,126,255,0) 68%); }
.auth-brand { display: flex; align-items: center; gap: 11px; font-weight: 750; position: relative; z-index: 2; }
.auth-brand .brand-mark { background: white; color: #17181b; }
.auth-quote { position: relative; z-index: 2; max-width: 530px; }
.auth-quote h1 { font-size: clamp(36px, 5vw, 62px); margin: 0; letter-spacing: -.06em; line-height: .98; font-weight: 720; }
.auth-quote p { color: #aeb1b8; line-height: 1.7; font-size: 14px; max-width: 440px; margin-top: 22px; }
.auth-side { display: grid; place-items: center; padding: 36px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: -.04em; }
.auth-box > p { color: var(--muted); margin: 0 0 26px; font-size: 13px; line-height: 1.6; }
.auth-form { display: grid; gap: 15px; }
.auth-form .btn { width: 100%; min-height: 46px; margin-top: 3px; }
.auth-foot { margin-top: 18px; color: var(--muted); font-size: 12px; text-align: center; }
.auth-foot button { border: 0; background: transparent; color: #4b4db8; font-weight: 700; cursor: pointer; }
.demo-box { background: #f6f7f9; border-radius: 14px; padding: 13px 14px; margin-top: 20px; font-size: 11px; color: #656a72; line-height: 1.6; }
.demo-box strong { color: var(--text); }

.admin-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.admin-kpi { padding: 15px; }
.admin-kpi span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.admin-kpi strong { font-size: 22px; letter-spacing: -.035em; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; min-width: 760px; }
th { text-align: left; padding: 11px 14px; color: #8a8f98; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
td { padding: 14px; border-bottom: 1px solid #f0f1f3; font-size: 12px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #fafafb; }
.table-main strong { display: block; font-size: 12px; }
.table-main span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.filter-row { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-row input, .filter-row select { width: auto; min-width: 150px; min-height: 38px; padding-top: 7px; padding-bottom: 7px; }
.filter-row input { min-width: 230px; }

.shoot-list { display: grid; gap: 8px; }
.shoot-item { display: grid; grid-template-columns: 90px 1fr 1fr auto; gap: 18px; align-items: center; padding: 15px 17px; }
.shoot-time { font-size: 18px; font-weight: 750; letter-spacing: -.03em; }
.shoot-item strong { display: block; font-size: 12px; }
.shoot-item span { color: var(--muted); font-size: 10px; display: block; margin-top: 3px; }

.mobile-nav { display: none; }
.mobile-topbar { display: none; }

#toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; }
.toast { background: #17181b; color: white; border-radius: 12px; padding: 12px 14px; font-size: 12px; box-shadow: var(--shadow-md); animation: toastIn .25s ease both; max-width: 340px; }
.toast.success { background: #1f6840; }
.toast.error { background: #a53f3f; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) {
  :root { --sidebar: 214px; }
  .container { padding-left: 25px; padding-right: 25px; }
  .admin-kpis { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  body { padding-bottom: 74px; }
  .sidebar, .topbar { display: none; }
  .main { margin-left: 0; }
  .mobile-topbar { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(246,247,249,.94); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 20; }
  .mobile-topbar .brand { padding: 0; font-size: 13px; }
  .mobile-topbar .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .container { padding: 25px 18px 30px; }
  .page-head { margin-bottom: 21px; }
  .page-title { font-size: 28px; }
  .page-head .actions .btn-secondary { display: none; }
  .summary-line { overflow-x: auto; margin-bottom: 28px; }
  .metric { min-width: 125px; padding-right: 20px; margin-right: 20px; }
  .order-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .list-row { grid-template-columns: 1.6fr auto; }
  .list-row .row-cell:nth-of-type(2), .list-row .row-cell:nth-of-type(3) { display: none; }
  .admin-kpis { grid-template-columns: repeat(2, 1fr); }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-side { padding: 26px 20px; }
  .shoot-item { grid-template-columns: 70px 1fr auto; }
  .shoot-item > div:nth-child(3) { display: none; }
  .mobile-nav {
    position: fixed;
    z-index: 60;
    left: 10px;
    right: 10px;
    bottom: 10px;
    min-height: 62px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(219,222,226,.9);
    border-radius: 19px;
    box-shadow: 0 10px 30px rgba(20,24,32,.13);
    padding: 5px;
  }
  .mobile-nav button { border: 0; background: transparent; display: grid; place-items: center; gap: 2px; color: #858a92; font-size: 8px; font-weight: 700; min-height: 48px; border-radius: 14px; cursor: pointer; }
  .mobile-nav button.active { color: var(--text); background: #f3f4f6; }
  .mobile-nav button svg { width: 18px; height: 18px; }
  .mobile-nav .mobile-plus { width: 42px; height: 42px; min-height: 42px; border-radius: 14px; background: var(--text); color: white; margin: 0 auto; align-self: center; }
  .mobile-nav .mobile-plus:hover { background: #090a0b; }
}

@media (max-width: 520px) {
  .page-head { align-items: flex-start; }
  .page-head .actions { width: auto; }
  .page-head .btn-primary span.hide-sm { display: none; }
  .order-card { padding: 17px; }
  .progress-step { font-size: 9px; }
  .panel { padding: 17px; }
  .current-status { align-items: flex-start; flex-direction: column; }
  .form-card { padding: 18px; }
  .admin-kpis { grid-template-columns: 1fr 1fr; }
}

/* Profile & agent identity */
.avatar-logo { overflow: hidden; background: #fff; border: 1px solid var(--line); }
.avatar-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.profile-form-card {
  max-width: 900px;
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
  overflow: hidden;
}
.profile-logo-pane {
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #fafbfc;
}
.profile-fields-pane { padding: 24px; }
.profile-logo-preview {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  background: #eceef2;
  border: 1px solid #e1e3e7;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 4px 0 16px;
  color: #555b65;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.profile-logo-preview.has-logo { background: white; }
.profile-logo-preview img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.profile-logo-button { width: 100%; margin-top: 8px; }
.profile-section-title { font-size: 13px; font-weight: 760; letter-spacing: -.01em; margin-bottom: 15px; }
.profile-section-spaced { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }

.agent-link {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  max-width: 190px;
}
.agent-link strong { display: block; font-size: 12px; }
.agent-link span { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-link:hover strong { color: #4b4db8; text-decoration: underline; text-underline-offset: 2px; }
.agent-link.compact { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; max-width: 260px; }
.agent-link.compact:hover { color: #4b4db8; }

.agent-profile-mini {
  width: 100%;
  border: 1px solid var(--line);
  background: #fafbfc;
  border-radius: 14px;
  padding: 11px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}
.agent-profile-mini:hover { background: white; border-color: #d7d9de; box-shadow: var(--shadow-sm); }
.agent-profile-mini > span { min-width: 0; }
.agent-profile-mini strong { display: block; font-size: 12px; }
.agent-profile-mini small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-profile-mini > svg { width: 16px; height: 16px; color: #9aa0a8; }
.agent-card-logo { width: 40px; height: 40px; border-radius: 12px; }
.agent-profile-head { display: flex; align-items: center; gap: 13px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid #f0f1f3; }
.agent-profile-head strong { display: block; font-size: 14px; }
.agent-profile-head span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.agent-profile-logo { width: 56px; height: 56px; border-radius: 16px; }

@media (max-width: 820px) {
  .profile-form-card { grid-template-columns: 1fr; }
  .profile-logo-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-logo-preview { width: 96px; height: 96px; }
}

/* v3 — personal profile image, organization logo, notifications */
.avatar-photo { overflow: hidden; background: #eceef2; border: 1px solid var(--line); }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; }

.profile-form-v3 { grid-template-columns: 250px minmax(0,1fr); }
.profile-media-pane {
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #fafbfc;
  display: grid;
  gap: 28px;
  align-content: start;
}
.profile-upload-block + .profile-upload-block { padding-top: 24px; border-top: 1px solid var(--line); }
.profile-avatar-preview {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #eceef2;
  border: 1px solid #e1e3e7;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 6px 0 14px;
  color: #555b65;
  font-size: 20px;
  font-weight: 800;
}
.profile-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-logo-preview {
  width: 150px;
  height: 86px;
  border-radius: 16px;
  margin: 6px 0 14px;
}
.profile-logo-preview img { padding: 10px; }
.media-upload-button { width: 100%; margin-top: 7px; }

.organization-logo {
  width: 100%;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafbfc;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 8px 0 14px;
}
.organization-logo img { width: 100%; height: 112px; object-fit: contain; padding: 16px; background: white; }
.organization-logo-empty { color: #9297a0; font-size: 22px; font-weight: 800; }
.logo-download-btn { width: 100%; }
.agent-profile-photo { width: 56px; height: 56px; }
.agent-table-person { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.table-avatar { width: 34px; height: 34px; flex: none; }

.notification-wrap { position: relative; }
.notification-bell { position: relative; }
.notification-badge {
  position: absolute;
  right: 1px;
  top: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--text);
  color: white;
  border: 2px solid var(--bg);
  font-size: 8px;
  line-height: 1;
  font-weight: 800;
}
.notification-popover {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(380px, calc(100vw - 28px));
  max-height: 470px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(20,24,32,.15);
  z-index: 80;
}
.notification-popover.open { display: block; }
.notification-head {
  padding: 16px 17px 13px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.notification-head strong { display: block; font-size: 14px; }
.notification-head span { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.notification-head button { border: 0; background: transparent; color: #5355bd; font-size: 10px; font-weight: 750; cursor: pointer; }
.notification-list { max-height: 390px; overflow-y: auto; }
.notification-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #f0f1f3;
  background: white;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}
.notification-item:hover { background: #fafbfc; }
.notification-item.unread { background: #f8f8ff; }
.notification-dot { width: 7px; height: 7px; border-radius: 50%; background: transparent; margin-top: 5px; }
.notification-item.unread .notification-dot { background: var(--accent); }
.notification-copy strong { display: block; font-size: 12px; color: var(--text); }
.notification-copy small { display: block; color: #666b74; font-size: 11px; line-height: 1.45; margin-top: 4px; }
.notification-copy em { display: block; color: #a0a4ab; font-style: normal; font-size: 9px; margin-top: 6px; }
.notification-empty { padding: 26px 18px; color: var(--muted); font-size: 11px; text-align: center; }
.mobile-top-actions { display: flex; align-items: center; gap: 6px; }

@media (max-width: 820px) {
  .profile-form-v3 { grid-template-columns: 1fr; }
  .profile-media-pane { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: 1fr 1fr; }
  .profile-upload-block + .profile-upload-block { padding-top: 0; border-top: 0; padding-left: 20px; border-left: 1px solid var(--line); }
  .notification-popover { position: fixed; right: 14px; top: 64px; }
}
@media (max-width: 560px) {
  .profile-media-pane { grid-template-columns: 1fr; }
  .profile-upload-block + .profile-upload-block { padding-left: 0; border-left: 0; padding-top: 22px; border-top: 1px solid var(--line); }
  .profile-logo-preview { width: 138px; }
}

/* =========================================================
   v4 — modular premium UI inspired by industrial dashboard shapes
   ========================================================= */
:root {
  --bg: #eceff2;
  --surface: #ffffff;
  --surface-2: #f2f4f6;
  --text: #101114;
  --muted: #737982;
  --line: #dfe3e7;
  --accent: #595be2;
  --accent-soft: #ededff;
  --signal: #f16d31;
  --graphite: #141518;
  --graphite-2: #1d1f23;
  --shadow-sm: 0 2px 4px rgba(15,18,24,.025), 0 12px 28px rgba(15,18,24,.045);
  --shadow-md: 0 18px 44px rgba(15,18,24,.09);
  --radius: 24px;
  --radius-lg: 30px;
  --radius-xl: 36px;
  --sidebar: 246px;
}

body {
  background:
    radial-gradient(circle at 83% 8%, rgba(89,91,226,.055), transparent 23%),
    radial-gradient(circle at 23% 92%, rgba(241,109,49,.035), transparent 25%),
    var(--bg);
}

/* floating industrial side rail */
.sidebar {
  inset: 14px auto 14px 14px;
  width: 218px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 30px;
  background: linear-gradient(180deg, #18191c 0%, #111215 100%);
  color: #fff;
  padding: 16px 12px;
  box-shadow: 0 22px 60px rgba(12,14,18,.20);
  overflow: hidden;
}
.sidebar::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  left: -86px;
  bottom: 50px;
  background: radial-gradient(circle, rgba(89,91,226,.22), rgba(89,91,226,0) 70%);
  pointer-events: none;
}
.sidebar .brand { padding: 6px 8px 25px; position: relative; z-index: 2; }
.sidebar .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px 14px 9px 14px;
  background: #fff;
  color: #111215;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.sidebar .brand-sub { color: rgba(255,255,255,.42); }
.sidebar .nav { gap: 7px; position: relative; z-index: 2; }
.sidebar .nav-link {
  min-height: 47px;
  border-radius: 16px 16px 12px 16px;
  color: rgba(255,255,255,.58);
  padding: 0 10px;
}
.sidebar .nav-link svg {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 11px;
  background: rgba(255,255,255,.055);
  flex: none;
}
.sidebar .nav-link:hover { background: rgba(255,255,255,.065); color: #fff; }
.sidebar .nav-link.active {
  background: #fff;
  color: #141518;
  box-shadow: 0 9px 24px rgba(0,0,0,.20);
}
.sidebar .nav-link.active svg { background: #eff1f3; }
.sidebar-footer { position: relative; z-index: 2; }
.sidebar .user-mini {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 16px 7px 3px;
}
.sidebar .user-mini span { color: rgba(255,255,255,.44); }
.sidebar .user-mini .icon-btn { color: rgba(255,255,255,.55); }
.sidebar .user-mini .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar .avatar { border: 1px solid rgba(255,255,255,.15); }

.main { margin-left: var(--sidebar); }
.topbar {
  height: 78px;
  padding: 0 36px;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.topbar > .avatar,
.topbar > .notification-wrap > .icon-btn {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(215,219,224,.95);
  box-shadow: var(--shadow-sm);
}
.topbar > .avatar { width: 38px; height: 38px; }
.topbar .icon-btn { border-radius: 14px; width: 40px; height: 40px; }

.container { max-width: 1280px; padding: 26px 36px 92px; }
.page-head { margin-bottom: 24px; }
.page-title { font-size: clamp(30px, 3.1vw, 42px); font-weight: 710; letter-spacing: -.055em; }
.page-sub { max-width: 620px; color: #7a8089; }

.btn {
  min-height: 44px;
  padding: 0 17px;
  border-radius: 999px;
  letter-spacing: -.01em;
}
.btn-primary {
  background: #141518;
  box-shadow: 0 8px 22px rgba(16,17,20,.14);
}
.btn-secondary { background: rgba(255,255,255,.86); }
.icon-btn { border-radius: 14px; }

.card {
  border-radius: var(--radius);
  border-color: rgba(216,220,225,.94);
  box-shadow: var(--shadow-sm);
}
.panel { border-radius: 28px; padding: 23px; }
.panel:nth-child(2n) { border-radius: 22px 30px 30px 30px; }
.panel-title {
  font-size: 10px;
  color: #8a9099;
  letter-spacing: .09em;
}

/* Agent dashboard — asymmetric modular composition */
.dashboard-modules {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, .7fr);
  gap: 16px;
  align-items: stretch;
}
.dashboard-feature {
  position: relative;
  min-height: 340px;
  border-radius: 38px 38px 22px 38px;
  padding: 27px 29px 25px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 84% 23%, rgba(89,91,226,.42), transparent 24%),
    radial-gradient(circle at 8% 106%, rgba(241,109,49,.12), transparent 27%),
    linear-gradient(145deg, #191a1e 0%, #111216 72%);
  box-shadow: 0 26px 65px rgba(15,17,21,.20);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.dashboard-feature::before {
  content: "";
  position: absolute;
  width: 255px;
  height: 255px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 50%;
  right: -96px;
  top: 38px;
  box-shadow: 0 0 0 34px rgba(255,255,255,.018), 0 0 0 70px rgba(255,255,255,.012);
}
.feature-top,
.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.feature-top { position: relative; z-index: 2; }
.feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 9px;
  font-weight: 800;
}
.feature-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px rgba(241,109,49,.10);
}
.feature-order-no { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.78); font-weight: 760; letter-spacing: .045em; }
.dashboard-feature .status-pill { background: rgba(255,255,255,.92); color: #17181b; backdrop-filter: blur(10px); }
.feature-copy { position: relative; z-index: 2; margin-top: 34px; }
.feature-copy h2 { margin: 0; font-size: clamp(30px,4vw,50px); letter-spacing: -.06em; line-height: .98; font-weight: 700; }
.feature-copy p { margin: 10px 0 0; color: rgba(255,255,255,.48); font-size: 13px; }
.feature-progress { position: relative; z-index: 2; margin-top: auto; }
.dashboard-feature .progress { margin: 31px 0 19px; }
.dashboard-feature .progress-step { color: rgba(255,255,255,.35); }
.dashboard-feature .progress-step::before { background: rgba(255,255,255,.20); }
.dashboard-feature .progress-step::after { background: rgba(255,255,255,.13); }
.dashboard-feature .progress-step.done::before { background: #fff; }
.dashboard-feature .progress-step.done::after { background: rgba(255,255,255,.48); }
.dashboard-feature .progress-step.active { color: #fff; }
.dashboard-feature .progress-step.active::before { background: var(--signal); box-shadow: 0 0 0 5px rgba(241,109,49,.14); }
.feature-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.feature-meta { display: flex; gap: 28px; flex-wrap: wrap; }
.feature-meta span { display: grid; gap: 4px; color: rgba(255,255,255,.40); font-size: 9px; }
.feature-meta strong { color: rgba(255,255,255,.85); font-size: 11px; font-weight: 650; }
.feature-open,
.mini-link {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 750;
}
.feature-open {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: #151619;
  font-size: 11px;
  white-space: nowrap;
}
.feature-open svg,
.mini-link svg { width: 14px; height: 14px; }
.feature-empty { cursor: default; justify-content: center; }
.feature-empty h2 { max-width: 460px; font-size: 40px; margin: 17px 0 8px; letter-spacing: -.055em; }
.feature-empty p { max-width: 500px; color: rgba(255,255,255,.48); line-height: 1.65; font-size: 13px; }
.feature-empty .feature-open { width: fit-content; margin-top: 18px; }

.dashboard-side-modules { display: grid; grid-template-rows: auto 1fr; gap: 16px; }
.module-card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(216,220,225,.96);
  border-radius: 27px 27px 27px 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.module-head { color: #8b9098; text-transform: uppercase; font-size: 9px; letter-spacing: .085em; font-weight: 800; }
.module-head svg { width: 18px; height: 18px; color: #30343a; }
.module-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 8px;
  background: #eef0f2;
  color: #737983;
  text-transform: none;
  letter-spacing: 0;
  font-size: 9px;
}
.module-live i { width: 5px; height: 5px; border-radius: 50%; background: #50a26e; }
.module-live.light { background: rgba(255,255,255,.09); color: rgba(255,255,255,.58); }
.module-live.light i { background: #76d496; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 17px; }
.stat-tiles > div {
  background: #f2f4f5;
  border-radius: 17px 17px 12px 17px;
  min-height: 88px;
  padding: 13px 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stat-tiles strong { font-size: 27px; letter-spacing: -.06em; }
.stat-tiles span { color: #858b93; font-size: 9px; line-height: 1.25; }
.next-shoot-card { min-height: 198px; position: relative; overflow: hidden; }
.next-shoot-card::after {
  content: "";
  position: absolute;
  width: 125px;
  height: 125px;
  border-radius: 50%;
  right: -61px;
  bottom: -59px;
  border: 1px solid #e7e9ec;
  box-shadow: 0 0 0 22px #f7f8f9;
}
.shoot-date-big { margin-top: 18px; font-size: 43px; line-height: .88; font-weight: 710; letter-spacing: -.075em; }
.shoot-month { margin: 5px 0 19px; color: #8a9098; font-size: 10px; text-transform: uppercase; font-weight: 750; }
.next-shoot-card > strong { font-size: 15px; }
.next-shoot-card > p { margin: 5px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.mini-link { padding: 0; background: transparent; color: #343841; font-size: 10px; position: relative; z-index: 2; }
.module-empty-mark { margin: 21px 0 10px; font-size: 42px; line-height: 1; color: #c4c8ce; }

.secondary-production { margin-top: 28px; }
.order-grid { gap: 16px; }
.order-card {
  padding: 21px;
  border-radius: 26px 26px 18px 26px;
  background: rgba(255,255,255,.92);
}
.order-grid .order-card:nth-child(even) { border-radius: 18px 28px 28px 28px; }
.order-card:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(18,20,25,.085); }
.order-card h3 { font-size: 20px; }
.order-meta { border-top-color: #eceef1; }
.status-pill { padding: 7px 10px; }
.tabs { border-radius: 999px; padding: 5px; background: #e3e6e9; }
.tab { border-radius: 999px; padding: 9px 14px; }

/* Forms and profile adopt the same soft industrial geometry */
input, textarea, select { border-radius: 15px; min-height: 45px; background: rgba(255,255,255,.95); }
.form-card { border-radius: 32px 32px 22px 32px; }
.upload-box { border-radius: 23px; padding: 28px; }
.profile-form-card { max-width: 960px; border-radius: 34px 34px 22px 34px; }
.profile-media-pane {
  background: #f1f3f5;
  padding: 27px;
}
.profile-avatar-preview { width: 104px; height: 104px; border: 5px solid #fff; box-shadow: 0 8px 26px rgba(20,24,32,.08); }
.profile-logo-preview { border-radius: 22px 22px 14px 22px; width: 168px; height: 94px; background: #fff; }
.media-upload-button { border-radius: 999px; }
.organization-logo { border-radius: 24px 24px 16px 24px; }
.agent-profile-mini { border-radius: 19px 19px 13px 19px; }

/* Notifications */
.notification-popover { border-radius: 26px 26px 18px 26px; border-color: #d9dde2; box-shadow: 0 28px 70px rgba(15,17,22,.18); }
.notification-head { padding: 18px; }
.notification-item { padding: 15px 17px; }
.notification-item.unread { background: #f5f5ff; }
.notification-badge { background: var(--signal); }

/* Admin overview */
.admin-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, .62fr);
  gap: 16px;
  align-items: stretch;
}
.admin-command-center {
  border-radius: 38px 38px 22px 38px;
  padding: 27px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 18%, rgba(241,109,49,.14), transparent 22%),
    radial-gradient(circle at 50% 115%, rgba(89,91,226,.18), transparent 36%),
    #151619;
  box-shadow: 0 25px 62px rgba(15,17,21,.18);
  overflow: hidden;
}
.admin-command-title { margin: 30px 0 22px; }
.admin-command-title h2 { margin: 0; font-size: 34px; line-height: 1; letter-spacing: -.055em; }
.admin-command-title p { margin: 8px 0 0; color: rgba(255,255,255,.45); font-size: 11px; }
.admin-command-center .admin-kpis { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.admin-command-center .admin-kpi {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.055);
  box-shadow: none;
  border-radius: 18px 18px 12px 18px;
}
.admin-command-center .admin-kpi:nth-child(2n) { border-radius: 12px 20px 20px 20px; }
.admin-command-center .admin-kpi span { color: rgba(255,255,255,.42); }
.admin-command-center .admin-kpi strong { color: #fff; font-size: 28px; }
.admin-side-stack { display: grid; grid-template-rows: .72fr 1.28fr; gap: 16px; }
.admin-alert-card { display: flex; flex-direction: column; justify-content: space-between; }
.admin-alert-card > strong { font-size: 47px; line-height: .9; letter-spacing: -.075em; margin-top: 10px; }
.admin-alert-card > p { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.admin-next-shoot {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 19px 30px 30px 30px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.admin-next-time { margin: 26px 0 7px; font-size: 21px; letter-spacing: -.04em; font-weight: 730; }
.admin-next-shoot > strong { font-size: 15px; }
.admin-next-shoot > p { margin: 5px 0 16px; color: var(--muted); font-size: 10px; }

/* Operational lists */
.table-wrap { border-radius: 29px 29px 20px 29px; }
th { padding-top: 14px; padding-bottom: 14px; }
td { padding-top: 16px; padding-bottom: 16px; }
tbody tr:hover { background: #f6f7f8; }
.filter-row {
  padding: 6px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  width: fit-content;
}
.filter-row input, .filter-row select { border-radius: 15px; border-color: transparent; background: #f0f2f4; }
.shoot-list { gap: 10px; }
.shoot-item { border-radius: 23px 23px 16px 23px; }
.shoot-item:nth-child(even) { border-radius: 16px 24px 24px 24px; }
.shoot-time {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 15px;
  background: #f0f2f4;
}

/* Detail pages */
.detail-grid { gap: 16px; }
.current-status h2 { font-size: 28px; }
.price { font-size: 32px; }
.info-row { padding-bottom: 14px; }
.timeline-item:first-child::before { background: var(--signal); box-shadow: 0 0 0 4px rgba(241,109,49,.12); }

/* Auth screen carries the same rounded hardware-like framing */
.auth-page { background: #e9ecef; padding: 14px; gap: 14px; }
.auth-visual,
.auth-side { min-height: calc(100vh - 28px); }
.auth-visual { border-radius: 34px; background: #151619; }
.auth-side { border-radius: 34px; background: #fff; }
.auth-visual::after {
  content: "";
  position: absolute;
  right: 9%;
  bottom: 10%;
  width: 155px;
  height: 155px;
  border-radius: 42% 58% 58% 42% / 48% 38% 62% 52%;
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 0 0 25px rgba(255,255,255,.018), 0 0 0 52px rgba(255,255,255,.012);
}
.demo-box { border-radius: 20px; }

@media (max-width: 1050px) {
  :root { --sidebar: 224px; }
  .sidebar { width: 200px; }
  .dashboard-modules, .admin-command-grid { grid-template-columns: minmax(0,1.45fr) minmax(250px,.7fr); }
  .stat-tiles { grid-template-columns: 1fr; }
  .stat-tiles > div { min-height: 58px; flex-direction: row; align-items: center; }
}

@media (max-width: 820px) {
  body { background: #f1f3f5; }
  .main { margin-left: 0; }
  .mobile-topbar {
    height: 64px;
    padding: 0 15px;
    border: 0;
    background: rgba(241,243,245,.92);
  }
  .mobile-topbar .brand { background: #151619; color: white; padding: 5px 10px 5px 5px; border-radius: 16px; gap: 7px; }
  .mobile-topbar .brand-mark { background: #fff; color: #151619; border-radius: 11px 11px 7px 11px; }
  .container { padding: 22px 15px 32px; }
  .dashboard-modules, .admin-command-grid { grid-template-columns: 1fr; }
  .dashboard-feature { min-height: 330px; border-radius: 30px 30px 19px 30px; padding: 23px; }
  .dashboard-side-modules { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .stat-tiles { grid-template-columns: repeat(3,1fr); }
  .stat-tiles > div { min-height: 82px; flex-direction: column; align-items: flex-start; }
  .admin-side-stack { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .admin-command-center { border-radius: 30px 30px 19px 30px; padding: 23px; }
  .admin-command-center .admin-kpis { grid-template-columns: repeat(3,1fr); }
  .profile-form-card { border-radius: 28px 28px 18px 28px; }
  .mobile-nav { border-radius: 24px 24px 18px 24px; box-shadow: 0 18px 45px rgba(15,17,22,.17); }
  .mobile-nav .mobile-plus { border-radius: 16px 16px 10px 16px; }
  .auth-page { padding: 0; }
  .auth-side { min-height: 100vh; border-radius: 0; }
}

@media (max-width: 620px) {
  .page-title { font-size: 30px; }
  .dashboard-feature { min-height: 350px; }
  .feature-copy h2 { font-size: 36px; }
  .feature-footer { align-items: flex-start; flex-direction: column; }
  .feature-open { align-self: stretch; justify-content: center; }
  .dashboard-side-modules, .admin-side-stack { grid-template-columns: 1fr; }
  .stat-tiles { grid-template-columns: repeat(3,1fr); }
  .admin-command-center .admin-kpis { grid-template-columns: 1fr 1fr; }
  .admin-command-center .admin-kpi { min-height: 78px; }
  .filter-row { width: 100%; }
  .filter-row input, .filter-row select { flex: 1 1 100%; width: 100%; }
}

@media (max-width: 430px) {
  .dashboard-feature { min-height: 365px; padding: 20px; }
  .feature-copy { margin-top: 28px; }
  .feature-copy h2 { font-size: 32px; }
  .feature-meta { gap: 17px; }
  .stat-tiles > div { padding: 11px 8px; }
  .stat-tiles strong { font-size: 23px; }
  .module-card { padding: 17px; }
  .admin-command-center { padding: 20px; }
  .admin-command-title h2 { font-size: 30px; }
}

/* V5 — admin profile */
.top-profile-button{appearance:none;border:0;background:transparent;padding:0;margin:0;cursor:pointer;border-radius:999px;display:grid;place-items:center;transition:transform .18s ease,opacity .18s ease}
.top-profile-button:hover{transform:translateY(-1px);opacity:.88}
.top-profile-button:focus-visible{outline:2px solid var(--text,#111);outline-offset:3px}
.admin-profile-form{align-items:stretch}
.admin-profile-media{gap:18px}
.admin-role-card{border:1px solid var(--border,#e8e8e8);border-radius:24px;padding:20px;background:linear-gradient(145deg,#17191d,#262a31);color:#fff;min-height:180px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;position:relative;overflow:hidden}
.admin-role-card::after{content:"";position:absolute;width:120px;height:120px;border:1px solid rgba(255,255,255,.09);border-radius:50%;right:-42px;top:-42px}
.admin-role-card .admin-role-icon{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:rgba(255,255,255,.1);margin-bottom:auto}
.admin-role-card .admin-role-icon svg{width:18px;height:18px}
.admin-role-card span{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#aeb4bf;margin-bottom:5px}
.admin-role-card strong{font-size:23px;line-height:1.1;margin-bottom:8px}
.admin-role-card p{font-size:12px;line-height:1.55;color:#b9bec8;margin:0;max-width:250px}
@media (max-width:760px){.admin-role-card{min-height:150px;border-radius:22px}.admin-profile-form{gap:16px}}

/* =========================================================
   V6 — sidebar refinement + dark/light theme toggle
   ========================================================= */
:root {
  --sidebar-panel: #ffffff;
  --sidebar-panel-border: rgba(18, 22, 31, .08);
  --sidebar-panel-shadow: 0 18px 52px rgba(17, 20, 27, .09);
  --sidebar-text: #171a21;
  --sidebar-muted: #767d89;
  --sidebar-icon-bg: #f2f4f7;
  --sidebar-hover-bg: #f6f7f9;
  --sidebar-active-bg: #0f1218;
  --sidebar-active-text: #ffffff;
  --sidebar-active-icon-bg: rgba(255,255,255,.12);
  --sidebar-divider: rgba(18,22,31,.08);
}

body.dark-theme {
  --bg: #0b0d12;
  --surface: #12151c;
  --surface-2: #191d25;
  --text: #f2f5f8;
  --muted: #98a1ad;
  --line: #252a34;
  --accent: #8b8cff;
  --accent-soft: rgba(139,140,255,.14);
  --signal: #ff824d;
  --success: #62d18f;
  --success-soft: rgba(98,209,143,.12);
  --warning: #f3bc61;
  --warning-soft: rgba(243,188,97,.11);
  --danger: #ff7d7d;
  --danger-soft: rgba(255,125,125,.12);
  --shadow-sm: 0 10px 26px rgba(0,0,0,.22);
  --shadow-md: 0 24px 60px rgba(0,0,0,.34);
  --sidebar-panel: linear-gradient(180deg, #12151b 0%, #090b10 100%);
  --sidebar-panel-border: rgba(255,255,255,.08);
  --sidebar-panel-shadow: 0 25px 60px rgba(0,0,0,.34);
  --sidebar-text: #f5f7fa;
  --sidebar-muted: rgba(255,255,255,.52);
  --sidebar-icon-bg: rgba(255,255,255,.055);
  --sidebar-hover-bg: rgba(255,255,255,.05);
  --sidebar-active-bg: #ffffff;
  --sidebar-active-text: #101319;
  --sidebar-active-icon-bg: #edf0f4;
  --sidebar-divider: rgba(255,255,255,.1);
}

body.dark-theme {
  background:
    radial-gradient(circle at 86% 10%, rgba(139,140,255,.12), transparent 24%),
    radial-gradient(circle at 14% 88%, rgba(255,130,77,.09), transparent 24%),
    var(--bg);
}

body.dark-theme,
body.dark-theme html { color-scheme: dark; }
body.dark-theme .page-sub,
body.dark-theme .panel-title,
body.dark-theme .order-number,
body.dark-theme .order-location,
body.dark-theme .metric-label,
body.dark-theme .section-note,
body.dark-theme .timeline-time,
body.dark-theme .row-main span,
body.dark-theme .row-cell span,
body.dark-theme .help,
body.dark-theme .brand-sub,
body.dark-theme .table-main span,
body.dark-theme .info-row span,
body.dark-theme .brief,
body.dark-theme .auth-box > p,
body.dark-theme .demo-box { color: var(--muted); }

/* Sidebar layout closer to provided reference */
.sidebar {
  inset: 12px auto 12px 12px;
  width: 238px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.sidebar::after { display: none; }
.sidebar-card {
  min-height: calc(100vh - 24px);
  background: var(--sidebar-panel);
  border: 1px solid var(--sidebar-panel-border);
  border-radius: 36px;
  box-shadow: var(--sidebar-panel-shadow);
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.sidebar-card::after {
  content: "";
  position: absolute;
  inset: auto auto -62px -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89,91,226,.18), rgba(89,91,226,0) 70%);
  pointer-events: none;
}
body.dark-theme .sidebar-card::after {
  background: radial-gradient(circle, rgba(89,91,226,.22), rgba(89,91,226,0) 70%);
}
.sidebar-brand {
  position: relative;
  z-index: 1;
  padding: 6px 8px 18px;
  color: var(--sidebar-text);
}
.sidebar .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: #f4f5f7;
  color: #111318;
}
body.dark-theme .sidebar .brand-mark {
  background: #ffffff;
  color: #101319;
}
.sidebar .brand-sub { color: var(--sidebar-muted); }
.sidebar .nav {
  gap: 8px;
  position: relative;
  z-index: 1;
}
.sidebar .nav-link {
  min-height: 58px;
  padding: 8px 10px;
  border-radius: 21px;
  color: var(--sidebar-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar .nav-link:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-text);
}
.sidebar .nav-link.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
  box-shadow: 0 12px 30px rgba(12,16,24,.16);
}
.sidebar .nav-icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--sidebar-icon-bg);
  transition: .18s ease;
}
.sidebar .nav-icon svg { width: 18px; height: 18px; padding: 0; background: transparent; }
.sidebar .nav-label { line-height: 1.1; }
.sidebar .nav-link.active .nav-icon { background: var(--sidebar-active-icon-bg); }
.sidebar-tools {
  position: relative;
  z-index: 1;
  margin-top: 12px;
}
.theme-toggle {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  min-height: 54px;
  border-radius: 18px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: .18s ease;
  box-shadow: var(--shadow-sm);
}
.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle-icon {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  flex: none;
}
.theme-toggle-icon svg { width: 18px; height: 18px; }
.theme-toggle-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.theme-toggle-copy strong { font-size: 13px; line-height: 1.15; }
.theme-toggle-copy small { color: var(--muted); font-size: 10px; line-height: 1.2; }
.sidebar .theme-toggle {
  background: rgba(255,255,255,.74);
  border-color: rgba(18,22,31,.08);
}
body.dark-theme .sidebar .theme-toggle {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
  color: #fff;
  box-shadow: none;
}
body.dark-theme .sidebar .theme-toggle-icon { background: rgba(255,255,255,.08); }
.sidebar-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 14px;
}
.sidebar .user-mini {
  border-top: 1px solid var(--sidebar-divider);
  padding: 16px 6px 2px;
}
.sidebar .user-mini strong { color: var(--sidebar-text); }
.sidebar .user-mini span { color: var(--sidebar-muted); }
.sidebar .avatar {
  background: rgba(112,118,131,.14);
  color: var(--sidebar-text);
  border: 1px solid var(--sidebar-divider);
}
.sidebar-logout {
  background: transparent;
  color: var(--sidebar-muted);
}
.sidebar-logout:hover { background: var(--sidebar-hover-bg); color: var(--sidebar-text); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.topbar .theme-toggle { display: none; }
.mobile-top-actions .theme-toggle {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  justify-content: center;
}
.mobile-top-actions .theme-toggle-copy { display: none; }
.mobile-top-actions .theme-toggle-icon {
  width: 100%;
  height: 100%;
  border-radius: 14px;
}
body.dark-theme .topbar > .notification-wrap > .icon-btn,
body.dark-theme .topbar > .top-profile-button,
body.dark-theme .topbar > .theme-toggle,
body.dark-theme .mobile-top-actions > .notification-wrap > .icon-btn,
body.dark-theme .mobile-top-actions > .top-profile-button,
body.dark-theme .mobile-top-actions > .theme-toggle {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
body.dark-theme .mobile-topbar { background: rgba(11,13,18,.92); }
body.dark-theme .mobile-topbar .brand { background: #13171e; color: #fff; }
body.dark-theme .mobile-topbar .brand-mark { background: #fff; color: #12151c; }

/* Dark theme general app surfaces */
body.dark-theme .card,
body.dark-theme .admin-next-shoot,
body.dark-theme .form-card,
body.dark-theme .filter-row,
body.dark-theme .tabs,
body.dark-theme .topbar > .notification-wrap > .icon-btn,
body.dark-theme .theme-toggle,
body.dark-theme .upload-box,
body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select,
body.dark-theme .shoot-time,
body.dark-theme .demo-box,
body.dark-theme .auth-side,
body.dark-theme .notification-popover,
body.dark-theme .notification-item,
body.dark-theme .notification-empty {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
body.dark-theme .page-sub { color: var(--muted); }
body.dark-theme .btn-primary { background: #ffffff; color: #111319; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
body.dark-theme .btn-primary:hover { background: #f3f5f8; }
body.dark-theme .btn-secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
body.dark-theme .btn-secondary:hover,
body.dark-theme .icon-btn:hover { background: var(--surface-2); color: var(--text); }
body.dark-theme .summary-line,
body.dark-theme .metric:not(:last-child)::after,
body.dark-theme .order-meta,
body.dark-theme .info-row,
body.dark-theme th,
body.dark-theme td,
body.dark-theme .timeline-item::after,
body.dark-theme .user-mini,
body.dark-theme .sidebar .user-mini { border-color: var(--line); }
body.dark-theme .progress-step::before { background: #3a404b; }
body.dark-theme .progress-step::after { background: #313640; }
body.dark-theme .progress-step.done::before { background: #d8dde5; }
body.dark-theme .progress-step.done::after { background: #636b77; }
body.dark-theme .progress-step.active { color: #fff; }
body.dark-theme .progress-step.active::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(139,140,255,.18); }
body.dark-theme tbody tr:hover,
body.dark-theme .list-row:hover,
body.dark-theme .order-card:hover { background: rgba(255,255,255,.018); border-color: #343a46; }
body.dark-theme .status-planning { background: rgba(255,255,255,.07); color: #c1c8d3; }
body.dark-theme .status-shooting { background: rgba(95,129,255,.18); color: #aabfff; }
body.dark-theme .status-editing,
body.dark-theme .status-review,
body.dark-theme .status-revision { background: rgba(139,140,255,.18); color: #bfc0ff; }
body.dark-theme .notification-item.unread,
body.dark-theme .notice { background: rgba(139,140,255,.10); border-color: rgba(139,140,255,.18); color: #cfd0ff; }
body.dark-theme .notice strong { color: #ffffff; }
body.dark-theme .tab { color: var(--muted); }
body.dark-theme .tab.active { background: #232833; color: #fff; box-shadow: none; }
body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select { background: #11151c; }
body.dark-theme input:hover,
body.dark-theme textarea:hover,
body.dark-theme select:hover { border-color: #37404d; }
body.dark-theme input:focus,
body.dark-theme textarea:focus,
body.dark-theme select:focus { border-color: #8082ff; box-shadow: 0 0 0 3px rgba(139,140,255,.12); }
body.dark-theme .filter-row input,
body.dark-theme .filter-row select { background: #141922; border-color: transparent; }
body.dark-theme .topbar,
body.dark-theme .auth-page { background: transparent; }
body.dark-theme .auth-side { background: #11151b; }
body.dark-theme .auth-quote p { color: #b3bac5; }
body.dark-theme .top-profile-button:focus-visible { outline-color: #fff; }

@media (max-width: 820px) {
  .topbar .theme-toggle { display: inline-flex; }
  .sidebar-card { min-height: auto; }
}

@media (max-width: 1050px) {
  .sidebar { width: 224px; }
}

/* =========================================================
   V7 — sidebar layout adjusted to reference
   ========================================================= */
.sidebar-card {
  padding: 18px 14px 14px;
}
.sidebar-top {
  position: relative;
  z-index: 1;
}
.sidebar-brand {
  padding: 4px 8px 8px;
}
.nav-main {
  margin-top: 20px;
  margin-bottom: auto;
  display: grid;
  gap: 10px;
}
.sidebar .nav-link {
  min-height: 60px;
  border-radius: 22px;
}
.sidebar-bottom {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}
.sidebar-controls {
  padding-top: 6px;
}
.sidebar-action {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  color: var(--text);
  min-height: 56px;
  border-radius: 20px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: .18s ease;
}
.sidebar-action:hover { transform: translateY(-1px); }
.sidebar-action-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  flex: none;
}
.sidebar-action-icon svg { width: 18px; height: 18px; }
.sidebar-action-copy { display: flex; flex-direction: column; align-items: flex-start; }
.sidebar-action-copy strong { font-size: 13px; line-height: 1.1; }
.sidebar-action-copy small { font-size: 10px; color: var(--muted); line-height: 1.15; }
.sidebar-footer {
  padding-top: 16px;
}
.user-mini-button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 16px 6px 4px;
  cursor: pointer;
  transition: .18s ease;
}
.user-mini-button:hover { opacity: .92; transform: translateY(-1px); }
.user-mini-button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 18px; }
.user-mini-button .avatar {
  width: 40px;
  height: 40px;
}

body.dark-theme .sidebar-action {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
  color: #fff;
  box-shadow: none;
}
body.dark-theme .sidebar-action-icon { background: rgba(255,255,255,.08); }
body.dark-theme .user-mini-button:focus-visible { outline-color: #fff; }

@media (max-width: 820px) {
  .sidebar-bottom,
  .sidebar-controls,
  .sidebar-footer,
  .sidebar-action,
  .user-mini-button { all: unset; }
}

/* =========================================================
   V8 — center primary sidebar navigation vertically
   ========================================================= */
.sidebar-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.nav-main {
  align-self: center;
  margin: 0;
  width: 100%;
}
.sidebar-bottom {
  margin-top: 0;
}

@media (max-height: 720px) and (min-width: 821px) {
  .nav-main { align-self: start; margin-top: 22px; }
}

/* =========================================================
   V10 — profile page modular redesign
   ========================================================= */
.profile-page-v10 { max-width: 1240px; }
.profile-layout-v10 {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.profile-media-stack-v10,
.profile-info-stack-v10 {
  display: grid;
  gap: 18px;
}
.profile-media-card-v10,
.profile-info-card-v10 {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.profile-media-card-v10 {
  padding: 22px;
}
.profile-photo-card-v10 {
  border-radius: 34px 34px 20px 34px;
  min-height: 285px;
}
.profile-logo-card-v10 {
  border-radius: 20px 34px 34px 34px;
  min-height: 255px;
}
.profile-card-kicker {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #8d949e;
}
.profile-card-copy {
  margin-top: 6px;
  max-width: 220px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}
.profile-avatar-v10 {
  width: 112px;
  height: 112px;
  margin: 22px 0 18px;
  border: 6px solid var(--surface);
  box-shadow: 0 12px 30px rgba(17,20,27,.10);
}
.profile-logo-v10 {
  width: 100%;
  height: 112px;
  margin: 20px 0 16px;
  border-radius: 24px 24px 16px 24px;
  background: var(--surface-2);
}
.profile-logo-v10.has-logo { background: #fff; }
.profile-logo-v10 img { padding: 16px; }
.profile-media-actions-v10 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-media-actions-v10 .btn {
  flex: 1 1 auto;
  min-width: 0;
}
.profile-remove-btn-v10 {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 4px;
}
.profile-remove-btn-v10:hover { color: var(--danger); }
.profile-help-v10 { margin-bottom: 0; }

.profile-info-card-v10 {
  padding: 26px;
}
.profile-personal-card-v10 {
  border-radius: 38px 38px 22px 38px;
}
.profile-company-card-v10 {
  border-radius: 22px 38px 38px 38px;
}
.profile-info-head-v10 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.profile-info-head-v10.compact { padding-bottom: 18px; }
.profile-info-head-v10 span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #8d949e;
  margin-bottom: 7px;
}
.profile-info-head-v10 h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 730;
}
.profile-mini-avatar-v10 .avatar {
  width: 48px;
  height: 48px;
  font-size: 13px;
}
.profile-form-grid-v10 { gap: 18px; }
.profile-form-grid-v10 input {
  min-height: 48px;
  border-radius: 16px;
}
.profile-save-row-v10 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.profile-save-row-v10 > span {
  color: var(--muted);
  font-size: 11px;
}
.profile-save-v10 {
  min-width: 118px;
}

body.dark-theme .profile-media-card-v10,
body.dark-theme .profile-info-card-v10 {
  background: var(--surface);
  border-color: var(--line);
}
body.dark-theme .profile-avatar-v10 {
  border-color: var(--surface);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}
body.dark-theme .profile-logo-v10 { background: #171c24; }
body.dark-theme .profile-logo-v10.has-logo { background: #fff; }
body.dark-theme .profile-card-kicker,
body.dark-theme .profile-info-head-v10 span { color: #8f98a5; }

@media (max-width: 980px) {
  .profile-layout-v10 { grid-template-columns: 260px minmax(0,1fr); }
}

@media (max-width: 820px) {
  .profile-layout-v10 { grid-template-columns: 1fr; }
  .profile-media-stack-v10 { grid-template-columns: 1fr 1fr; }
  .profile-photo-card-v10,
  .profile-logo-card-v10 { min-height: 0; }
}

@media (max-width: 620px) {
  .profile-media-stack-v10 { grid-template-columns: 1fr; }
  .profile-info-card-v10,
  .profile-media-card-v10 { padding: 20px; }
  .profile-info-head-v10 h2 { font-size: 22px; }
  .profile-form-grid-v10 { grid-template-columns: 1fr; }
  .profile-form-grid-v10 .field.full { grid-column: auto; }
  .profile-save-row-v10 { align-items: stretch; flex-direction: column; }
  .profile-save-v10 { width: 100%; }
}

/* =========================================================
   V11 — smart hover sidebar + navy/blue light/dark palette
   ========================================================= */
:root {
  --bg: #eef4fb;
  --surface: #ffffff;
  --surface-2: #f4f8fc;
  --text: #11233c;
  --muted: #7b8ca1;
  --line: #dce6f0;
  --accent: #188ff0;
  --accent-soft: #e9f4ff;
  --signal: #188ff0;
  --graphite: #10213a;
  --graphite-2: #162b47;
  --shadow-sm: 0 8px 24px rgba(31, 67, 105, .07);
  --shadow-md: 0 20px 48px rgba(28, 62, 98, .12);
  --sidebar-panel: #ffffff;
  --sidebar-panel-border: rgba(46,78,110,.09);
  --sidebar-panel-shadow: 0 22px 55px rgba(35,67,102,.13);
  --sidebar-text: #10223a;
  --sidebar-muted: #8291a4;
  --sidebar-icon-bg: #f2f6fa;
  --sidebar-hover-bg: #f3f7fb;
  --sidebar-active-bg: #168ff0;
  --sidebar-active-text: #ffffff;
  --sidebar-active-icon-bg: rgba(255,255,255,.15);
  --sidebar-divider: rgba(35,66,99,.09);
}

body.dark-theme {
  --bg: #07111f;
  --surface: #0d1d31;
  --surface-2: #11253d;
  --text: #eef6ff;
  --muted: #8093aa;
  --line: #18334f;
  --accent: #1a9bff;
  --accent-soft: rgba(26,155,255,.14);
  --signal: #1a9bff;
  --graphite: #071628;
  --graphite-2: #0b1f36;
  --shadow-sm: 0 12px 28px rgba(0,0,0,.22);
  --shadow-md: 0 26px 58px rgba(0,0,0,.34);
  --sidebar-panel: linear-gradient(180deg,#0d2139 0%,#071729 100%);
  --sidebar-panel-border: rgba(255,255,255,.06);
  --sidebar-panel-shadow: 0 28px 64px rgba(0,0,0,.34);
  --sidebar-text: #f4f8fc;
  --sidebar-muted: #8194aa;
  --sidebar-icon-bg: rgba(255,255,255,.055);
  --sidebar-hover-bg: rgba(255,255,255,.055);
  --sidebar-active-bg: #168ff0;
  --sidebar-active-text: #ffffff;
  --sidebar-active-icon-bg: rgba(255,255,255,.15);
  --sidebar-divider: rgba(255,255,255,.08);
}

body {
  background:
    radial-gradient(circle at 86% 8%, rgba(24,143,240,.08), transparent 24%),
    radial-gradient(circle at 15% 92%, rgba(24,143,240,.045), transparent 22%),
    var(--bg);
}
body.dark-theme {
  background:
    radial-gradient(circle at 84% 8%, rgba(26,155,255,.16), transparent 25%),
    radial-gradient(circle at 8% 94%, rgba(26,155,255,.07), transparent 24%),
    var(--bg);
}

/* Blue product accent */
.btn-primary { background: var(--accent); box-shadow: 0 9px 24px rgba(24,143,240,.24); }
.btn-primary:hover { background: #087fd7; }
body.dark-theme .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 9px 26px rgba(26,155,255,.2); }
body.dark-theme .btn-primary:hover { background: #1691eb; color: #fff; }
.status-editing,
.status-review,
.status-revision { background: var(--accent-soft); color: #167bd0; }
body.dark-theme .status-editing,
body.dark-theme .status-review,
body.dark-theme .status-revision { background: rgba(26,155,255,.14); color: #75c6ff; }
.progress-step.active::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(24,143,240,.13); }
.timeline-item:first-child::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(24,143,240,.13); }

/* Hero/nav palette closer to supplied reference */
.dashboard-feature,
.admin-command-center {
  background:
    radial-gradient(circle at 84% 20%, rgba(26,155,255,.30), transparent 27%),
    linear-gradient(145deg,#102844 0%,#08182b 72%);
}

.theme-switch {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 18px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.theme-switch-option {
  border: 0;
  min-width: 0;
  height: 38px;
  border-radius: 14px;
  background: transparent;
  color: #8392a4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
  transition: .18s ease;
}
.theme-switch-option svg { width: 15px; height: 15px; flex: none; }
.theme-switch-option.active {
  background: #ffffff;
  color: #12253e;
  box-shadow: 0 4px 12px rgba(32,62,95,.08);
}
body.dark-theme .theme-switch {
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.07);
  box-shadow: none;
}
body.dark-theme .theme-switch-option { color: #7087a0; }
body.dark-theme .theme-switch-option.active {
  background: #122b48;
  color: #f2f8ff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.055);
}

/* Desktop: collapsed by default, expands automatically on hover/focus */
@media (min-width: 821px) {
  :root { --sidebar: 102px; }
  .main { margin-left: 102px; transition: margin-left .28s cubic-bezier(.2,.75,.2,1); }
  .sidebar {
    inset: 12px auto 12px 12px;
    width: 76px;
    z-index: 60;
    transition: width .30s cubic-bezier(.2,.75,.2,1);
  }
  .sidebar:hover,
  .sidebar:focus-within { width: 246px; }
  .sidebar-card {
    width: 76px;
    min-height: calc(100vh - 24px);
    border-radius: 31px;
    padding: 15px 10px 12px;
    transition: width .30s cubic-bezier(.2,.75,.2,1), border-radius .28s ease, padding .28s ease;
  }
  .sidebar:hover .sidebar-card,
  .sidebar:focus-within .sidebar-card {
    width: 246px;
    padding: 15px 13px 12px;
    border-radius: 32px;
  }

  .sidebar-brand {
    width: 100%;
    padding: 2px 5px 8px;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
  }
  .sidebar .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    flex: none;
    background: #f4f7fa;
    color: #12243c;
  }
  body.dark-theme .sidebar .brand-mark { background: #122a47; color: #fff; }
  .sidebar-brand > div {
    opacity: 0;
    transform: translateX(-7px);
    width: 0;
    overflow: hidden;
    transition: opacity .17s ease, transform .25s ease, width .28s ease;
  }
  .sidebar:hover .sidebar-brand > div,
  .sidebar:focus-within .sidebar-brand > div {
    opacity: 1;
    transform: translateX(0);
    width: 155px;
  }

  .nav-main {
    width: 100%;
    gap: 9px;
    overflow: visible;
  }
  .sidebar .nav-link {
    width: 54px;
    min-height: 52px;
    padding: 6px;
    border-radius: 18px;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
    transition: width .28s cubic-bezier(.2,.75,.2,1), background .18s ease, color .18s ease, box-shadow .18s ease;
  }
  .sidebar:hover .nav-link,
  .sidebar:focus-within .nav-link {
    width: 220px;
    padding: 6px 9px;
  }
  .sidebar .nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    flex: none;
  }
  .sidebar .nav-label {
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity .16s ease, transform .24s ease;
  }
  .sidebar:hover .nav-label,
  .sidebar:focus-within .nav-label {
    opacity: 1;
    transform: translateX(0);
  }
  .sidebar .nav-link.active {
    background: var(--sidebar-active-bg);
    color: #fff;
    box-shadow: 0 10px 24px rgba(24,143,240,.24);
  }

  .sidebar-bottom { width: 100%; }
  .sidebar-theme { margin-bottom: 9px; }
  .theme-switch {
    width: 54px;
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 4px;
    border-radius: 18px;
    overflow: hidden;
    transition: width .28s cubic-bezier(.2,.75,.2,1), grid-template-columns .28s ease;
  }
  .sidebar:hover .theme-switch,
  .sidebar:focus-within .theme-switch {
    width: 220px;
    grid-template-columns: 1fr 1fr;
  }
  .theme-switch-option {
    height: 34px;
    width: 44px;
    gap: 5px;
  }
  .sidebar:hover .theme-switch-option,
  .sidebar:focus-within .theme-switch-option { width: auto; }
  .theme-switch-option span {
    display: none;
    opacity: 0;
  }
  .sidebar:hover .theme-switch-option span,
  .sidebar:focus-within .theme-switch-option span {
    display: inline;
    opacity: 1;
  }

  .sidebar-footer { padding-top: 8px; }
  .user-mini-button {
    width: 54px;
    padding: 7px;
    border-top: 1px solid var(--sidebar-divider);
    overflow: hidden;
    white-space: nowrap;
    transition: width .28s cubic-bezier(.2,.75,.2,1), padding .28s ease;
  }
  .sidebar:hover .user-mini-button,
  .sidebar:focus-within .user-mini-button {
    width: 220px;
    padding: 10px 7px;
  }
  .user-mini-button .avatar { width: 40px; height: 40px; flex: none; }
  .sidebar-user-copy {
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .16s ease, transform .24s ease;
  }
  .sidebar:hover .sidebar-user-copy,
  .sidebar:focus-within .sidebar-user-copy {
    opacity: 1;
    transform: translateX(0);
  }

  .sidebar-controls { padding-top: 8px; }
  .sidebar-action {
    width: 54px;
    min-height: 52px;
    padding: 7px;
    border-radius: 18px;
    overflow: hidden;
    gap: 9px;
    white-space: nowrap;
    transition: width .28s cubic-bezier(.2,.75,.2,1), background .18s ease;
  }
  .sidebar:hover .sidebar-action,
  .sidebar:focus-within .sidebar-action {
    width: 220px;
    padding: 7px 9px;
  }
  .sidebar-action-icon { width: 38px; height: 38px; flex: none; }
  .sidebar-action-copy {
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity .16s ease, transform .24s ease;
  }
  .sidebar:hover .sidebar-action-copy,
  .sidebar:focus-within .sidebar-action-copy {
    opacity: 1;
    transform: translateX(0);
  }

  .topbar .theme-toggle { display: none !important; }
}

/* Light/dark surface cleanup */
body.dark-theme .card,
body.dark-theme .panel,
body.dark-theme .admin-next-shoot,
body.dark-theme .profile-media-card-v10,
body.dark-theme .profile-info-card-v10,
body.dark-theme .form-card,
body.dark-theme .filter-row,
body.dark-theme .notification-popover,
body.dark-theme .notification-item,
body.dark-theme .auth-side {
  background: var(--surface);
  border-color: var(--line);
}
body.dark-theme .profile-logo-v10 { background: #10243c; }
body.dark-theme .profile-avatar-v10 { background: #112740; border-color: #234360; }
body.dark-theme .profile-info-card-v10 input,
body.dark-theme .profile-info-card-v10 textarea,
body.dark-theme .profile-info-card-v10 select { background: #091827; }
body.dark-theme tbody tr:hover { background: rgba(255,255,255,.025); }
body.dark-theme .topbar > .notification-wrap > .icon-btn,
body.dark-theme .top-profile-button { background: #0d1d31; border-color: #18334f; }

@media (max-width: 820px) {
  body { background: var(--bg); }
  .mobile-topbar { background: color-mix(in srgb, var(--bg) 90%, transparent); }
  body.dark-theme .mobile-topbar { background: rgba(7,17,31,.92); }
}

/* =========================================================
   V12 — brand update + balanced profile proportions
   ========================================================= */
.brand-mark-logo {
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 0;
}
.brand-logo-img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  display: block;
}
body.dark-theme .brand-logo-img,
.auth-visual .brand-logo-img,
.sidebar-card .brand-logo-img {
  filter: brightness(0) invert(1);
}
.mobile-topbar .brand-logo-img,
body:not(.dark-theme) .auth-brand .brand-logo-img {
  filter: none;
}
.auth-brand .brand-mark.brand-mark-logo {
  background: #fff;
}

/* Better consistency for profile page */
.profile-layout-v10 {
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
}
.profile-media-stack-v10,
.profile-info-stack-v10 { gap: 20px; }
.profile-media-card-v10,
.profile-info-card-v10 {
  border-radius: 28px !important;
}
.profile-photo-card-v10,
.profile-logo-card-v10 {
  min-height: 0;
}
.profile-media-card-v10 {
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.profile-card-copy {
  min-height: 36px;
  max-width: none;
}
.profile-avatar-v10,
.profile-logo-v10 {
  width: 100%;
  height: 148px;
  margin: 18px 0 16px;
  border-radius: 26px;
  display: grid;
  place-items: center;
}
.profile-avatar-v10 {
  max-width: 148px;
  border-width: 5px;
  border-style: solid;
  align-self: flex-start;
}
.profile-avatar-v10 img,
.profile-logo-v10 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-logo-v10 img {
  object-fit: contain;
  padding: 18px;
}
.profile-media-actions-v10 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 2px;
}
.profile-media-actions-v10 .btn,
.profile-remove-btn-v10 {
  width: 100%;
  min-height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
}
.profile-remove-btn-v10 {
  border: 1px solid var(--line);
  background: transparent;
}
.profile-help-v10 {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.45;
}
.profile-info-card-v10 {
  padding: 24px 26px;
}
.profile-info-head-v10 {
  min-height: 72px;
  align-items: flex-start;
}
.profile-info-head-v10 h2 {
  font-size: 22px;
}
.profile-mini-avatar-v10 .avatar {
  width: 56px;
  height: 56px;
}
.profile-form-grid-v10 {
  gap: 16px;
}
.profile-form-grid-v10 input,
.profile-form-grid-v10 textarea,
.profile-form-grid-v10 select {
  min-height: 48px;
  border-radius: 16px;
}
.profile-save-row-v10 {
  margin-top: 22px;
  padding-top: 18px;
}
.profile-save-v10 {
  min-width: 132px;
  min-height: 44px;
}

body.dark-theme .profile-logo-v10.has-logo {
  background: #eef4ff;
}
body.dark-theme .profile-logo-v10 img {
  filter: none;
}

@media (max-width: 980px) {
  .profile-layout-v10 { grid-template-columns: 280px minmax(0,1fr); }
}
@media (max-width: 820px) {
  .profile-layout-v10 { grid-template-columns: 1fr; }
  .profile-media-stack-v10 { grid-template-columns: 1fr 1fr; }
  .profile-avatar-v10,
  .profile-logo-v10 { height: 138px; }
}
@media (max-width: 620px) {
  .profile-media-stack-v10 { grid-template-columns: 1fr; }
  .profile-info-head-v10 { flex-direction: column; }
  .profile-avatar-v10,
  .profile-logo-v10 { height: 132px; }
}

/* =========================================================
   V13 — dark mode contrast fix for dashboard summary widgets
   ========================================================= */
body.dark-theme .module-card,
body.dark-theme .next-shoot-card,
body.dark-theme .stat-tiles > div {
  background: #0f2136;
  border-color: #183654;
  color: #f4f8ff;
}
body.dark-theme .module-head,
body.dark-theme .shoot-month,
body.dark-theme .stat-tiles span,
body.dark-theme .next-shoot-card > p,
body.dark-theme .mini-link,
body.dark-theme .module-empty-mark {
  color: #b8c9dc;
}
body.dark-theme .module-head svg,
body.dark-theme .mini-link svg {
  color: #d7e4f4;
}
body.dark-theme .stat-tiles strong,
body.dark-theme .shoot-date-big,
body.dark-theme .next-shoot-card > strong {
  color: #ffffff;
}
body.dark-theme .module-live {
  background: rgba(255,255,255,.08);
  color: #d8e6f4;
}
body.dark-theme .next-shoot-card::after {
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 0 0 22px rgba(255,255,255,.03);
}

/* =========================================================
   V14 — balanced profile media blocks + corrected brand logo
   ========================================================= */

/* Full icon-only logo from original asset. Light = black, Dark = white. */
.brand-mark-logo {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.brand-mark-logo .brand-logo-img,
.brand-logo-img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  padding: 0;
}
body:not(.dark-theme) .sidebar-card .brand-logo-img,
body:not(.dark-theme) .mobile-topbar .brand-logo-img,
body:not(.dark-theme) .auth-brand .brand-logo-img {
  filter: brightness(0) !important;
}
body.dark-theme .sidebar-card .brand-logo-img,
body.dark-theme .mobile-topbar .brand-logo-img,
body.dark-theme .auth-brand .brand-logo-img {
  filter: brightness(0) invert(1) !important;
}
.auth-visual .brand-mark-logo .brand-logo-img {
  filter: brightness(0) invert(1) !important;
}

/* Profile media cards: image preview and upload controls share the same width. */
.profile-media-card-v10 {
  padding: 24px;
}
.profile-avatar-v10,
.profile-logo-v10 {
  width: 100% !important;
  max-width: none !important;
  height: 150px !important;
  margin: 18px 0 12px !important;
  border-radius: 24px !important;
  box-sizing: border-box;
}
.profile-avatar-v10 {
  align-self: stretch !important;
  border: 1px solid var(--line) !important;
  background: var(--surface-2);
  box-shadow: none !important;
}
.profile-avatar-v10.has-photo {
  background: var(--surface-2);
}
.profile-avatar-v10 img {
  width: 112px !important;
  height: 112px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  padding: 0 !important;
}
.profile-avatar-v10 > span {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 22px;
  font-weight: 800;
}
.profile-logo-v10 {
  background: var(--surface-2) !important;
  border: 1px solid var(--line);
}
.profile-logo-v10.has-logo {
  background: var(--surface-2) !important;
}
.profile-logo-v10 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 22px !important;
}
.profile-logo-v10 > span {
  font-size: 24px;
  font-weight: 800;
}
.profile-media-actions-v10 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 100%;
  gap: 8px;
}
.profile-media-actions-v10 .btn,
.profile-remove-btn-v10 {
  width: 100% !important;
  min-height: 46px !important;
  border-radius: 16px !important;
  margin: 0 !important;
}
.profile-help-v10 {
  margin-top: 12px !important;
}

/* Keep both left-side profile cards visually identical in width and rhythm. */
.profile-photo-card-v10,
.profile-logo-card-v10 {
  min-height: 0 !important;
  border-radius: 28px !important;
}
.profile-card-copy {
  min-height: 34px;
}

body.dark-theme .profile-avatar-v10,
body.dark-theme .profile-logo-v10,
body.dark-theme .profile-logo-v10.has-logo {
  background: #0f2136 !important;
  border-color: #21415f !important;
}
body.dark-theme .profile-avatar-v10 > span {
  background: #0b1a2b;
  border-color: #21415f;
  color: #fff;
}
body.dark-theme .profile-logo-v10 > span {
  color: #fff;
}

@media (max-width: 820px) {
  .profile-avatar-v10,
  .profile-logo-v10 {
    height: 142px !important;
  }
}


/* V15 — timeline chronological order: oldest → newest */
.timeline-item:first-child::before {
  background: #b9bdc4;
  box-shadow: none;
}
.timeline-item:last-child::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
body.dark-theme .timeline-item:first-child::before {
  background: #506176;
  box-shadow: none;
}
body.dark-theme .timeline-item:last-child::before {
  background: #31a8ff;
  box-shadow: 0 0 0 4px rgba(49,168,255,.16);
}

/* =========================================================
   V16 — production queue / estimated start time
   ========================================================= */
.queue-list-row {
  grid-template-columns: minmax(180px,1.05fr) minmax(250px,1.45fr) minmax(150px,.8fr) minmax(155px,.85fr) 24px;
  gap: 14px;
}
.queue-cell { min-width: 0; }
.queue-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 15px;
  background: var(--surface-2);
}
.queue-box.compact {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.queue-title {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--text);
}
.queue-detail {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--muted);
}
.queue-queue {
  background: rgba(32,156,255,.08);
  border-color: rgba(32,156,255,.22);
}
.queue-next {
  background: rgba(76,195,132,.09);
  border-color: rgba(76,195,132,.24);
}
.queue-active {
  background: rgba(139,140,255,.10);
  border-color: rgba(139,140,255,.22);
}
.queue-done {
  background: rgba(76,195,132,.08);
  border-color: rgba(76,195,132,.18);
}
.queue-waiting {
  background: rgba(255,255,255,.38);
}
.queue-start-toggle {
  margin: 0;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.queue-start-toggle input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  flex: none;
}
.queue-start-toggle span { display: grid; gap: 3px; }
.queue-start-toggle strong { font-size: 12px; }
.queue-start-toggle small { font-size: 10px; color: var(--muted); line-height: 1.4; }

body.dark-theme .queue-box,
body.dark-theme .queue-start-toggle {
  background: #0d2034;
  border-color: #1d3c59;
}
body.dark-theme .queue-queue { background: rgba(32,156,255,.12); border-color: rgba(61,169,255,.28); }
body.dark-theme .queue-next { background: rgba(76,195,132,.12); border-color: rgba(76,195,132,.28); }
body.dark-theme .queue-active { background: rgba(139,140,255,.13); border-color: rgba(139,140,255,.28); }
body.dark-theme .queue-done { background: rgba(76,195,132,.11); border-color: rgba(76,195,132,.22); }
body.dark-theme .queue-waiting { background: rgba(255,255,255,.035); }
body.dark-theme .queue-title { color: #f6f9ff; }
body.dark-theme .queue-detail { color: #a9bed2; }

@media (max-width: 1080px) {
  .queue-list-row {
    grid-template-columns: minmax(160px,1fr) minmax(230px,1.35fr) minmax(140px,.8fr) 24px;
  }
  .queue-list-row .shoot-cell { display: none; }
}
@media (max-width: 820px) {
  .queue-list-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .queue-list-row .row-main { grid-column: 1 / 2; }
  .queue-list-row .row-arrow { grid-column: 2; grid-row: 1; }
  .queue-list-row .queue-cell {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .queue-list-row .status-cell,
  .queue-list-row .shoot-cell { display: none !important; }
  .queue-box.compact { min-height: 0; }
}

/* =========================================================
   V17 — mobile UX cleanup, clear active navigation, compact upload
   ========================================================= */

/* Brand logo: mathematically centered with a clean circular ring */
.brand-mark-logo {
  position: relative;
  border-radius: 50% !important;
  background: transparent !important;
  border: 1px solid rgba(18, 36, 60, .16);
  box-shadow: inset 0 0 0 4px rgba(22, 143, 240, .035);
  overflow: hidden;
  display: grid !important;
  place-items: center !important;
}
.brand-mark-logo::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(22,143,240,.14);
  pointer-events: none;
}
.brand-mark-logo .brand-logo-img,
.brand-logo-img {
  position: relative;
  z-index: 1;
  width: 68% !important;
  height: 68% !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  margin: 0 !important;
  transform: none !important;
  filter: brightness(0) !important;
}
body.dark-theme .brand-mark-logo {
  border-color: rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.025);
}
body.dark-theme .brand-mark-logo::after { border-color: rgba(255,255,255,.12); }
body.dark-theme .brand-mark-logo .brand-logo-img,
body.dark-theme .brand-logo-img { filter: brightness(0) invert(1) !important; }
.auth-visual .brand-mark-logo .brand-logo-img { filter: brightness(0) invert(1) !important; }

/* Desktop sidebar navigation must always communicate selection clearly */
@media (min-width: 821px) {
  .sidebar .nav-link { color: #73869a; }
  .sidebar .nav-link .nav-icon { color: #6f8296; }
  .sidebar .nav-link .nav-icon svg { stroke: currentColor !important; opacity: 1; }
  .sidebar .nav-link.active {
    background: #168ff0 !important;
    color: #fff !important;
    box-shadow: 0 10px 26px rgba(22,143,240,.30) !important;
  }
  .sidebar .nav-link.active .nav-icon {
    background: #0f7fd8 !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  }
  .sidebar .nav-link.active .nav-icon svg { stroke: #fff !important; }
  body.dark-theme .sidebar .nav-link { color: #8296aa; }
  body.dark-theme .sidebar .nav-link .nav-icon { color: #90a5bb; }
  body.dark-theme .sidebar .nav-link.active,
  body.dark-theme .sidebar .nav-link.active .nav-icon { color: #fff !important; }
}

/* New order upload starts compact and grows only after files are chosen */
.new-order-upload {
  min-height: 94px !important;
  padding: 16px 18px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: min-height .22s ease, padding .22s ease, border-color .18s ease, background .18s ease;
}
.new-order-upload .upload-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
}
.new-order-upload .upload-title svg { width: 17px; height: 17px; }
.new-order-upload .upload-copy { margin-top: 5px; }
.new-order-upload .file-list {
  display: none;
  margin-top: 14px;
  grid-template-columns: repeat(auto-fill,minmax(110px,1fr));
  gap: 9px;
}
.new-order-upload.has-files {
  min-height: 188px !important;
  justify-content: flex-start;
  padding: 18px !important;
  border-style: solid;
  border-color: rgba(22,143,240,.32);
}
.new-order-upload.has-files .file-list { display: grid; width: 100%; }
.file-preview-item {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 7px;
  display: grid;
  gap: 6px;
}
.file-preview-item img,
.file-preview-generic {
  width: 100%;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-2);
}
.file-preview-generic { display: grid; place-items: center; color: var(--muted); }
.file-preview-generic svg { width: 23px; height: 23px; }
.file-preview-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  color: var(--muted);
}
body.dark-theme .file-preview-item { background: #0b1b2c; }

/* Mobile: use one header only. Desktop topbar must never leak onto mobile. */
@media (max-width: 820px) {
  html, body { overflow-x: hidden; }
  body { padding-bottom: 84px; }
  .sidebar,
  .topbar { display: none !important; }
  .main { margin-left: 0 !important; width: 100%; }

  .mobile-topbar {
    display: flex !important;
    position: sticky;
    top: 0;
    z-index: 70;
    height: 64px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(246,249,252,.94) !important;
    backdrop-filter: blur(18px);
  }
  body.dark-theme .mobile-topbar { background: rgba(7,17,31,.94) !important; }

  .mobile-topbar .brand {
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    color: var(--text) !important;
    gap: 9px;
    font-size: 13px;
    font-weight: 800;
    max-width: 58%;
  }
  body.dark-theme .mobile-topbar .brand { color: #fff !important; }
  .mobile-topbar .brand-mark {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    background: transparent !important;
  }
  .mobile-topbar .brand > span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-top-actions { display: flex; align-items: center; gap: 7px; }
  .mobile-top-actions .theme-toggle,
  .mobile-top-actions .notification-bell,
  .mobile-top-actions .top-profile-button {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 13px !important;
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .mobile-top-actions .theme-toggle { display: grid !important; place-items: center; }
  .mobile-top-actions .theme-toggle-copy { display: none !important; }
  .mobile-top-actions .theme-toggle-icon {
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    display: grid;
    place-items: center;
  }
  .mobile-top-actions .theme-toggle-icon svg,
  .mobile-top-actions .notification-bell svg { width: 17px; height: 17px; }
  .mobile-top-actions .top-profile-button .avatar { width: 36px; height: 36px; }

  .container {
    width: 100%;
    max-width: none;
    padding: 22px 16px 28px !important;
  }
  .page-head { margin-bottom: 18px; gap: 10px; }
  .page-title { font-size: 29px !important; line-height: 1.04; }
  .page-sub { margin-top: 7px; font-size: 12px; line-height: 1.5; }

  /* Profile mobile hierarchy */
  .profile-page-v10 { padding-top: 18px !important; }
  .profile-layout-v10 { display: grid; grid-template-columns: 1fr !important; gap: 14px !important; }
  .profile-media-stack-v10,
  .profile-info-stack-v10 { grid-template-columns: 1fr !important; gap: 14px !important; }
  .profile-media-card-v10,
  .profile-info-card-v10 {
    border-radius: 24px !important;
    padding: 18px !important;
  }
  .profile-card-copy { min-height: 0 !important; }
  .profile-avatar-v10,
  .profile-logo-v10 {
    height: 112px !important;
    margin: 14px 0 12px !important;
    border-radius: 20px !important;
  }
  .profile-avatar-v10 { max-width: none !important; width: 100% !important; }
  .profile-avatar-v10.has-photo img { object-fit: contain !important; }
  .profile-avatar-v10 > span {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
  }
  .profile-logo-v10 img { padding: 12px !important; }
  .profile-media-actions-v10 .btn,
  .profile-remove-btn-v10 { min-height: 42px; border-radius: 14px; }
  .profile-info-head-v10 { min-height: 0; padding-bottom: 16px; margin-bottom: 16px; }
  .profile-info-head-v10 h2 { font-size: 20px; }
  .profile-form-grid-v10 { grid-template-columns: 1fr !important; gap: 13px !important; }
  .profile-save-row-v10 { margin-top: 16px; padding-top: 16px; }

  /* Mobile bottom navigation: selection must be unmistakable */
  .mobile-nav {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    min-height: 68px !important;
    padding: 6px !important;
    border-radius: 23px !important;
    background: rgba(255,255,255,.97) !important;
    border: 1px solid rgba(189,202,216,.58) !important;
    box-shadow: 0 16px 38px rgba(15,36,58,.18) !important;
  }
  body.dark-theme .mobile-nav {
    background: rgba(10,27,45,.97) !important;
    border-color: #173755 !important;
    box-shadow: 0 18px 40px rgba(0,0,0,.34) !important;
  }
  .mobile-nav button {
    min-height: 52px !important;
    border-radius: 16px !important;
    color: #7f91a4 !important;
    font-size: 8px !important;
    background: transparent !important;
    opacity: 1 !important;
  }
  .mobile-nav button svg { width: 19px !important; height: 19px !important; stroke: currentColor !important; }
  .mobile-nav button.active {
    background: #168ff0 !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(22,143,240,.28) !important;
  }
  .mobile-nav button.active svg { stroke: #fff !important; }
  body.dark-theme .mobile-nav button { color: #8ca2b8 !important; }
  body.dark-theme .mobile-nav button.active { color: #fff !important; background: #168ff0 !important; }
  .mobile-nav .mobile-plus {
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 15px !important;
    background: #e9f5ff !important;
    color: #168ff0 !important;
    box-shadow: inset 0 0 0 1px rgba(22,143,240,.10) !important;
  }
  body.dark-theme .mobile-nav .mobile-plus {
    background: #12304d !important;
    color: #56b4ff !important;
  }

  /* New-order upload is intentionally compact on phones */
  .new-order-upload { min-height: 78px !important; padding: 13px !important; border-radius: 18px !important; }
  .new-order-upload .upload-copy { font-size: 9px; }
  .new-order-upload.has-files { min-height: 166px !important; }
  .new-order-upload .file-list { grid-template-columns: repeat(2,minmax(0,1fr)); }

  /* Notifications fit the phone viewport */
  .notification-popover {
    position: fixed !important;
    top: 70px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(520px, calc(100vh - 150px));
  }
}

@media (max-width: 430px) {
  .mobile-topbar { padding: 0 11px; }
  .mobile-topbar .brand { max-width: 52%; }
  .mobile-topbar .brand > span:last-child { font-size: 12px; }
  .mobile-top-actions { gap: 5px; }
  .mobile-top-actions .theme-toggle,
  .mobile-top-actions .notification-bell,
  .mobile-top-actions .top-profile-button {
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;
  }
  .mobile-top-actions .top-profile-button .avatar { width: 33px; height: 33px; }
  .container { padding-left: 13px !important; padding-right: 13px !important; }
  .page-title { font-size: 27px !important; }
  .profile-media-card-v10,
  .profile-info-card-v10 { padding: 16px !important; border-radius: 22px !important; }
  .mobile-nav { left: 7px !important; right: 7px !important; bottom: 7px !important; }
}

/* =========================================================
   V18 — exact sidebar centering + unmistakable active state
   ========================================================= */
@media (min-width: 821px) {
  /* Center the logo perfectly when the rail is collapsed. */
  .sidebar-brand {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .sidebar:hover .sidebar-brand,
  .sidebar:focus-within .sidebar-brand {
    justify-content: flex-start !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
  .sidebar .brand-mark-logo {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 0 0 44px !important;
  }

  /* Keep every collapsed nav icon exactly centered in the rail. */
  .sidebar .nav-main {
    justify-items: center !important;
  }
  .sidebar .nav-link {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .sidebar:hover .nav-link,
  .sidebar:focus-within .nav-link {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Active item: blue outer tile + WHITE inner tile + BLUE icon.
     This gives a very obvious selected state in both themes. */
  .sidebar .nav-link.active {
    background: #168ff0 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(22,143,240,.36) !important;
  }
  .sidebar .nav-link.active .nav-icon {
    background: #ffffff !important;
    color: #168ff0 !important;
    box-shadow: 0 2px 8px rgba(3,30,56,.13), inset 0 0 0 1px rgba(9,79,135,.06) !important;
  }
  .sidebar .nav-link.active .nav-icon svg {
    stroke: #168ff0 !important;
    stroke-width: 2.25 !important;
    opacity: 1 !important;
  }
  body.dark-theme .sidebar .nav-link.active {
    background: #168ff0 !important;
    color: #ffffff !important;
  }
  body.dark-theme .sidebar .nav-link.active .nav-icon {
    background: #ffffff !important;
    color: #168ff0 !important;
  }
  body.dark-theme .sidebar .nav-link.active .nav-icon svg {
    stroke: #168ff0 !important;
  }
}

/* Make mobile selection equally obvious: filled blue tile + white icon/text. */
@media (max-width: 820px) {
  .mobile-nav button.active {
    background: #168ff0 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(22,143,240,.34) !important;
  }
  .mobile-nav button.active svg {
    stroke: #ffffff !important;
    stroke-width: 2.2 !important;
    opacity: 1 !important;
  }
  body.dark-theme .mobile-nav button.active {
    background: #168ff0 !important;
    color: #ffffff !important;
  }
}

/* =========================================================
   V23 — production queue page
   ========================================================= */
.queue-page { max-width: 1180px; }
.queue-summary-card {
  display: grid;
  gap: 8px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(36,153,255,.10), rgba(255,255,255,.92));
  box-shadow: var(--shadow-sm);
}
.queue-summary-card > span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
}
.queue-summary-card > strong {
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -.045em;
  line-height: 1.08;
}
.queue-summary-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.queue-summary-empty { background: var(--surface); }
.queue-position-list { display: grid; gap: 10px; }
.queue-position-row {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.queue-position-row.mine {
  border-color: rgba(36,153,255,.55);
  box-shadow: 0 0 0 3px rgba(36,153,255,.08), var(--shadow-sm);
  background: linear-gradient(90deg, rgba(36,153,255,.09), var(--surface) 38%);
}
.queue-position-index {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  font-weight: 800;
  font-size: 14px;
}
.queue-position-row.mine .queue-position-index { background: #2499ff; color: white; }
.queue-position-main strong,
.queue-position-state strong { display: block; font-size: 13px; }
.queue-position-main span,
.queue-position-state span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.queue-position-state { min-width: 118px; text-align: right; }
.queue-you-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #2499ff;
  color: white;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .07em;
}
.queue-rule-note {
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.queue-rule-note strong { color: var(--text); white-space: nowrap; }

body.dark-theme .queue-summary-card {
  background: linear-gradient(145deg, rgba(36,153,255,.17), #0f2136 62%);
  border-color: #1e4568;
}
body.dark-theme .queue-summary-empty,
body.dark-theme .queue-position-row { background: #0f2136; border-color: #183654; }
body.dark-theme .queue-position-row.mine {
  background: linear-gradient(90deg, rgba(36,153,255,.18), #0f2136 45%);
  border-color: #2499ff;
  box-shadow: 0 0 0 3px rgba(36,153,255,.10), var(--shadow-sm);
}
body.dark-theme .queue-position-index { background: #17304a; }
body.dark-theme .queue-rule-note { background: #0f2136; border: 1px solid #183654; }

@media (max-width: 620px) {
  .queue-summary-card { padding: 20px; border-radius: 24px; }
  .queue-position-row {
    grid-template-columns: 44px minmax(0,1fr) auto;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }
  .queue-position-index { width: 38px; height: 38px; border-radius: 12px; }
  .queue-position-state { min-width: 0; text-align: right; }
  .queue-you-badge { grid-column: 2 / -1; justify-self: start; min-height: 25px; }
  .queue-rule-note { flex-direction: column; gap: 4px; }
}


/* =========================================================
   V31 — unified profile media proportions (agent + admin)
   ========================================================= */
.profile-media-card-v10 {
  width: 100% !important;
  box-sizing: border-box;
}
.profile-avatar-v10,
.profile-logo-v10 {
  width: 100% !important;
  max-width: none !important;
  height: 150px !important;
  box-sizing: border-box !important;
  margin: 18px 0 12px !important;
}
.profile-media-actions-v10,
.profile-media-actions-v10 .btn,
.profile-remove-btn-v10 {
  width: 100% !important;
  box-sizing: border-box !important;
}
.profile-media-actions-v10 .btn,
.profile-remove-btn-v10 {
  min-height: 46px !important;
}
.profile-avatar-v10 {
  display: grid !important;
  place-items: center !important;
  border-radius: 24px !important;
  border: 1px solid var(--line) !important;
  background: var(--surface-2) !important;
  box-shadow: none !important;
}
.profile-avatar-v10 img,
.profile-avatar-v10 > span {
  width: 112px !important;
  height: 112px !important;
  border-radius: 50% !important;
}
.profile-avatar-v10 img {
  object-fit: cover !important;
  padding: 0 !important;
}
.profile-avatar-v10 > span {
  display: grid !important;
  place-items: center !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
}
.profile-logo-v10 {
  display: grid !important;
  place-items: center !important;
  border-radius: 24px !important;
  border: 1px solid var(--line) !important;
  background: var(--surface-2) !important;
}
.profile-logo-v10 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 22px !important;
}

.admin-profile-page-v31 { max-width: 1240px; }
.admin-profile-layout-v31 { align-items: start; }
.admin-profile-media-v31 { align-content: start; }
.admin-profile-photo-card-v31 {
  min-height: 0 !important;
  border-radius: 28px !important;
}
.admin-role-card-v31 {
  width: 100%;
  box-sizing: border-box;
  min-height: 210px;
  border-radius: 28px;
}
.admin-profile-info-v31 { min-height: 100%; }
.admin-profile-save-row-v31 { margin-top: 20px; }

@media (max-width: 820px) {
  .admin-profile-media-v31 { grid-template-columns: 1fr 1fr; }
  .admin-role-card-v31 { min-height: 100%; }
}

@media (max-width: 620px) {
  .admin-profile-media-v31 { grid-template-columns: 1fr; }
  .profile-avatar-v10,
  .profile-logo-v10 { height: 112px !important; }
  .profile-avatar-v10 img,
  .profile-avatar-v10 > span {
    width: 72px !important;
    height: 72px !important;
  }
  .admin-role-card-v31 { min-height: 150px; }
}


/* V32 — account security */
.auth-recovery-link{display:flex;justify-content:flex-end;margin-top:-6px;margin-bottom:2px}
.auth-recovery-link button{border:0;background:transparent;padding:0;color:var(--blue,#168af2);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.profile-security-card-v32{margin-top:18px;padding:24px}
.profile-security-card-v32 .profile-info-head-v10{margin-bottom:18px}
.profile-security-card-v32 .profile-save-row-v10{margin-top:20px}
@media (max-width:760px){.profile-security-card-v32{margin-top:14px;padding:18px}}


/* V33 — interactive production stages + revision requests */
.admin-kpi-link{
  width:100%;
  text-align:left;
  appearance:none;
  font:inherit;
  color:inherit;
  cursor:pointer;
  position:relative;
}
.admin-kpi-link small{
  display:flex;
  align-items:center;
  gap:5px;
  margin-top:8px;
  font-size:11px;
  font-weight:700;
  opacity:.58;
}
.admin-kpi-link small svg{width:13px;height:13px}
.admin-kpi-link:hover{
  transform:translateY(-2px);
  border-color:rgba(76,166,255,.48);
  background:rgba(255,255,255,.075);
}
.stage-filter-chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:12px 0 16px;
}
.stage-chip{
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  border-radius:999px;
  padding:9px 13px;
  font:inherit;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.stage-chip strong{margin-left:5px}
.stage-chip.active{
  background:var(--blue);
  color:#fff;
  border-color:var(--blue);
}
.revision-request-form{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--border);
}
.revision-request-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}
.revision-request-head strong{
  display:block;
  font-size:14px;
}
.revision-request-head span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
}
.revision-request-form textarea{
  min-height:105px;
  resize:vertical;
}
.revision-request-sent{
  margin-top:18px;
  padding:15px 16px;
  border-radius:16px;
  border:1px solid rgba(245,158,11,.28);
  background:rgba(245,158,11,.08);
}
.revision-request-sent strong{display:block;margin-bottom:5px}
.revision-request-sent p{margin:0;color:var(--muted);line-height:1.55}
.revision-admin-alert{
  border-color:rgba(245,158,11,.32)!important;
  background:linear-gradient(180deg,rgba(245,158,11,.08),transparent);
}
.revision-admin-message{
  font-size:15px;
  font-weight:700;
  line-height:1.6;
}
.revision-admin-meta{
  margin-top:10px;
  color:var(--muted);
  font-size:12px;
}
@media (max-width:760px){
  .stage-filter-chips{gap:6px;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}
  .stage-chip{white-space:nowrap}
  .admin-kpi-link small{display:none}
}


/* V34 — delivery link visibility */
.delivery-card-state{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  font-weight:800;
  border-radius:999px;
  padding:6px 9px;
}
.delivery-card-state svg{width:13px;height:13px}
.delivery-card-state.ready{
  color:#087443;
  background:rgba(16,185,129,.12);
}
.delivery-card-state.waiting{
  color:#96620a;
  background:rgba(245,158,11,.13);
}
.final-delivery-missing{
  border-color:rgba(245,158,11,.26)!important;
}
.delivery-missing-box{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:16px;
  border-radius:16px;
  background:rgba(245,158,11,.08);
  border:1px solid rgba(245,158,11,.22);
}
.delivery-missing-box>svg{
  width:22px;
  height:22px;
  flex:0 0 auto;
  margin-top:2px;
}
.delivery-missing-box strong{
  display:block;
  margin-bottom:5px;
}
.delivery-missing-box p{
  margin:0;
  color:var(--muted);
  line-height:1.55;
}
.delivery-admin-warning{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(239,68,68,.08);
  border:1px solid rgba(239,68,68,.18);
  color:#b42318;
  font-size:12px;
  font-weight:700;
}


/* =========================================================
   V35 — compact left profile media cards
   Keep preview/button widths aligned, but make the two left
   media cards clearly smaller than the information cards.
   ========================================================= */
@media (min-width: 821px) {
  .profile-layout-v10,
  .admin-profile-layout-v31 {
    grid-template-columns: 224px minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  .profile-media-stack-v10,
  .admin-profile-media-v31 {
    width: 224px !important;
    gap: 14px !important;
  }

  .profile-media-card-v10,
  .profile-photo-card-v10,
  .profile-logo-card-v10,
  .admin-profile-photo-card-v31 {
    width: 224px !important;
    min-height: 0 !important;
    padding: 16px !important;
    border-radius: 22px !important;
  }

  .profile-card-copy {
    margin-top: 4px !important;
    font-size: 10px !important;
    line-height: 1.45 !important;
  }

  .profile-avatar-v10,
  .profile-logo-v10 {
    width: 100% !important;
    height: 118px !important;
    margin: 14px 0 10px !important;
    border-radius: 18px !important;
  }

  .profile-avatar-v10 img,
  .profile-avatar-v10 > span {
    width: 86px !important;
    height: 86px !important;
  }

  .profile-logo-v10 img {
    padding: 16px !important;
  }

  .profile-media-actions-v10 {
    gap: 6px !important;
  }

  .profile-media-actions-v10 .btn,
  .profile-remove-btn-v10 {
    width: 100% !important;
    min-height: 40px !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    font-size: 12px !important;
  }

  .profile-help-v10 {
    margin-top: 8px !important;
    font-size: 9px !important;
    line-height: 1.45 !important;
  }

  .profile-info-stack-v10,
  .admin-profile-info-v31 {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (min-width: 821px) and (max-width: 1080px) {
  .profile-layout-v10,
  .admin-profile-layout-v31 {
    grid-template-columns: 210px minmax(0, 1fr) !important;
  }
  .profile-media-stack-v10,
  .admin-profile-media-v31,
  .profile-media-card-v10,
  .profile-photo-card-v10,
  .profile-logo-card-v10,
  .admin-profile-photo-card-v31 {
    width: 210px !important;
  }
}

@media (max-width: 820px) {
  .profile-media-card-v10 {
    min-height: 0 !important;
  }
}


/* V36 — forgot-password link placement */
.auth-form .auth-recovery-link{
  display:flex;
  justify-content:flex-end;
  margin:-6px 2px -2px 0;
}
.auth-form .auth-recovery-link button{
  border:0;
  background:transparent;
  padding:0;
  color:var(--blue,#168af2);
  font:inherit;
  font-size:12px;
  font-weight:700;
  line-height:1.35;
  cursor:pointer;
}
.auth-form .auth-recovery-link button:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}


/* Auth entry choices v37 */
.auth-box--entry { max-width: 430px; }
.auth-choice-stack { display: grid; gap: 12px; margin-top: 26px; }
.auth-choice-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 0;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.auth-choice-btn:hover { transform: translateY(-1px); }
.auth-choice-btn--login {
  background: linear-gradient(180deg,#2b9bf2 0%,#1588e8 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21,136,232,.22);
}
.auth-choice-btn--login:hover { box-shadow: 0 14px 30px rgba(21,136,232,.28); }
.auth-choice-btn--pricing {
  background: linear-gradient(135deg,#17191f 0%,#282a33 52%,#111217 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15,17,23,.22);
}
.auth-choice-btn--pricing:hover {
  box-shadow: 0 16px 34px rgba(15,17,23,.28);
  filter: brightness(1.04);
}
.auth-choice-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 21px;
  font-weight: 850;
  line-height: 1;
}
.auth-login-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .42s cubic-bezier(.22,.75,.18,1), opacity .28s ease;
}
.auth-login-panel-inner { min-height: 0; overflow: hidden; }
.auth-login-panel-content { padding: 4px 1px 8px; }
.auth-login-panel.is-open { grid-template-rows: 1fr; opacity: 1; }
.auth-login-panel.is-open .auth-login-panel-content { padding-top: 8px; }
.auth-login-panel .auth-form { padding-top: 6px; }
@media(max-width:820px){
  .auth-box--entry{max-width:420px}
  .auth-choice-stack{margin-top:22px}
}

.auth-choice-btn--login{
  overflow:hidden;
  max-height:48px;
  opacity:1;
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease,max-height .32s ease,opacity .22s ease,margin .32s ease,padding .32s ease;
}
.auth-choice-btn--login.is-hidden-after-open{
  max-height:0;
  min-height:0;
  opacity:0;
  margin:0;
  padding-top:0;
  padding-bottom:0;
  pointer-events:none;
}

.auth-choice-btn--register-pricing{
  margin-top:24px;
}


/* Content plans + credit wallet */
.plan-wallet-card{
  margin:0 0 18px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
  box-shadow:var(--shadow-sm);
}
.plan-wallet-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.plan-wallet-head h2{margin:4px 0 0;font-size:30px;letter-spacing:-.05em}
.plan-wallet-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.plan-wallet-grid>div{
  min-width:0;padding:13px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2);
  display:flex;flex-direction:column;gap:4px
}
.plan-wallet-grid span{font-size:9px;color:var(--muted);line-height:1.3}
.plan-wallet-grid strong{font-size:24px;line-height:1;letter-spacing:-.04em}
.plan-wallet-grid small{font-size:8px;color:var(--muted)}
.plan-wallet-foot{display:flex;align-items:center;justify-content:space-between;margin-top:10px;padding-top:12px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}
.plan-wallet-foot strong{color:var(--text);font-size:14px}
.plan-wallet-empty{display:flex;align-items:center;justify-content:space-between;gap:20px}
.plan-wallet-empty h2{margin:5px 0 7px;font-size:22px;letter-spacing:-.035em}
.plan-wallet-empty p{margin:0;color:var(--muted);font-size:10px;line-height:1.6}

/* Internal pricing selection */
.internal-pricing-current{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  margin:0 0 18px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface)
}
.internal-pricing-current strong{font-size:12px}
.internal-pricing-current span{font-size:9px;color:var(--muted)}
.internal-pricing-current.pending{border-color:rgba(119,121,255,.38)}
.internal-plan-select{
  width:100%;height:42px;margin-top:16px;border:0;border-radius:999px;
  background:var(--text);color:var(--surface);font-size:10px;font-weight:800;cursor:pointer
}
.internal-plan-card.featured .internal-plan-select:not(:disabled){background:#7779ff;color:#fff}
.internal-plan-select:hover:not(:disabled){transform:translateY(-1px)}
.internal-plan-select:disabled{cursor:default;opacity:.72}
.internal-plan-select.current{background:#1f9d61;color:#fff;opacity:1}
.internal-plan-select.pending{background:#7779ff;color:#fff;opacity:1}

/* New content order */
.order-credit-summary{
  display:grid;grid-template-columns:230px 1fr;gap:10px;margin-bottom:12px
}
.order-credit-plan,.order-credit-items{
  border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:16px
}
.order-credit-plan{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.order-credit-plan>span{font-size:9px;color:var(--muted)}
.order-credit-plan>strong{font-size:24px;letter-spacing:-.04em}
.order-credit-plan .mini-link{margin-top:auto}
.order-credit-items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.order-credit-items>div{padding:11px 12px;border-radius:11px;background:var(--surface-2);display:flex;align-items:center;justify-content:space-between;gap:10px}
.order-credit-items span{font-size:9px;color:var(--muted)}
.order-credit-items strong{font-size:20px}
.content-order-form{padding-top:20px}
.content-type-block{margin-bottom:22px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.field-label-row{margin-bottom:10px}
.field-label-row strong{display:block;font-size:11px}
.field-label-row span{display:block;margin-top:4px;font-size:9px;color:var(--muted)}
.content-type-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.content-type-option{
  position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;
  min-height:78px;padding:13px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2);
  cursor:pointer;transition:.16s ease
}
.content-type-option:hover{border-color:#8a8cff}
.content-type-option:has(input:checked){border-color:#7779ff;box-shadow:0 0 0 2px rgba(119,121,255,.10)}
.content-type-option.disabled{opacity:.42;cursor:not-allowed}
.content-type-option input{position:absolute;opacity:0;pointer-events:none}
.content-type-option-main{min-width:0}
.content-type-option-main strong{display:block;font-size:10px;line-height:1.25}
.content-type-option-main small{display:block;margin-top:4px;font-size:8px;line-height:1.35;color:var(--muted)}
.content-type-count{flex:0 0 auto;text-align:right}
.content-type-count b{display:block;font-size:20px;line-height:1}
.content-type-count small{display:block;margin-top:3px;font-size:8px;color:var(--muted)}
.no-plan-order{padding:28px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.no-plan-order h2{margin:2px 0;font-size:26px}
.no-plan-order p{max-width:560px;margin:0 0 8px;color:var(--muted);font-size:11px;line-height:1.65}

/* Admin plan requests */
.plan-request-list{display:grid;gap:10px}
.plan-request-card{padding:18px}
.plan-request-main{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(130px,.6fr) minmax(130px,.6fr);gap:14px;align-items:center}
.plan-request-main h3{margin:4px 0 3px;font-size:16px}
.plan-request-main p{margin:0;color:var(--muted);font-size:9px}
.plan-request-plan{padding:12px;border-radius:12px;background:var(--surface-2)}
.plan-request-plan span,.plan-request-plan small{display:block;font-size:8px;color:var(--muted)}
.plan-request-plan strong{display:block;margin:4px 0;font-size:18px}
.plan-request-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.plan-request-status{margin-top:13px;padding-top:13px;border-top:1px solid var(--line);font-size:9px;color:var(--muted);text-align:right}

@media(max-width:1000px){
  .plan-wallet-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .content-type-options{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  .plan-wallet-head,.plan-wallet-empty,.internal-pricing-current{align-items:flex-start;flex-direction:column}
  .plan-wallet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .order-credit-summary{grid-template-columns:1fr}
  .order-credit-items{grid-template-columns:repeat(2,minmax(0,1fr))}
  .content-type-options{grid-template-columns:1fr}
  .plan-request-main{grid-template-columns:1fr}
  .plan-request-actions .btn{flex:1}
}


.order-addon-credit-block{margin-bottom:22px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.order-addon-credit-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.order-addon-credit-option{
  display:flex;align-items:center;gap:10px;min-height:68px;padding:12px 13px;
  border:1px solid var(--line);border-radius:13px;background:var(--surface-2);cursor:pointer
}
.order-addon-credit-option:has(input:checked){border-color:#7779ff;box-shadow:0 0 0 2px rgba(119,121,255,.10)}
.order-addon-credit-option.disabled{opacity:.42;cursor:not-allowed}
.order-addon-credit-option input{width:16px;height:16px;accent-color:#7779ff}
.order-addon-credit-option>span{min-width:0;flex:1}
.order-addon-credit-option strong{display:block;font-size:10px}
.order-addon-credit-option small{display:block;margin-top:4px;color:var(--muted);font-size:8px;line-height:1.35}
.order-addon-credit-option>b{font-size:9px;white-space:nowrap}
@media(max-width:720px){
  .order-addon-credit-options{grid-template-columns:1fr}
}

.agent-plan-summary{display:grid;gap:12px}
.agent-plan-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.agent-plan-title strong{font-size:22px;letter-spacing:-.04em}
.agent-plan-title span{font-size:9px;color:var(--muted)}
.agent-plan-rights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.agent-plan-rights span{display:flex;align-items:center;justify-content:space-between;padding:9px 10px;border-radius:10px;background:var(--surface-2);font-size:9px;color:var(--muted)}
.agent-plan-rights b{font-size:12px;color:var(--text)}

.admin-plan-assign{margin-top:14px;padding-top:14px;border-top:1px solid var(--line);display:grid;gap:9px}
.admin-plan-assign label{font-size:9px;font-weight:700;color:var(--muted)}
.admin-plan-assign select{width:100%;height:40px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--text);padding:0 10px;font-size:10px;outline:none}
.admin-plan-assign select:focus{border-color:#7779ff;box-shadow:0 0 0 3px rgba(119,121,255,.08)}
.admin-plan-assign p{margin:0;color:var(--muted);font-size:8px;line-height:1.5}
.admin-plan-assign .btn{width:100%;justify-content:center}


/* Smart content-specific order fields */
.smart-order-fields{
  margin:0 0 22px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--surface-2);
}
.smart-order-fields[hidden]{display:none!important}
.smart-order-fields-head{margin-bottom:15px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.smart-order-fields-head strong{display:block;font-size:12px}
.smart-order-fields-head span{display:block;margin-top:4px;color:var(--muted);font-size:9px;line-height:1.5}
.smart-order-common{margin-top:2px}

.admin-custom-credit{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--line);
  display:grid;
  gap:10px;
}
.admin-custom-credit-head strong{display:block;font-size:11px}
.admin-custom-credit-head span{display:block;margin-top:4px;color:var(--muted);font-size:8px;line-height:1.5}
.admin-custom-credit-grid{display:grid;grid-template-columns:minmax(0,1fr) 86px;gap:8px}
.admin-custom-credit .field{margin:0}
.admin-custom-credit select,
.admin-custom-credit input{
  width:100%;
  min-height:40px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface-2);
  color:var(--text);
  padding:0 10px;
  font-size:10px;
  outline:none;
}
.admin-custom-credit select:focus,
.admin-custom-credit input:focus{
  border-color:#7779ff;
  box-shadow:0 0 0 3px rgba(119,121,255,.08);
}
.admin-custom-credit p{margin:0;color:var(--muted);font-size:8px;line-height:1.5}
.admin-custom-credit .btn{width:100%;justify-content:center}
@media(max-width:720px){
  .admin-custom-credit-grid{grid-template-columns:1fr}
}
