/* Basha workspace 1.8 — text approval and responsive navigation. */
:root { --line:#e7e5df; --paper:#f6f6f3; --muted:#696960; }
body { background:var(--paper); }
button,a,input,textarea,select,summary { -webkit-tap-highlight-color:transparent; }
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline:3px solid #c9202f; outline-offset:3px; }
.topbar { gap:24px; padding:12px max(24px,calc((100vw - 1320px)/2)); min-height:80px; background:#fff; box-shadow:0 1px 0 rgba(0,0,0,.02); }
.brand-link { min-width:0; flex-shrink:1; gap:10px; }
.brand-copy { min-width:0; }
.brand-logo { width:44px; height:44px; flex-shrink:0; }
.brand-title { font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.5; }
.main-nav { align-items:center; gap:3px; min-width:0; }
.main-nav a { font-size:13px; padding:11px 10px; white-space:nowrap; }
.main-nav a[aria-current="page"] { background:#fff0f1; color:#a91623; }
.topbar-actions { margin-inline-start:auto; flex-wrap:nowrap; flex-shrink:0; gap:9px; }
.notification-link { height:44px; width:44px; padding:0; justify-content:center; border-radius:12px; }
.notification-count { position:absolute; top:-4px; inset-inline-end:-4px; min-width:19px; height:19px; font-size:10px; border:2px solid #fff; padding:0 4px; }
.desktop-account-actions { display:none; }
.mobile-menu { position:relative; }
.mobile-menu>summary { list-style:none; display:flex; align-items:center; justify-content:center; height:44px; width:44px; border:1px solid var(--line); border-radius:12px; cursor:pointer; background:#fff; }
.mobile-menu>summary::-webkit-details-marker { display:none; }
.mobile-menu[open]>summary { background:#f4f3f0; }
.mobile-menu-panel { position:absolute; top:calc(100% + 15px); inset-inline-end:0; width:min(340px,calc(100vw - 24px)); max-height:calc(100dvh - 96px); overflow:auto; padding:16px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 20px 70px rgba(24,24,18,.17); z-index:30; }
.mobile-menu-user { display:grid; gap:4px; padding:4px 8px 14px; overflow-wrap:anywhere; }
.mobile-menu-user small { color:var(--muted); font-size:12px; }
.mobile-menu nav { display:grid; gap:4px; }
.mobile-menu nav a { padding:13px 12px; border-radius:10px; font-size:14px; font-weight:700; }
.mobile-menu nav a:hover { background:#f5f4f1; }
.mobile-menu nav a[aria-current="page"] { background:#fff0f1; color:#a91623; }
.mobile-menu-account { display:flex; flex-wrap:wrap; gap:8px; padding-top:14px; margin-top:12px; border-top:1px solid var(--line); }
.mobile-menu-account form { flex:1; }
.mobile-menu-account button { width:100%; min-height:44px; border:0; border-radius:10px; background:#f3f2ef; font-weight:700; padding:8px 12px; }
.page-shell { width:min(1200px,calc(100% - 48px)); padding:36px 0 60px; }
.section-head,.dashboard-head { margin-bottom:24px; gap:20px; }
.section-head>div,.dashboard-head>div,.overview-heading>div { min-width:0; }
.section-head h1,.dashboard-head h1,.content-detail-head h1 { font-size:clamp(27px,3vw,38px); line-height:1.4; letter-spacing:-.02em; overflow-wrap:anywhere; }
.section-head p,.dashboard-head p { max-width:680px; font-size:14px; margin:8px 0 0; }
.eyebrow { letter-spacing:.06em; line-height:1.7; }
.account-chip { min-width:180px; box-shadow:none; background:#fff; border-radius:14px; }
.stats-grid { gap:14px; }
.stat-card { padding:20px; border-radius:16px; box-shadow:none; gap:12px; }
.stat-card strong { font-size:30px; }
.card,.editor-card { border-radius:18px; padding:24px; box-shadow:0 4px 18px rgba(20,20,10,.02); min-width:0; }
.card h2 { font-size:20px; }
.primary-button,.primary-link,.ghost-link,.ghost-button,.danger-button,.approve-button { min-height:44px; font-size:13px; line-height:1.6; }
.content-overview-section { margin-top:36px; padding-top:28px; border-top:1px solid var(--line); }
.overview-heading { align-items:center; margin-bottom:18px; }
.overview-heading h2 { font-size:25px; line-height:1.5; }
.overview-heading p { color:var(--muted); font-size:13px; line-height:1.8; margin:5px 0 0; max-width:680px; }
.content-card-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.content-card-grid>.empty-state { grid-column:1/-1; }
.content-preview-card { padding:16px; border-radius:18px; box-shadow:0 3px 15px rgba(20,20,10,.025); }
.content-card-body h3 { font-size:19px; overflow-wrap:anywhere; }
.content-card-top { align-items:center; }
.content-card-body p,.comment-item p,.timeline-item p,.caption-preview { overflow-wrap:anywhere; }
.content-card-footer>span { min-width:0; overflow-wrap:anywhere; }
.content-card-review { border-top:1px solid var(--line); padding-top:12px; margin-top:12px; }
.content-card-review .approve-button { width:100%; }
.writing-card { border-top:3px solid #d3ad69; background:#fffefa; }
.writing-card .content-card-type { color:#8a6325; }
.writing-card .content-card-body { padding:16px 4px 24px; }
.writing-card .content-card-body p { font-size:15px; color:#3d3d35; -webkit-line-clamp:5; line-height:1.9; }
.writing-card .content-card-date { margin-bottom:12px; }
.section-count { display:inline-flex; align-items:center; justify-content:center; min-width:30px; height:30px; padding:0 8px; font-size:15px; border-radius:9px; background:#fff0d7; color:#8a5200; vertical-align:middle; }
.review-queue { padding:24px; border:1px solid #ebdbbb; border-radius:20px; background:#fbf8f1; }
.queue-links { display:flex; gap:20px; margin-top:18px; flex-wrap:wrap; }
.text-ready-notice { display:flex; justify-content:space-between; gap:12px; padding:14px 18px; border-radius:12px; background:#eaf5ed; color:#1b6338; font-size:14px; margin-bottom:18px; }
.writing-detail-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:20px; margin-bottom:20px; align-items:start; }
.writing-action-card { position:sticky; top:104px; }
.text-reading-card .caption-preview { min-height:260px; background:#fffefa; border-color:#eee6d5; padding:24px; font-size:17px; line-height:2.1; }
.workflow-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0 0 24px; padding:0; list-style:none; }
.workflow-steps li { display:flex; align-items:center; gap:10px; padding:14px; border:1px solid var(--line); border-radius:12px; background:#fafaf8; color:var(--muted); font-size:13px; }
.workflow-steps li span { font-size:12px; font-weight:800; opacity:.65; }
.workflow-steps .is-current { background:#fff8e9; color:#80602d; border-color:#e8d6b3; font-weight:800; }
.approve-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:100%; border:1px solid #1c6d3b; background:#217542; color:#fff; border-radius:11px; padding:12px 16px; font-weight:800; cursor:pointer; }
.approve-button:hover { background:#185d33; }
.approve-button:disabled,form[data-submit-once] button:disabled { cursor:wait; opacity:.65; }
.review-primary p { margin:0 0 16px; font-size:14px; line-height:1.8; }
.review-alternatives { margin-top:18px; border-top:1px solid var(--line); padding-top:16px; }
.review-alternatives>summary { cursor:pointer; min-height:36px; font-size:13px; font-weight:750; color:#626257; }
.review-alternatives .review-decision-form { margin-top:12px; gap:14px; }
.review-choice { padding:13px; }
.review-choice:has(input:focus-visible) { outline:3px solid #c9202f; outline-offset:3px; }
.source-text-card { margin-bottom:20px; }
.source-text-card>summary,.system-card>summary { cursor:pointer; font-weight:800; line-height:1.8; }
.source-text-card .caption-preview { margin-top:12px; }
.system-section .system-card { max-width:none; box-shadow:none; background:transparent; }
.system-card>summary { font-size:14px; color:var(--muted); }
.filter-row { gap:8px; margin-bottom:24px; }
.filter-chip { display:inline-flex; align-items:center; min-height:40px; }
.form-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.writing-editor { margin-inline:auto; }
.card-head { flex-wrap:wrap; }
.detail-grid,.workflow-grid,.history-grid,.account-grid { min-width:0; }
.compact-dl dd,.settings-list dd,.media-file-meta strong,.notification-copy,.notification-copy span { overflow-wrap:anywhere; }
@media(max-width:1199px) {
  .main-nav { display:none; }
  .topbar { padding-inline:24px; }
  .content-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:900px) {
  .writing-detail-grid { grid-template-columns:1fr; }
  .writing-action-card { position:static; }
  .account-chip { width:auto; min-width:0; }
  .dashboard-head { flex-direction:row; align-items:center; }
  .detail-grid,.workflow-grid,.history-grid { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:640px) {
  .topbar { min-height:72px; padding:12px; gap:12px; }
  .brand-link { flex:1; }
  .brand-logo { width:38px; height:38px; }
  .brand-kicker { display:none; }
  .brand-title { font-size:14px; margin-top:0; }
  .topbar-actions { gap:8px; margin-inline-start:0; }
  .page-shell { width:calc(100% - 28px); padding-top:24px; }
  .dashboard-head { flex-direction:column; align-items:flex-start; gap:10px; }
  .account-chip { padding:7px 12px; display:flex; align-items:center; gap:8px; }
  .account-chip small { margin:0; font-size:11px; }
  .account-chip strong { font-size:12px; }
  .section-head h1,.dashboard-head h1,.content-detail-head h1 { font-size:27px; }
  .section-head { gap:14px; }
  .section-head>.primary-link { width:100%; }
  .stats-grid { gap:10px; }
  .stat-card { padding:14px; border-radius:14px; }
  .stat-card span { font-size:11px; }
  .stat-card strong { font-size:27px; }
  .content-overview-section { margin-top:28px; padding-top:22px; }
  .overview-heading { align-items:flex-start; flex-direction:column; gap:12px; }
  .overview-heading h2 { font-size:23px; }
  .card-head-actions { width:100%; }
  .card-head-actions>a { flex:1; }
  .content-card-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
  .content-preview-card { padding:14px; }
  .content-card-media { aspect-ratio:1/1; }
  .content-card-body h3 { font-size:18px; }
  .review-queue { padding:16px; }
  .card,.editor-card { padding:18px; border-radius:16px; }
  .workflow-steps { gap:6px; margin-bottom:18px; }
  .workflow-steps li { flex-direction:column; align-items:flex-start; gap:5px; padding:10px; font-size:11px; line-height:1.6; }
  .text-reading-card .caption-preview { padding:18px; font-size:16px; }
  .writing-action-card .primary-button,.writing-action-card .primary-link { width:100%; }
  .detail-actions { width:100%; gap:8px; }
  .detail-actions>* { flex:1 1 44%; }
  .detail-meta { font-size:12px; }
  .comment-item>div { flex-wrap:wrap; }
  .compact-dl>div,.settings-list>div { gap:12px; }
  .form-actions>.primary-button { flex:1; }
}

.brand-title-short { display:none; }
@media(max-width:640px) { .brand-title-full { display:none; } .brand-title-short { display:inline; } }
