/* Suki > Desktop view */
#app[data-view="desktop"] #composer { display: none; }
#app[data-view="desktop"] #new-chat { display: none; }
#desktop-toggle.on { color: #fff; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.10); }

.dk-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 0 6px; }
.dk-head h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0; line-height: 1; }
.dk-tabs { margin: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.dk-tabs button { white-space: nowrap; }
.dk-tabs button:disabled { opacity: .45; cursor: default; }
.dk-tabs small { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; margin-left: 6px; opacity: .8; }

.dk-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; padding: 16px 0 60px; align-items: start; }
.dk-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 900px) { .dk-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .dk-row { flex-wrap: wrap; } .dk-slider, .dk-select { max-width: none; width: 100%; } }

.dk-card { padding: 18px 20px; border-radius: var(--r); background: var(--card); }
.dk-card.is-off .dk-card-body { opacity: .4; pointer-events: none; }
.dk-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.dk-card-head h6 { margin: 0; }
.dk-note { font-size: 12px; margin-top: 10px; }
.dk-loading { padding: 20px 0; }

.dk-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); min-height: 44px; }
.dk-card-head + .dk-card-body .dk-row:first-child, .dk-card h6 + .dk-row { border-top: 0; }
.dk-label { color: #e4e3df; font-size: 13.5px; display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.dk-label small { color: var(--faint); font-size: 11.5px; }
.dk-seg { margin: 0; }
.dk-seg button { padding: 5px 12px; font-size: 12.5px; }

/* iOS-style switch */
.dk-switch { width: 44px; height: 26px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.14); position: relative; flex-shrink: 0; transition: background .25s cubic-bezier(.32,.72,0,1); }
.dk-switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .3s cubic-bezier(.32,.72,0,1); }
.dk-switch.on { background: #e9e8e4; }
.dk-switch.on i { transform: translateX(18px); background: #111; }

.dk-slider { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 260px; }
.dk-slider output { min-width: 48px; text-align: right; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.dk-slider input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 99px; background: rgba(255,255,255,.14); outline: none; }
.dk-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); cursor: pointer; transition: transform .15s; }
.dk-slider input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }

.dk-select, .dk-num { background: rgba(255,255,255,.05); border: 1px solid var(--card-line); border-radius: 10px; padding: 7px 10px; font-size: 13px; max-width: 260px; min-width: 0; outline: none; }
.dk-select { flex: 1; }
.dk-select option { background: #1b1b1e; color: var(--text); }
.dk-select:focus, .dk-num:focus { border-color: rgba(255,255,255,.28); }
.dk-num { width: 84px; }
.dk-pair { display: flex; gap: 12px; }
.dk-pair label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.dk-color { width: 40px; height: 28px; border: 1px solid var(--card-line); border-radius: 8px; background: none; padding: 2px; cursor: pointer; }
.dk-color::-webkit-color-swatch-wrapper { padding: 0; }
.dk-color::-webkit-color-swatch { border: 0; border-radius: 6px; }

.dk-anchor { display: grid; grid-template-columns: repeat(3, 30px); gap: 5px; padding: 6px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--card-line); }
.dk-anchor button { width: 30px; height: 20px; border-radius: 6px; border: 0; background: rgba(255,255,255,.06); display: grid; place-items: center; padding: 0; transition: background .2s; }
.dk-anchor button i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); }
.dk-anchor button:hover { background: rgba(255,255,255,.12); }
.dk-anchor button.on { background: #e9e8e4; }
.dk-anchor button.on i { background: #111; }

.dk-lines { display: flex; flex-direction: column; gap: 8px; padding: 12px 0 4px; border-top: 1px solid var(--line); }
.dk-lines > .dk-label { margin-bottom: 2px; }
.dk-line { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 8px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--card-line); transition: background .2s, border-color .2s; }
.dk-line.over { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.28); }
.dk-line-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: var(--faint); background: rgba(255,255,255,.05); flex-shrink: 0; }
.dk-chips { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; min-width: 0; }
.dk-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid var(--card-line); cursor: grab; font-size: 13px; user-select: none; transition: opacity .2s, background .2s; }
.dk-chip.over { background: rgba(255,255,255,.18); }
.dk-chip.off { opacity: .5; }
.dk-chip.dragging { opacity: .3; }
.dk-line .dk-seg button { min-width: 34px; }
.dk-line-new { justify-content: center; color: var(--faint); font-size: 12.5px; border-style: dashed; background: transparent; }
.dk-order { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.dk-order li { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--card-line); cursor: grab; font-size: 13px; transition: opacity .2s, transform .2s; }
.dk-order li small { margin-left: auto; color: var(--faint); font-size: 11px; }
.dk-order li.off { opacity: .55; }
.dk-order li.dragging { opacity: .35; }
.dk-grip { color: var(--faint); letter-spacing: -2px; font-size: 12px; }

.dk-preview { position: relative; width: 100%; border-radius: 14px; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #3a3a40 0%, #1a1a1d 55%, #0e0e10 100%); border: 1px solid var(--card-line); }
.dk-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.dk-pv-clock { transition: opacity .3s; }

.dk-applist { resize: vertical; font-family: inherit; color: inherit; line-height: 1.4; min-height: 52px; }

/* page reorder arrows (Island > Pages) */
.dk-pair .seg-btn { all: unset; box-sizing: border-box; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: var(--text, #f3f2ef); font-size: 15px; line-height: 1; cursor: pointer; transition: background .15s, border-color .15s; }
.dk-pair .seg-btn:hover { background: rgba(201,195,230,.18); border-color: rgba(201,195,230,.4); }
.dk-pair .seg-btn:active { transform: scale(.94); }
.dk-pair { align-items: center; }

.dk-btn { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: var(--text); border-radius: 10px; padding: 7px 14px; font-size: 12.5px; cursor: pointer; white-space: nowrap; transition: background .15s; }
.dk-btn:hover { background: rgba(255,255,255,.13); }
.dk-btn:disabled { opacity: .5; cursor: default; }
.dk-btn[hidden] { display: none; }

/* Taskbar tab: status line turns amber on trouble (crash guard, element not found) */
.dk-note.dk-warn { color: #e8b86b; }
