/* Dashboard-only layout; the individual admin tools keep their existing styling. */
.admin-hub, .admin-traffic { --light-muted:#526176; }
.admin-navigation { display:flex; flex-wrap:wrap; gap:6px; padding:8px; margin-bottom:28px; background:#edf2f7; border:1px solid #dce4ee; border-radius:14px; }
.admin-navigation a { padding:10px 14px; border-radius:9px; color:#526176; font-size:.85rem; font-weight:700; white-space:nowrap; }
.admin-navigation a[aria-current="page"] { color:#fff; background:var(--navy); box-shadow:0 2px 4px #142b4920; }
.admin-navigation a:hover:not([aria-current]) { background:white; color:var(--navy); }
.admin-navigation { position:relative; align-items:center; }
.workspace-menu-group { position:relative; }
.workspace-menu-group summary { display:flex; align-items:center; gap:10px; list-style:none; cursor:pointer; padding:10px 14px; border-radius:9px; color:#526176; font-size:.85rem; font-weight:700; }
.workspace-menu-group summary::-webkit-details-marker { display:none; }
.workspace-menu-chevron { font-size:1rem; line-height:1; }
.workspace-menu-group[open] summary, .workspace-menu-group.is-current summary { color:white; background:var(--navy); }
.workspace-menu-group summary:focus-visible, .staff-summary-link:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
.workspace-submenu { position:absolute; top:calc(100% + 8px); left:0; z-index:30; width:230px; padding:6px; background:white; border:1px solid #dce4ee; border-radius:12px; box-shadow:0 12px 28px #142b4920; }
.workspace-submenu a { display:block; white-space:normal; }
.staff-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:24px 0; }
.staff-summary .box { margin:0; padding:22px; min-width:0; border:1px solid #dce4ee; }
.staff-summary .heading { color:#526176; font-size:.82rem; margin-bottom:10px; }
.staff-summary .title { margin:0; font-size:2rem; color:var(--navy); overflow-wrap:anywhere; }
.staff-summary-link { display:block; }
.staff-summary-link span { display:block; color:var(--blue); font-size:.8rem; margin-top:8px; }
.staff-summary-link:hover { border-color:var(--blue); }
.staff-quick-actions { margin:28px 0; }
.staff-workspace-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
.sold-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
.sold-listing-filters { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto; gap:14px; align-items:end; }
.sold-listing-filters .field { min-width:0; margin:0; }
.sold-listing-filters .buttons { margin-bottom:0; }
.sold-listing-filters .button { margin-bottom:0; }
.sold-pagination { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:22px; flex-wrap:wrap; }
.staff-goal { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:22px; margin:24px 0; background:#fff5e4; border:1px solid #f2dcb6; border-radius:14px; }
.staff-goal .title { margin:4px 0 8px; }
.staff-goal-progress { min-width:240px; max-width:100%; }
.staff-goal progress { display:block; width:100%; height:12px; margin-top:12px; appearance:none; border:0; border-radius:6px; overflow:hidden; background:#eadfc9; accent-color:#ed9b13; }
.staff-goal progress::-webkit-progress-bar { background:#eadfc9; border-radius:6px; }
.staff-goal progress::-webkit-progress-value { background:#ed9b13; border-radius:6px; }
.staff-goal progress::-moz-progress-bar { background:#ed9b13; border-radius:6px; }
.staff-noticeboard { margin:24px 0; padding:24px; background:#fff; border:1px solid #dce4ee; border-radius:14px; }
.staff-noticeboard .title { margin:0; }
.staff-notice-grid, .staff-guide-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.staff-notice { padding:20px; border-radius:10px; background:#f5f8fb; border-top:3px solid #efac37; min-width:0; }
.staff-notice h3 { font-size:1rem; font-weight:800; margin:5px 0 14px; color:var(--navy); }
.staff-notice-text { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; }
.staff-plan-editor { margin-top:20px; border-top:1px solid #e2e8ef; padding-top:16px; }
.staff-plan-editor summary, .staff-working-guide summary { cursor:pointer; font-weight:700; color:var(--navy); }
.staff-plan-editor form { margin-top:20px; }
.staff-action-counts { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; }
.staff-action-counts span { padding:6px 10px; border-radius:7px; background:#edf3f8; font-size:.8rem; color:#40546d; }
.staff-action-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px; padding:18px 0; border-top:1px solid #e2e8ef; }
.staff-action-row p { margin:6px 0; overflow-wrap:anywhere; }
.staff-action-kind { font-size:.8rem; color:#5a6e86; }
.staff-action-date { display:flex; flex-direction:column; align-items:flex-end; gap:6px; font-size:.82rem; }
.staff-working-guide { margin:24px 0; padding:20px 24px; border:1px solid #dce4ee; border-radius:14px; background:white; }
.staff-guide-grid { margin-top:22px; }
.staff-guide-grid ol { padding-left:22px; line-height:1.9; }
@media (max-width:900px) {
  .staff-summary, .sold-listing-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:650px) {
  .staff-goal { flex-direction:column; align-items:stretch; padding:18px; gap:16px; }
  .staff-goal-progress { min-width:0; }
  .staff-notice-grid, .staff-guide-grid { grid-template-columns:1fr; }
  .staff-noticeboard, .staff-working-guide { padding:18px; }
  .staff-action-row { grid-template-columns:1fr; gap:10px; }
  .staff-action-date { flex-direction:row; align-items:center; flex-wrap:wrap; justify-content:flex-start; }
  .workspace-menu-group { position:static; }
  .workspace-menu-group summary { padding:8px 10px; font-size:.78rem; }
  .workspace-submenu { top:calc(100% + 6px); left:6px; right:6px; width:auto; }
  .staff-summary { gap:10px; }
  .staff-summary .box { padding:16px 12px; }
  .staff-summary .title { font-size:1.6rem; }
  .sold-listing-filters { grid-template-columns:1fr; }
  .sold-listing-filters .select, .sold-listing-filters select { max-width:100%; }
}
.admin-hub-header { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.admin-hub-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:24px 0 34px; }
.admin-hub-stats a { display:flex; flex-direction:column; gap:6px; background:var(--navy); color:white; border-radius:14px; padding:22px; }
.admin-hub-stats strong { font-size:2rem; line-height:1.2; }
.admin-hub-stats span { color:#d8e2ee; font-size:.85rem; }
.admin-menu-group { margin-bottom:30px; }
.admin-menu-group > h2 { font-size:1rem; font-weight:800; margin-bottom:12px; color:var(--navy); }
.admin-menu-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.admin-menu-grid-two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.admin-menu-card { display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:start; gap:12px; padding:22px 18px; color:var(--navy); background:white; border:1px solid #dce4ee; border-radius:14px; box-shadow:0 3px 12px #142b4905; transition:background .15s,border-color .15s; }
.admin-menu-card:hover { background:#f8fbfe; border-color:var(--blue); }
.admin-menu-icon { display:grid; place-items:center; width:36px; height:36px; border-radius:10px; background:#eaf1f8; color:var(--blue); font-size:.8rem; font-weight:800; }
.admin-menu-card h3 { font-size:1rem; font-weight:800; line-height:1.35; margin-bottom:6px; }
.admin-menu-card p { font-size:.85rem; line-height:1.55; color:#526176; margin-bottom:12px; }
.admin-menu-badge { display:inline-block; padding:4px 8px; background:#fff2e2; border-radius:6px; color:#8a4514; font-size:.75rem; font-weight:700; }
.admin-menu-action { color:var(--blue); font-size:.78rem; font-weight:700; }
.admin-menu-card > span:last-child { color:#71839a; }
.admin-hub a:focus-visible, .admin-navigation a:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
.admin-traffic-split { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.admin-traffic-row { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid #edf2f7; color:#526176; }
.admin-traffic-row strong { color:var(--navy); }
.admin-traffic-chart { display:flex; align-items:stretch; gap:3px; height:160px; padding-top:12px; border-bottom:1px solid #dce4ee; }
.admin-traffic-bar { flex:1; min-width:0; display:flex; align-items:flex-end; }
.admin-traffic-bar span { display:block; width:100%; border-radius:3px 3px 0 0; background:#2465a8; }
.admin-chart-caption { display:flex; justify-content:space-between; color:#526176; font-size:.75rem; margin-top:8px; }
.admin-traffic-details { margin-top:18px; }
.admin-traffic-details summary { cursor:pointer; font-weight:700; color:var(--blue); }
.admin-campaign-form { display:grid; grid-template-columns: minmax(0,2fr) minmax(0,1.5fr) auto; align-items:end; gap:14px; margin:24px 0; padding:20px; background:#f4f7fa; border-radius:12px; }
.admin-campaign-form .field { margin:0; min-width:0; }
.admin-campaign-form .select, .admin-campaign-form select { max-width:100%; }
.admin-campaign-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.admin-campaign-card { display:grid; grid-template-columns:minmax(0,1fr) 100px; gap:16px; padding:18px; border:1px solid #dce4ee; border-radius:12px; align-items:center; min-width:0; }
.admin-campaign-card h3 { margin:4px 0 8px; font-size:1rem; font-weight:800; overflow-wrap:anywhere; }
.admin-campaign-card p { color:#526176; font-size:.85rem; margin-bottom:12px; }
.admin-campaign-card img { width:100px; height:100px; max-width:100%; }
.admin-campaign-card input { min-width:0; }
@media (max-width:1050px) {
  .admin-menu-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-campaign-list { grid-template-columns:1fr; }
  .admin-campaign-form { grid-template-columns:1fr 1fr; }
  .admin-campaign-form button { grid-column:1 / -1; justify-self:start; }
}
@media (max-width:650px) {
  .admin-navigation { gap:4px; padding:6px; }
  .admin-navigation a { padding:8px 10px; font-size:.78rem; }
  .admin-hub-header { flex-direction:column; }
  .admin-hub-stats { grid-template-columns:1fr 1fr; gap:10px; }
  .admin-hub-stats a { padding:16px; }
  .admin-hub-stats span { font-size:.78rem; }
  .admin-menu-grid, .admin-traffic-split, .admin-campaign-form { grid-template-columns:1fr; }
  .admin-menu-card { padding:18px 16px; }
  .admin-campaign-card { grid-template-columns:minmax(0,1fr) 74px; gap:10px; padding:14px; }
  .admin-campaign-card img { width:74px; height:74px; }
  .admin-campaign-card .button { white-space:normal; height:auto; text-align:left; }
  .admin-traffic .admin-summary, .admin-traffic .admin-metrics-totals { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .admin-traffic .admin-summary-card { padding:14px; }
  .admin-traffic .admin-summary-title { font-size:.85rem; }
  .admin-traffic .admin-summary-text { font-size:.75rem; }
  .admin-traffic .admin-metrics-totals > div { padding:12px; }
  .admin-traffic .admin-metrics-totals dt { font-size:.8rem; }
}
.admin-dashboard { --light-muted: #526176; }
.admin-dashboard [hidden] { display: none !important; }
.admin-dashboard .admin-dashboard-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.admin-dashboard .admin-dashboard-header h1 { margin-bottom: 8px; }
.admin-dashboard .admin-header-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.admin-dashboard .admin-dashboard-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.admin-dashboard .admin-overview-card { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; background: white; color: var(--navy); }
.admin-dashboard .admin-overview-number { grid-row: span 2; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.admin-dashboard .admin-overview-label { font-weight: 750; font-size: .95rem; }
.admin-dashboard .admin-overview-detail { color: var(--light-muted); font-size: .8rem; }
.admin-dashboard .admin-overview-attention { background: #fff8ef; border-color: #fed7aa; }
.admin-dashboard .admin-overview-attention .admin-overview-number { color: #c2410c; }
.admin-dashboard .admin-launch-section { margin-bottom: 28px; }
.admin-dashboard .admin-section-heading .title { margin-bottom: 6px; }
.admin-dashboard .admin-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-dashboard .admin-tool-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; color: var(--navy); transition: border-color .15s ease, background .15s ease; }
.admin-dashboard .admin-tool-label { color: var(--light-muted); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.admin-dashboard .admin-tool-card h3 { font-weight: 800; font-size: 1.1rem; }
.admin-dashboard .admin-tool-card p { color: var(--light-muted); font-size: .9rem; line-height: 1.5; margin-bottom: 6px; }
.admin-dashboard .admin-tool-action { margin-top: auto; color: var(--blue); font-weight: 750; font-size: .9rem; }
.admin-dashboard .admin-tool-card:hover { border-color: var(--blue); background: #f0f6fc; }
.admin-dashboard .admin-overview-card:hover { border-color: var(--blue); }
.admin-dashboard a:focus-visible, .admin-dashboard .admin-table-wrapper:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.admin-dashboard .admin-management-heading { margin-bottom: 18px; }
.admin-dashboard .admin-management-heading h2 { margin-bottom: 6px; }
.admin-dashboard .admin-management-heading p { color: var(--light-muted); }
.admin-dashboard .admin-record-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.admin-dashboard .admin-record-tabs a { display: flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--light-muted); font-weight: 750; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.admin-dashboard .admin-record-tabs a[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.admin-dashboard .admin-record-tabs a span { background: #edf2f7; padding: 2px 7px; border-radius: 6px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.admin-dashboard .admin-record-panel { scroll-margin-top: 20px; }
.admin-dashboard .admin-record-panel h2.title { font-size: 1.25rem; }
.admin-dashboard .admin-record-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.admin-dashboard .admin-record-controls label { display: block; color: var(--navy); font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
.admin-dashboard .admin-record-search { flex: 1 1 240px; }
.admin-dashboard .admin-record-filter { flex: 0 1 180px; }
.admin-dashboard .admin-record-result { color: var(--light-muted); font-size: .8rem; padding-bottom: 10px; }
.admin-dashboard .admin-table th { background: #f8fafc; padding: 12px 14px; white-space: nowrap; }
.admin-dashboard .admin-table td { padding: 14px; border-color: #edf2f7; }
.admin-dashboard .admin-table tbody tr:hover { background: #fbfdff; }
.admin-dashboard .admin-listing-status.sale_agreed { background: #e0f2fe; color: #075985; }
.admin-dashboard .admin-table-hint { display: none; color: var(--light-muted); font-size: .8rem; margin-bottom: 12px; }
@media (max-width: 1050px) {
  .admin-dashboard .admin-dashboard-header { flex-direction: column; gap: 12px; }
  .admin-dashboard .admin-overview-card { padding: 16px; gap: 4px 10px; }
  .admin-dashboard .admin-overview-detail { grid-column: 1 / -1; }
  .admin-dashboard .admin-overview-number { grid-row: auto; }
  .admin-dashboard .admin-table-hint { display: block; }
}
@media (max-width: 650px) {
  .admin-dashboard .admin-dashboard-overview { grid-template-columns: 1fr; gap: 10px; }
  .admin-dashboard .admin-overview-card { grid-template-columns: 44px 1fr; }
  .admin-dashboard .admin-overview-number { grid-row: span 2; }
  .admin-dashboard .admin-overview-detail { grid-column: 2; }
  .admin-dashboard .admin-tool-grid { grid-template-columns: 1fr; }
  .admin-dashboard .admin-tool-card { padding: 18px; }
  .admin-dashboard .admin-record-tabs { gap: 0; }
  .admin-dashboard .admin-record-tabs a { flex: 1; padding: 12px 8px; justify-content: center; flex-wrap: wrap; gap: 5px; font-size: .9rem; }
  .admin-dashboard .admin-record-filter { flex: 1 1 140px; }
  .admin-dashboard .admin-record-result { flex: 1 1 100%; padding-bottom: 0; }
  .admin-dashboard .admin-header-actions .button { font-size: .9rem; }
}

/* Staff activity trackers */
.activity-periods { display:flex; flex-wrap:wrap; gap:6px; padding:6px; margin:24px 0 12px; width:fit-content; background:#e8eef5; border:1px solid #d5dfeb; border-radius:12px; }
.activity-periods a { padding:10px 18px; border-radius:8px; color:#40546d; font-weight:700; font-size:.9rem; }
.activity-periods a[aria-current="page"] { background:var(--navy); color:white; }
.activity-periods a:hover:not([aria-current]) { background:white; }
.activity-periods a:focus-visible, .activity-card-link:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
.activity-range { color:#526176; font-size:.88rem; margin:0 0 24px; }
.activity-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-bottom:30px; }
.activity-card { display:flex; flex-direction:column; padding:26px; border:1px solid #dce4ee; border-top:4px solid #efac37; border-radius:14px; background:white; color:var(--navy); }
.activity-card:nth-child(2) { border-top-color:#4a83bf; }.activity-card:nth-child(3) { border-top-color:#38a174; }
.activity-card-label { font-size:.95rem; font-weight:700; }.activity-card strong { font-size:2.6rem; line-height:1.3; margin:12px 0; }
.activity-card p { font-size:.85rem; color:#526176; }.activity-card-link:hover { background:#f4faf7; }
.activity-message-counts { display:flex; flex-wrap:wrap; gap:16px; margin:18px 0; }.activity-message-counts div { min-width:150px; padding:16px 20px; border-radius:10px; background:#f1f5fa; }
.activity-message-counts strong { display:block; font-size:1.5rem; color:var(--navy); }.activity-message-counts span { font-size:.85rem; color:#526176; }
.seller-creator-note { margin-top:12px; color:#526176; }.seller-creator-note .tag { margin-left:8px; }
@media(max-width:700px) { .activity-cards { grid-template-columns:1fr; gap:12px; }.activity-card { padding:20px; }.activity-card strong { font-size:2.1rem; }.activity-periods { width:100%; }.activity-periods a { flex:1 0 auto; text-align:center; padding:9px 12px; }.activity-message-counts div { flex:1; } }
