/* Working-app additions on top of the mockup's styles (app.css). */
button.btn { font-family: 'League Spartan', sans-serif; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.danger { color: var(--bad); border-color: rgba(255, 90, 106, .4); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); padding: 10px 16px; border-radius: 8px; transition: transform .2s; z-index: 50; max-width: 90vw; }
.toast.show { transform: translate(-50%, 0); }
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: 20px; width: min(520px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(3, 5, 10, .75); }
dialog.wide { width: min(1200px, calc(100% - 24px)); padding: 0; }
dialog h2 { margin: 0 0 14px; font: 800 20px 'League Spartan', sans-serif; }
.input, select.input, textarea.input { width: 100%; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.seg button { background: var(--panel-2); color: var(--text-2); border: 0; padding: 8px 14px; font: 700 13px 'League Spartan', sans-serif; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.side-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.empty { padding: 30px; text-align: center; color: var(--text-3); border: 1px dashed var(--line-2); border-radius: var(--r); }
.drop { display: grid; place-items: center; gap: 4px; padding: 22px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--text-2); cursor: pointer; text-align: center; margin-bottom: 14px; }
.drop.over { border-color: var(--accent); background: rgba(61, 123, 255, .08); }
.uploads { display: grid; gap: 6px; margin-bottom: 14px; }
.up { display: grid; grid-template-columns: 1fr 160px; gap: 10px; align-items: center; font-size: 13px; }
.up .meter { height: 6px; }
.up.err { color: var(--bad); }
.tab { cursor: pointer; text-decoration: none; }
a.card { text-decoration: none; display: block; }
.pcard .frame { margin-bottom: 10px; }
.thumbimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame.file { display: grid; place-items: center; }
.frame.file b { position: relative; font: 800 16px 'League Spartan'; letter-spacing: .1em; color: var(--text-3); }
.ph { cursor: pointer; }
.ph .meta b { font-weight: 500; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.stars button { background: none; border: 0; color: var(--line-2); font-size: 18px; padding: 0 1px; cursor: pointer; }
.stars button.on { color: var(--warn); }
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 70vh; }
.viewer-media { background: #000; display: grid; place-items: center; min-height: 50vh; position: relative; }
.viewer-media img, .viewer-media video { max-width: 100%; max-height: 78vh; display: block; }
.viewer-side { padding: 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; overflow: auto; max-height: 86vh; }
.viewer-side h3 { margin: 0; font: 800 17px 'League Spartan'; word-break: break-all; }
.comments { flex: 1; min-height: 80px; }
.tc { cursor: pointer; background: none; border: 0; padding: 0; font: 500 12px 'IBM Plex Mono', monospace; color: var(--accent); }
.versions .list li { cursor: pointer; }
.versions .list li.on { color: #fff; }
.vrow { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; }
.vrow .frame { aspect-ratio: 16 / 9; }
.wm { z-index: 1; }
.pending { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-size: 12px; }
@media (max-width: 900px) { .viewer { grid-template-columns: 1fr; } .viewer-side { border-left: 0; border-top: 1px solid var(--line); max-height: none; } }
[hidden] { display: none !important; }
.tabs-set { margin-bottom: 16px; flex-wrap: wrap; }
.btn.opt { display: grid; gap: 3px; text-align: left; padding: 12px 14px; width: 100%; }
.btn.opt span { color: var(--text-3); font: 400 13px/1.4 Inter, system-ui, sans-serif; }
.list .dim { display: block; }
[data-tab="team"] .list li { flex-wrap: wrap; }
[data-tab="team"] .list .grow { min-width: 200px; }
.acts { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
@media (max-width: 600px) { .g2, .g3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .shell { grid-template-columns: minmax(0, 1fr); } .side { min-width: 0; } .nav { flex: 1 1 100%; min-width: 0; max-width: 100%; } }
/* calendar (from Studio Hub, in the dark theme) */
.cal-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.cal-month { margin: 0 6px; font: 800 20px 'League Spartan', sans-serif; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.cal-dow { padding: 6px 8px; font: 700 10px 'League Spartan', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 100px; padding: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.out { background: var(--bg); color: var(--text-3); }
.cal-day.today .cal-num { background: var(--accent); color: #fff; }
.cal-num { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.cal-ev { display: block; width: 100%; text-align: left; font: inherit; font-size: 11px; line-height: 1.3; padding: 2px 5px; border-radius: 4px; border: 1px solid rgba(61, 123, 255, .45); background: rgba(61, 123, 255, .16); color: var(--text); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev.other { background: var(--panel-2); border-color: var(--line-2); color: var(--text-2); }
.cal-more { font-size: 11px; color: var(--text-3); padding-left: 4px; }
.cal-when { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cal-when .input { margin-bottom: 6px; }
@media (max-width: 700px) { .cal-day { min-height: 54px; padding: 2px; } .cal-ev { font-size: 0; height: 6px; padding: 0; border-radius: 3px; } .cal-more { font-size: 9px; } .cal-when { grid-template-columns: 1fr; } }
/* client page and project covers */
.client-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.client-hero h1 { margin: 2px 0 4px; font: 900 34px 'League Spartan', sans-serif; }
.hero-av { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); font: 800 34px 'League Spartan', sans-serif; color: var(--text-2); flex: none; }
.head-row { display: flex; gap: 16px; align-items: center; }
.cover-box { width: 120px; flex: none; }
.cover-box .frame { margin: 0; }
.cover-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tab.extra { border-style: dashed; }
.ph .chips { display: flex; gap: 4px; flex-wrap: wrap; padding: 0 10px 10px; }
.ph .chips .pill, .vrow .pill { font-size: 10px; padding: 2px 7px; }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 56px; border: 0; border-radius: 8px; background: rgba(7, 9, 15, .55); color: #fff; font-size: 30px; cursor: pointer; }
.nav-btn.prev { left: 10px; } .nav-btn.next { right: 10px; }
@media (max-width: 600px) { .head-row { flex-direction: column; align-items: flex-start; } }
