/* DriveCOM driver-app shared styles
   Used by both iOS and Android mocks. Mobile-only.
   ---------------------------------------------------- */

:root {
  --dc-blue:    #3953A4;
  --dc-blue-2:  #2C4188;
  --dc-orange:  #F15B26;
  --dc-orange-2:#DC4A18;
  --dc-ink:     #0E1320;
  --dc-ink-2:   #2A3147;
  --dc-muted:   #5B6378;
  --dc-line:    #E6E8EE;
  --dc-bg:      #FFFFFF;
  --dc-bg-2:    #F4F5F9;
  --dc-bg-3:    #ECEEF4;

  --dc-online:  #22C55E;
  --dc-busy:    #F59E0B;
  --dc-offline: #94A3B8;

  --dc-radius:  18px;
  --dc-radius-sm: 12px;
}

/* dark mode tokens are applied by adding [data-theme="dark"] on the screen root */
[data-theme="dark"] {
  --dc-blue:    #6B82D9;
  --dc-blue-2:  #4F66B8;
  --dc-orange:  #FF7547;
  --dc-orange-2:#F15B26;
  --dc-ink:     #F1F3F8;
  --dc-ink-2:   #C7CCDA;
  --dc-muted:   #8891A8;
  --dc-line:    #232838;
  --dc-bg:      #0B0F1A;
  --dc-bg-2:    #131826;
  --dc-bg-3:    #1B2032;
}

.dc-screen {
  width: 100%;
  height: 100%;
  background: var(--dc-bg);
  color: var(--dc-ink);
  font-family: -apple-system, "SF Pro Text", "Inter Tight", "Roboto", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  /* clear iOS dynamic island / status bar by default; reduced for android via [data-os] */
  padding-top: 54px;
}
.dc-screen[data-os="android"] { padding-top: 32px; }
.dc-screen, .dc-screen * { box-sizing: border-box; }

/* ===== App header ===== */
.dc-appbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 12px;
  background: var(--dc-bg);
  border-bottom: 1px solid var(--dc-line);
}
.dc-appbar-title {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--dc-ink);
}
.dc-appbar-sub {
  font-size: 12px;
  color: var(--dc-muted);
  font-weight: 500;
  margin-top: 1px;
}
.dc-appbar-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--dc-bg-2);
  color: var(--dc-ink-2);
  flex-shrink: 0;
}
.dc-appbar-icon.primary { background: var(--dc-blue); color: #fff; }

/* ===== Channel pill (top-of-home context chrome) ===== */
.dc-channel-pill {
  margin: 14px 16px 0;
  background: var(--dc-bg-2);
  border: 1px solid var(--dc-line);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}
.dc-channel-pill .dot {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--dc-blue); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  letter-spacing: 0.04em;
}
.dc-channel-pill .meta { min-width: 0; }
.dc-channel-pill .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--dc-muted); font-weight: 600;
}
.dc-channel-pill .name {
  font-size: 16px; font-weight: 700; color: var(--dc-ink);
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dc-channel-pill .switch {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--dc-bg-3); display: grid; place-items: center;
  color: var(--dc-ink-2);
}

/* ===== Status row (signal + last spoken) ===== */
.dc-statusrow {
  margin: 14px 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dc-status-card {
  background: var(--dc-bg-2);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
}
.dc-status-card .ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--dc-bg-3); display: grid; place-items: center;
  color: var(--dc-ink-2); flex-shrink: 0;
}
.dc-status-card .ico.online { background: rgba(34,197,94,.14); color: var(--dc-online); }
.dc-status-card .lbl { font-size: 11px; color: var(--dc-muted); font-weight: 500; line-height: 1.2; }
.dc-status-card .val { font-size: 13px; font-weight: 700; color: var(--dc-ink); line-height: 1.2; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== PTT button (the hero) ===== */
.dc-ptt-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 0 24px;
  position: relative;
}
.dc-ptt-help {
  font-size: 13px;
  color: var(--dc-muted);
  font-weight: 500;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.dc-ptt-help b { color: var(--dc-ink); font-weight: 600; }

.dc-ptt {
  position: relative;
  width: var(--dc-ptt-size, 240px);
  height: var(--dc-ptt-size, 240px);
  display: grid; place-items: center;
}
.dc-ptt-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--dc-bg-3);
  pointer-events: none;
}
[data-ptt-rings="off"] .dc-ptt-ring { display: none; }
.dc-ptt-ring.ring-2 { inset: calc(var(--dc-ptt-size, 240px) * -0.092); opacity: 0.55; }
.dc-ptt-ring.ring-3 { inset: calc(var(--dc-ptt-size, 240px) * -0.183); opacity: 0.30; }

[data-ptt-label="off"] .dc-ptt-help,
[data-ptt-label="off"] .dc-ptt-label { display: none; }

.dc-ptt-btn {
  position: relative;
  width: calc(var(--dc-ptt-size, 240px) * 0.767);
  height: calc(var(--dc-ptt-size, 240px) * 0.767);
  border-radius: 50%;
  background: var(--dc-bg);
  box-shadow:
    0 30px 60px -10px color-mix(in oklab, var(--dc-ptt-color, #F15B26) calc(25% * var(--dc-ptt-glow, 1)), transparent),
    0 12px 24px -8px rgba(14, 19, 32, 0.18),
    inset 0 0 0 6px color-mix(in oklab, var(--dc-ptt-color, #F15B26) 8%, transparent);
  display: grid; place-items: center;
  border: 6px solid var(--dc-bg);
  outline: 2px solid color-mix(in oklab, var(--dc-ptt-color, #F15B26) 18%, transparent);
  outline-offset: 6px;
  z-index: 2;
}
.dc-ptt-core {
  width: calc(var(--dc-ptt-size, 240px) * 0.517);
  height: calc(var(--dc-ptt-size, 240px) * 0.517);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--dc-ptt-color, var(--dc-orange)), color-mix(in oklab, var(--dc-ptt-color, var(--dc-orange)) 80%, #000));
  display: grid; place-items: center;
  color: #fff;
  box-shadow:
    inset 0 -6px 14px rgba(0,0,0,0.18),
    inset 0 6px 14px rgba(255,255,255,0.18);
}

/* live state */
.dc-ptt[data-live="true"] .dc-ptt-core {
  box-shadow:
    inset 0 -6px 14px rgba(0,0,0,0.18),
    inset 0 6px 14px rgba(255,255,255,0.18),
    0 0 0 8px rgba(241, 91, 38, 0.25),
    0 0 0 18px rgba(241, 91, 38, 0.12);
}
.dc-ptt[data-live="true"] .dc-ptt-btn {
  outline-color: var(--dc-orange);
}

.dc-ptt-label {
  margin-top: 22px;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--dc-muted);
}
.dc-ptt-label b { color: var(--dc-orange); }

/* ===== Bottom tab bar ===== */
.dc-tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--dc-line);
  background: var(--dc-bg);
  padding: 8px 8px 14px;
}
.dc-tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px;
  color: var(--dc-muted);
  font-size: 11px; font-weight: 600;
  border-radius: 12px;
  min-height: 56px;
}
.dc-tab.active { color: var(--dc-blue); }
.dc-tab.active .ico { background: rgba(57, 83, 164, 0.12); }
.dc-tab .ico {
  width: 36px; height: 28px;
  border-radius: 10px;
  display: grid; place-items: center;
}
.dc-tab .badge {
  position: absolute; transform: translate(14px, -10px);
  background: var(--dc-orange); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 999px;
  font-family: -apple-system, system-ui;
}

/* ===== Lists (channels / inbox / contacts) ===== */
.dc-list { padding: 4px 0; }
.dc-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  padding: 12px 16px;
  align-items: center;
  border-bottom: 1px solid var(--dc-line);
  min-height: 64px;
}
.dc-row .avatar {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--dc-bg-2);
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px; letter-spacing: -0.01em;
  color: var(--dc-ink); position: relative;
}
.dc-row .avatar.blue { background: rgba(57,83,164,0.14); color: var(--dc-blue); }
.dc-row .avatar.orange { background: rgba(241,91,38,0.14); color: var(--dc-orange); }
.dc-row .avatar .presence {
  position: absolute; right: -2px; bottom: -2px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--dc-bg);
  background: var(--dc-offline);
}
.dc-row .avatar .presence.online { background: var(--dc-online); }
.dc-row .avatar .presence.busy { background: var(--dc-busy); }

.dc-row .body { min-width: 0; }
.dc-row .top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.dc-row .name { font-weight: 700; font-size: 15px; color: var(--dc-ink); letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-row .time { font-size: 11px; color: var(--dc-muted); flex-shrink: 0; font-weight: 500; }
.dc-row .preview {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--dc-muted);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden;
}
.dc-row .preview .ico { color: var(--dc-muted); flex-shrink: 0; }
.dc-row .preview .text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dc-row .right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.dc-row .unread {
  background: var(--dc-orange); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  min-width: 20px; text-align: center;
}

.dc-section-head {
  padding: 18px 16px 8px;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--dc-muted);
  font-weight: 600;
}

/* Channel rows (slightly bigger, with swatch) */
.dc-row.channel .avatar {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: #fff; background: var(--dc-blue);
}
.dc-row.channel .avatar.private { background: var(--dc-orange); }

/* ===== Floating action button (PTT shortcut for non-home screens) ===== */
.dc-fab {
  position: absolute; right: 16px; bottom: 92px;
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--dc-orange), var(--dc-orange-2));
  color: #fff;
  box-shadow: 0 18px 36px -8px rgba(241,91,38,0.55), 0 6px 14px rgba(0,0,0,0.18);
  display: grid; place-items: center;
  z-index: 10;
}

/* ===== Active call view ===== */
.dc-call {
  flex: 1;
  background: linear-gradient(180deg, var(--dc-ink) 0%, #161B2D 100%);
  color: #fff;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.dc-call::before {
  content: ""; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(241,91,38,0.32) 0%, transparent 60%);
  pointer-events: none;
}
.dc-call-top { padding: 14px 16px 0; display: flex; align-items: center; gap: 10px; position: relative; }
.dc-call-top .badge {
  background: rgba(241,91,38,0.18);
  border: 1px solid rgba(241,91,38,0.3);
  color: #FF8559;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 6px 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.dc-call-top .badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #FF8559;
  box-shadow: 0 0 0 0 rgba(255,133,89,0.6);
  animation: dc-pulse 1.4s infinite;
}
.dc-call-top .ch {
  margin-left: auto;
  font-size: 12px; color: rgba(255,255,255,0.65);
  font-family: "JetBrains Mono", monospace; letter-spacing: 0.05em;
}
@keyframes dc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,133,89,0.6); }
  100% { box-shadow: 0 0 0 12px rgba(255,133,89,0); }
}

.dc-call-speaker {
  text-align: center;
  padding: 36px 16px 8px;
  position: relative; z-index: 1;
}
.dc-call-speaker .av {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--dc-orange), var(--dc-orange-2));
  display: grid; place-items: center;
  font-size: 32px; font-weight: 700; color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06), 0 0 0 12px rgba(255,255,255,0.03);
}
.dc-call-speaker h2 {
  font-size: 26px; font-weight: 700; letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.dc-call-speaker .sub {
  font-size: 14px; color: rgba(255,255,255,0.6);
}

.dc-waveform {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 28px 32px; height: 96px;
  position: relative; z-index: 1;
}
.dc-waveform span {
  display: block; width: 4px;
  background: var(--dc-orange); border-radius: 2px;
  animation: dc-wave 0.9s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes dc-wave {
  0%, 100% { height: 12px; }
  50% { height: 56px; }
}

.dc-call-timer {
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 28px; font-weight: 700; color: #fff;
  letter-spacing: 0.05em;
  padding: 0 0 14px;
  position: relative; z-index: 1;
}
.dc-call-timer .lbl {
  display: block;
  font-size: 11px; color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 600; margin-bottom: 4px;
  font-family: -apple-system, system-ui;
}

.dc-call-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px 16px 24px;
  position: relative; z-index: 1;
}
.dc-call-action {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.dc-call-action .ico {
  width: 32px; height: 32px; display: grid; place-items: center;
  color: #fff;
}
.dc-call-action.danger {
  background: rgba(241,91,38,0.18);
  color: var(--dc-orange);
}
.dc-call-action.danger .ico { color: var(--dc-orange); }

/* ===== Message thread ===== */
.dc-thread {
  flex: 1;
  background: var(--dc-bg-2);
  display: flex; flex-direction: column;
  overflow-y: auto;
  padding: 16px;
  gap: 10px;
}
.dc-msg-day {
  align-self: center;
  font-size: 11px; color: var(--dc-muted);
  font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--dc-bg);
  padding: 4px 10px; border-radius: 999px;
  margin: 6px 0;
}
.dc-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
}
.dc-msg.them {
  align-self: flex-start;
  background: var(--dc-bg);
  border: 1px solid var(--dc-line);
  border-bottom-left-radius: 4px;
  color: var(--dc-ink);
}
.dc-msg.me {
  align-self: flex-end;
  background: var(--dc-blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.dc-msg .from {
  font-size: 11px; font-weight: 700;
  color: var(--dc-blue); margin-bottom: 2px;
}
.dc-msg .meta {
  font-size: 10px; opacity: 0.6;
  margin-top: 4px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
}

/* voice note bubble */
.dc-voice {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px !important;
}
.dc-voice .play {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.dc-msg.them .dc-voice .play { background: rgba(57,83,164,0.14); color: var(--dc-blue); }
.dc-voice-bars {
  display: flex; align-items: center; gap: 2px;
  height: 22px; flex: 1;
}
.dc-voice-bars span {
  display: block; width: 2.5px; border-radius: 2px;
  background: currentColor; opacity: 0.65;
}
.dc-voice-len {
  font-size: 11px; opacity: 0.7;
  font-family: "JetBrains Mono", monospace;
  flex-shrink: 0;
}

/* photo + location bubbles */
.dc-photo-msg {
  padding: 4px !important;
  background: var(--dc-bg) !important;
  overflow: hidden;
}
.dc-photo-msg img, .dc-photo-msg .ph {
  display: block; width: 220px; height: 140px;
  border-radius: 12px;
  background: linear-gradient(135deg, #B8C2DC, #5A6FA8);
  object-fit: cover;
}
.dc-photo-msg .cap { padding: 8px 8px 6px; font-size: 12px; color: var(--dc-muted); }

.dc-location-msg .map {
  width: 220px; height: 110px; border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05) 25%, transparent 25%) -10px 0/20px 20px,
    linear-gradient(225deg, rgba(255,255,255,0.05) 25%, transparent 25%) 0 0/20px 20px,
    linear-gradient(135deg, #C8D4ED, #8FA1C9);
  position: relative;
  margin-bottom: 6px;
}
.dc-location-msg .pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%);
  color: var(--dc-orange);
}

/* canned replies + composer */
.dc-canned {
  display: flex; gap: 8px; padding: 8px 16px;
  overflow-x: auto;
  border-top: 1px solid var(--dc-line);
  background: var(--dc-bg);
}
.dc-canned button {
  flex-shrink: 0;
  background: var(--dc-bg-2);
  border: 1px solid var(--dc-line);
  color: var(--dc-ink-2);
  font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
  white-space: nowrap;
  font-family: inherit;
}
.dc-composer {
  display: grid;
  grid-template-columns: 44px 1fr 44px 56px;
  gap: 8px;
  padding: 10px 12px 14px;
  background: var(--dc-bg);
  border-top: 1px solid var(--dc-line);
  align-items: center;
}
.dc-composer .iconbtn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--dc-bg-2);
  display: grid; place-items: center;
  color: var(--dc-ink-2);
}
.dc-composer input {
  height: 44px;
  border-radius: 22px;
  background: var(--dc-bg-2);
  border: 1px solid var(--dc-line);
  padding: 0 16px;
  font-family: inherit; font-size: 14px; color: var(--dc-ink);
}
.dc-composer .ptt-mini {
  width: 56px; height: 44px; border-radius: 22px;
  background: radial-gradient(circle at 30% 30%, var(--dc-orange), var(--dc-orange-2));
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px -4px rgba(241,91,38,0.55);
}

/* ===== Login ===== */
.dc-login {
  flex: 1;
  background:
    radial-gradient(ellipse at top, rgba(241,91,38,0.12), transparent 60%),
    var(--dc-bg);
  display: flex; flex-direction: column;
  padding: 60px 28px 28px;
}
.dc-login .brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 56px;
}
.dc-login .brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--dc-blue); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
}
.dc-login .brand-mark span { color: var(--dc-orange); }
.dc-login .brand-name {
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
}
.dc-login h1 {
  font-size: 30px;
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.1; margin: 0 0 12px;
  color: var(--dc-ink);
}
.dc-login p.sub { font-size: 15px; color: var(--dc-muted); margin: 0 0 36px; }
.dc-login .field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
}
.dc-login .field label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600; color: var(--dc-muted);
}
.dc-login .field input {
  height: 56px; padding: 0 18px;
  background: var(--dc-bg-2);
  border: 1.5px solid var(--dc-line);
  border-radius: 14px;
  font-family: inherit; font-size: 16px; color: var(--dc-ink);
  font-weight: 500;
}
.dc-login .field input.focused { border-color: var(--dc-blue); }
.dc-login .row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 24px; }
.dc-login .row a { font-size: 13px; color: var(--dc-blue); font-weight: 600; }
.dc-btn {
  height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
}
.dc-btn.primary { background: var(--dc-ink); color: #fff; }
.dc-btn.orange { background: var(--dc-orange); color: #fff; }
.dc-btn.ghost { background: transparent; color: var(--dc-ink); }
.dc-login-foot {
  margin-top: auto;
  text-align: center;
  font-size: 12px; color: var(--dc-muted);
}

/* ===== Settings rows ===== */
.dc-settings-card {
  margin: 12px 16px;
  background: var(--dc-bg-2);
  border-radius: 16px;
  overflow: hidden;
}
.dc-set-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  padding: 14px 14px;
  align-items: center;
  border-bottom: 1px solid var(--dc-line);
  min-height: 56px;
}
.dc-set-row:last-child { border-bottom: none; }
.dc-set-row .ico {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--dc-bg-3);
  color: var(--dc-ink-2);
  display: grid; place-items: center;
}
.dc-set-row .ico.blue { background: rgba(57,83,164,0.14); color: var(--dc-blue); }
.dc-set-row .ico.orange { background: rgba(241,91,38,0.14); color: var(--dc-orange); }
.dc-set-row .body { min-width: 0; }
.dc-set-row .label { font-size: 15px; font-weight: 600; color: var(--dc-ink); letter-spacing: -0.01em; }
.dc-set-row .helper { font-size: 12px; color: var(--dc-muted); margin-top: 2px; }
.dc-set-row .value { font-size: 14px; color: var(--dc-muted); }

/* iOS-style toggle */
.dc-toggle {
  width: 50px; height: 30px; border-radius: 999px;
  background: var(--dc-bg-3);
  position: relative;
  flex-shrink: 0;
}
.dc-toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: left .15s;
}
.dc-toggle[data-on="true"] { background: var(--dc-online); }
.dc-toggle[data-on="true"]::after { left: 23px; }

/* Profile header on settings */
.dc-profile-head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 16px;
}
.dc-profile-head .av {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, var(--dc-blue), var(--dc-blue-2));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 22px;
}
.dc-profile-head h3 {
  font-size: 19px; font-weight: 700; letter-spacing: -0.01em;
  margin: 0;
}
.dc-profile-head .sub {
  font-size: 13px; color: var(--dc-muted); margin-top: 2px;
}
.dc-profile-head .ch {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px;
  font-size: 11px; font-weight: 600;
  color: var(--dc-online);
  background: rgba(34,197,94,0.12);
  padding: 3px 8px; border-radius: 999px;
}
.dc-profile-head .ch::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--dc-online);
}

/* Search field */
.dc-search {
  margin: 10px 16px 8px;
  height: 40px; border-radius: 12px;
  background: var(--dc-bg-2);
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  color: var(--dc-muted); font-size: 14px;
}

/* Login pushes its own top padding via .dc-login; reset the screen padding so they don't double-stack */
.dc-screen.dc-screen-login { padding-top: 0; }

/* Quick channel switcher chip on home */
.dc-quick-channels {
  display: flex; gap: 8px;
  padding: 10px 16px 4px;
  overflow-x: auto;
}
.dc-quick-channels .chip {
  flex-shrink: 0;
  padding: 8px 14px; border-radius: 999px;
  background: var(--dc-bg-2);
  font-size: 13px; font-weight: 600;
  color: var(--dc-ink-2);
  border: 1px solid var(--dc-line);
  white-space: nowrap;
}
.dc-quick-channels .chip.active {
  background: var(--dc-ink); color: #fff; border-color: var(--dc-ink);
}
[data-theme="dark"] .dc-quick-channels .chip.active {
  background: var(--dc-orange); color: #fff; border-color: var(--dc-orange);
}

/* Generic icon helpers */
.dc-icon { color: currentColor; flex-shrink: 0; display: block; }
