/* ============================================================
   Y+ Studio — Dashboard (Dashboard.dc.html identity)
   ============================================================ */
.dash-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 14px 28px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); flex: 0 0 auto; }
.brand .wordmark { font-weight: 700; font-size: 15px; }
.grow { flex: 1; }

.theme-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--muted); font: inherit; font-size: 12px; letter-spacing: .03em; cursor: pointer; }
.theme-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.plan-chip { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 6px 10px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-ink); }
.storage-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.storage-btn .bar { width: 46px; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; display: inline-block; }
.storage-btn .fill { display: block; width: 0; height: 100%; background: var(--accent); }

.dash-shell { max-width: 1140px; margin: 0 auto; padding: 40px 28px 80px; }
.dash-shell h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: -0.02em; font-weight: 700; }
.dash-shell .sub { margin: 0 0 4px; color: var(--muted); font-size: 15px; }
.dash-shell .sub.mini { margin: 0 0 22px; font-size: 12px; letter-spacing: .02em; }

/* Create card */
.create-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 22px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.create-card .ccl { flex: 1; min-width: 220px; }
.create-card .cct { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.create-card .ccd { color: var(--muted); font-size: 14px; }
.create-card .startin { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* Segmented controls */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.seg button { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border: 0; background: var(--surface); color: var(--muted); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.active { background: var(--accent); color: #fff; }
.seg.sort button { height: 38px; padding: 0 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }

.btn-accent { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border: 0; border-radius: var(--r-md); background: var(--accent); color: #fff; text-decoration: none; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.btn-accent:hover { background: var(--accent-ink); }

/* Recents */
.recents { margin-top: 44px; }
.recents-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.recents-head h2 { margin: 0; font-size: 18px; letter-spacing: -0.01em; }
.count { font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); padding: 3px 9px; border-radius: var(--r-sm); }
.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); min-width: 200px; }
.search input { border: 0; background: transparent; outline: none; font: inherit; font-size: 13px; color: var(--ink); width: 100%; padding: 0; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.card:hover { border-color: var(--line-strong); }
.card .thumb { display: block; height: 138px; position: relative; text-decoration: none; border-bottom: 1px solid var(--line); background: var(--surface-2); overflow: hidden; }
.card .thumb-svg, .card .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .kind { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px 7px; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 9px; }
.card .row { display: flex; align-items: center; gap: 6px; position: relative; }
.card .name { font-weight: 700; font-size: 14px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.card .chips { display: flex; gap: 6px; }
.card .chip { font-size: 10px; font-weight: 500; padding: 3px 8px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--muted); }
.card .chip.on { background: var(--accent-soft); color: var(--accent-ink); }

.kebab { width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: transparent; border-radius: var(--r-sm); color: var(--muted); cursor: pointer; }
.kebab:hover { background: var(--surface-2); }
.card .menu { position: absolute; right: 0; top: 32px; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-pop); padding: 6px; min-width: 150px; display: flex; flex-direction: column; }
.card .menu[hidden] { display: none; }
.card .menu button { text-align: left; padding: 9px 12px; border: 0; background: transparent; border-radius: var(--r-sm); font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.card .menu button:hover { background: var(--surface-2); }
.card .menu button.danger { color: var(--danger); }

.empty { grid-column: 1/-1; padding: 48px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--r-md); font-size: 14px; }
