/* ============================================================
   App styles: Finder · Notes · Calculator · Calendar · Terminal
   Safari · Photos · Music · Phone · Settings · Trash · TextEdit
   ============================================================ */

/* ---------- shared app bits ---------- */
.sidebar {
  width: 210px; flex: none; overflow-y: auto;
  background: var(--sidebar);
  backdrop-filter: blur(20px) saturate(160%);
  border-right: 0.5px solid var(--divider);
  padding: 8px 8px 16px;
  display: flex; flex-direction: column;
}
.side-head { font-size: 11px; font-weight: 700; color: var(--text-3); padding: 10px 10px 4px; letter-spacing: 0.3px; }
.side-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px; border-radius: 6px; font-size: 13px; color: var(--text);
}
.side-item:hover { background: var(--hover); }
.side-item.on { background: var(--hover-2); font-weight: 600; }
.side-item .si-ico { width: 18px; height: 18px; flex: none; display: flex; }
.side-item .si-ico svg { width: 100%; height: 100%; }
.side-item .si-ico .tint { fill: currentColor; }
.side-item b { font-weight: 500; }
.side-item .si-badge { margin-left: auto; font-size: 11px; color: var(--text-3); }

.statusbar {
  flex: none; height: 26px; display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; color: var(--text-2);
  border-top: 0.5px solid var(--divider);
  background: color-mix(in srgb, var(--win-solid) 60%, transparent);
}

.switch {
  width: 38px; height: 23px; border-radius: 12px; flex: none;
  background: rgba(120,120,128,0.32); position: relative; transition: background 0.18s;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: left 0.18s var(--ease);
}
.switch.on { background: #34c759; }
.switch.on::after { left: 17px; }

.srow {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px; border-radius: 8px;
}
.srow:hover { background: var(--hover); }
.srow .srl { flex: 1; }
.srow .srl b { font-size: 13px; font-weight: 500; display: block; }
.srow .srl span { font-size: 11.5px; color: var(--text-3); }
.srow .srv { color: var(--text-2); display: flex; align-items: center; gap: 8px; font-size: 12.5px; }

.range { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: var(--field); outline: none; }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.35); border: 0.5px solid rgba(0,0,0,0.1);
}

.pane { flex: 1; overflow-y: auto; padding: 18px 22px; }
.pane h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.pane .pane-sub { color: var(--text-3); font-size: 12.5px; margin-bottom: 16px; }
.pane-card {
  background: var(--row-alt); border: 0.5px solid var(--divider);
  border-radius: 10px; padding: 4px 6px; margin-bottom: 14px;
}

/* ---------- Finder ---------- */
.fd-grid {
  flex: 1; overflow-y: auto; padding: 14px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 6px; align-content: start;
}
.fd-cell {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 8px 4px 7px; border-radius: 8px;
}
.fd-cell.sel { background: var(--sel); color: #fff; }
.fd-cell .fdi { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.fd-cell .fdi svg { width: 100%; height: 100%; }
.fd-cell .fdn { font-size: 11.5px; text-align: center; line-height: 1.25; word-break: break-word; }
.fd-list { flex: 1; overflow-y: auto; }
.fd-lrow {
  display: flex; align-items: center; gap: 10px; padding: 4px 14px; font-size: 13px;
}
.fd-lrow:nth-child(even) { background: var(--row-alt); }
.fd-lrow.sel { background: var(--sel); color: #fff; }
.fd-lrow .fdi { width: 20px; height: 20px; flex: none; }
.fd-lrow .fdi svg { width: 100%; height: 100%; }
.fd-lrow .col-date { margin-left: auto; color: var(--text-3); font-size: 12px; }
.fd-lrow.sel .col-date { color: rgba(255,255,255,0.8); }
.fd-crumb { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; }
.fd-crumb button { padding: 2px 7px; border-radius: 5px; color: var(--text-2); }
.fd-crumb button:hover { background: var(--hover-2); }
.fd-crumb .sep { color: var(--text-3); }
.fd-crumb .cur { color: var(--text); padding: 2px 7px; }
.fd-search {
  margin-left: auto; width: 150px;
  background: var(--field); border-radius: 6px; padding: 4px 10px;
  display: flex; align-items: center; gap: 6px;
}
.fd-search svg { width: 12px; height: 12px; fill: var(--text-3); }
.fd-search input { background: none; border: none; outline: none; font-size: 12.5px; width: 100%; }
.fd-preview {
  position: absolute; inset: 0; z-index: 5;
  background: color-mix(in srgb, var(--win-bg) 82%, transparent);
  backdrop-filter: blur(24px);
  display: flex; align-items: center; justify-content: center;
}
.fd-preview .fpp {
  width: 320px; border-radius: 12px; overflow: hidden;
  background: var(--glass-strong); border: 0.5px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  animation: winopen 0.18s var(--ease-spring);
}
.fd-preview .fpp-img { width: 100%; height: 200px; object-fit: cover; }
.fd-preview .fpp-doc { height: 200px; display: flex; align-items: center; justify-content: center; background: var(--row-alt); }
.fd-preview .fpp-doc svg { width: 90px; height: 90px; }
.fd-preview .fpp-name { text-align: center; padding: 8px 12px 12px; font-weight: 600; font-size: 13.5px; }

/* ---------- Notes ---------- */
.nt-list { width: 230px; flex: none; border-right: 0.5px solid var(--divider); display: flex; flex-direction: column; background: var(--sidebar); }
.nt-search { margin: 8px 10px 6px; background: var(--field); border-radius: 6px; padding: 5px 10px; display: flex; align-items: center; gap: 6px; }
.nt-search svg { width: 13px; height: 13px; fill: var(--text-3); }
.nt-search input { background: none; border: none; outline: none; width: 100%; font-size: 12.5px; }
.nt-smart { padding: 5px 10px; border-radius: 6px; font-size: 13px; }
.nt-smart.on { background: var(--hover-2); font-weight: 600; }
.nt-items { flex: 1; overflow-y: auto; padding: 0 6px 10px; }
.nt-item { padding: 8px 10px; border-radius: 8px; cursor: default; }
.nt-item:hover { background: var(--hover); }
/* Real Notes uses a SOFT yellow selection, not a saturated fill */
.nt-item.on { background: rgba(255, 214, 10, 0.28); }
html[data-theme="dark"] .nt-item.on { background: rgba(255, 214, 10, 0.18); }
.nt-item b { font-size: 13px; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-item span { font-size: 12px; opacity: 0.72; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.nt-tool {
  flex: none; display: flex; align-items: center; gap: 3px;
  padding: 6px 10px; border-bottom: 0.5px solid var(--divider);
  background: color-mix(in srgb, var(--win-solid) 60%, transparent);
}
.nt-tool .tbtn { width: 26px; height: 26px; font-weight: 700; font-size: 13px; }
.nt-tool .tbtn.i { font-style: italic; font-family: Georgia, serif; }
.nt-tool .sep { width: 1px; height: 18px; background: var(--divider); margin: 0 5px; }
.nt-edit {
  flex: 1; overflow-y: auto; padding: 18px 26px 40px;
  outline: none; user-select: text; font-size: 14px; line-height: 1.6;
  color: var(--text);
}
.nt-edit:empty::before { content: attr(data-ph); color: var(--text-3); }
.nt-edit b { font-weight: 700; }
.nt-edit ul, .nt-edit ol { padding-left: 22px; margin: 4px 0; }

/* ---------- Calculator ---------- */
.calc {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #1c1c1e;
  padding: 18px;
}
.calc-panel { width: 240px; display: flex; flex-direction: column; gap: 10px; }
.calc-display {
  color: #fff; font-size: 46px; font-weight: 300; text-align: right;
  padding: 0 8px 4px; min-height: 60px; line-height: 1.1;
  overflow: hidden; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.calc-grid button {
  height: 54px; border-radius: 50%; font-size: 20px; color: #fff;
  background: #333333; transition: filter 0.1s;
}
.calc-grid button:hover { filter: brightness(1.35); }
.calc-grid button:active { filter: brightness(1.7); }
.calc-grid button.fn { background: #a5a5a5; color: #000; font-size: 18px; }
.calc-grid button.op { background: #ff9f0a; font-size: 24px; }
.calc-grid button.op.on { background: #fff; color: #ff9f0a; }
.calc-grid button.zero { grid-column: span 2; border-radius: 30px; text-align: left; padding-left: 24px; }

/* ---------- Calendar ---------- */
.cal-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 0.5px solid var(--divider); background: color-mix(in srgb, var(--win-solid) 60%, transparent); }
.cal-head h3 { font-size: 16px; font-weight: 700; min-width: 150px; }
.cal-grid { flex: 1; display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 0.5px solid var(--divider); }
.cal-dow div { padding: 6px; text-align: center; font-size: 11px; font-weight: 600; color: var(--text-3); }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; }
.cal-day {
  border-right: 0.5px solid var(--divider); border-bottom: 0.5px solid var(--divider);
  padding: 4px 5px; min-height: 64px; overflow: hidden; position: relative;
}
.cal-day.other { color: var(--text-3); background: var(--row-alt); }
.cal-day .cdn { font-size: 12px; font-weight: 600; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.cal-day.today .cdn { background: #ff3b30; color: #fff; }
.cal-day.selc { background: var(--hover); }
.cal-ev {
  font-size: 10.5px; border-radius: 4px; padding: 1.5px 5px; margin-top: 2px;
  color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-side {
  width: 230px; flex: none; border-left: 0.5px solid var(--divider);
  padding: 14px; overflow-y: auto; background: var(--sidebar);
  display: flex; flex-direction: column; gap: 8px;
}
.cal-side h4 { font-size: 13px; font-weight: 700; }
.cal-ev-big { border-left: 3px solid var(--evc, #0a84ff); background: var(--row-alt); border-radius: 6px; padding: 7px 9px; }
.cal-ev-big b { font-size: 12.5px; display: block; }
.cal-ev-big span { font-size: 11.5px; color: var(--text-3); }
.cal-side .cside-empty { color: var(--text-3); font-size: 12.5px; }

/* ---------- Terminal ---------- */
.term {
  flex: 1; overflow-y: auto; background: rgba(18,18,20,0.92);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55;
  padding: 10px 12px; color: #d4d4d8; user-select: text;
  caret-color: #fff;
}
.term .t-out { white-space: pre-wrap; word-break: break-word; }
.term .t-line { display: flex; gap: 0; white-space: pre; }
.term .t-prompt { color: #4ade80; flex: none; }
.term .t-prompt .tp-user { color: #60a5fa; }
.term .t-prompt .tp-host { color: #f472b6; }
.term input {
  background: none; border: none; outline: none; color: #fff;
  font-family: var(--mono); font-size: 12.5px; flex: 1; caret-color: #fff;
}
.term .c-green { color: #4ade80; }
.term .c-blue { color: #60a5fa; }
.term .c-purple { color: #c084fc; }
.term .c-yellow { color: #facc15; }
.term .c-red { color: #f87171; }
.term .c-cyan { color: #22d3ee; }

/* ---------- Safari ---------- */
.sf-tabs {
  flex: none; display: flex; align-items: flex-end; gap: 4px;
  padding: 6px 10px 0; background: var(--titlebar);
  border-bottom: 0.5px solid var(--divider);
}
.sf-tab {
  display: flex; align-items: center; gap: 7px;
  max-width: 180px; min-width: 90px; flex: 1;
  padding: 6px 8px 6px 12px; border-radius: 9px 9px 0 0;
  font-size: 12.5px; color: var(--text-2); position: relative;
}
.sf-tab.on { background: color-mix(in srgb, var(--win-solid) 80%, transparent); color: var(--text); }
.sf-tab .ft { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-tab .fx { width: 18px; height: 18px; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 13px; flex: none; }
.sf-tab .fx:hover { background: var(--hover-2); }
.sf-tab .fav { width: 16px; height: 16px; flex: none; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; }
.sf-newtab { width: 24px; height: 24px; flex: none; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--text-2); margin-bottom: 2px; }
.sf-newtab:hover { background: var(--hover-2); }
.sf-toolbar {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-bottom: 0.5px solid var(--divider);
}
.sf-url {
  flex: 1; max-width: 520px; margin: 0 auto;
  background: var(--field); border-radius: 8px;
  display: flex; align-items: center; gap: 7px; padding: 5px 12px;
  font-size: 13px;
}
.sf-url svg { width: 12px; height: 12px; fill: var(--text-3); }
.sf-url input { background: none; border: none; outline: none; width: 100%; font-size: 12.5px; text-align: center; }
.sf-page { flex: 1; overflow-y: auto; user-select: text; background: var(--win-solid); }
.sf-start { padding: 34px 40px; max-width: 760px; margin: 0 auto; }
.sf-start h1 { font-size: 24px; font-weight: 700; margin-bottom: 18px; }
.sf-favs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sf-fav {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px 12px; border-radius: 12px; background: var(--row-alt);
  border: 0.5px solid var(--divider);
}
.sf-fav:hover { background: var(--hover-2); }
.sf-fav .favc {
  width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 20px;
}
.sf-fav span { font-size: 12.5px; }
.sf-card {
  margin-top: 14px; border-radius: 12px; padding: 14px 16px;
  background: var(--row-alt); border: 0.5px solid var(--divider);
}
.sf-card b { font-size: 13.5px; display: block; margin-bottom: 4px; }
.sf-card p { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.sf-article { max-width: 680px; margin: 0 auto; padding: 30px 34px 60px; line-height: 1.65; font-size: 15px; }
.sf-article h1 { font-size: 28px; line-height: 1.2; margin: 6px 0 10px; }
.sf-article .sfa-meta { color: var(--text-3); font-size: 13px; margin-bottom: 18px; }
.sf-article h2 { font-size: 20px; margin: 22px 0 8px; }
.sf-article p { margin-bottom: 12px; }
.sf-article code { font-family: var(--mono); font-size: 13px; background: var(--field); padding: 1px 5px; border-radius: 4px; }
.sf-error { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 70px 30px; text-align: center; }
.sf-error svg { width: 54px; height: 54px; fill: var(--text-3); margin-bottom: 6px; }
.sf-error b { font-size: 16px; }
.sf-error p { color: var(--text-2); font-size: 13px; max-width: 380px; line-height: 1.5; }

/* ---------- Photos ---------- */
.ph-grid {
  flex: 1; overflow-y: auto; padding: 12px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  grid-auto-rows: 130px; gap: 4px;
}
.ph-cell { border-radius: 6px; overflow: hidden; position: relative; background: var(--row-alt); }
.ph-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s var(--ease); }
.ph-cell:hover img { transform: scale(1.05); }
.ph-cell.tall { grid-row: span 2; }
.ph-lightbox {
  position: absolute; inset: 0; z-index: 6; background: rgba(0,0,0,0.86);
  display: flex; align-items: center; justify-content: center;
  animation: fadein 0.2s;
}
.ph-lightbox img { max-width: 88%; max-height: 84%; border-radius: 8px; box-shadow: 0 20px 80px rgba(0,0,0,0.6); }
.ph-lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.14); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.ph-lb-btn:hover { background: rgba(255,255,255,0.28); }
.ph-lb-btn svg { width: 16px; height: 16px; fill: #fff; }
.ph-lb-prev { left: 18px; }
.ph-lb-next { right: 18px; }
.ph-lb-x { top: 14px; right: 14px; transform: none; }

/* ---------- Music ---------- */
.mu-main { flex: 1; overflow-y: auto; padding: 20px 24px; }
.mu-hero { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.mu-hero img { width: 150px; height: 150px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.mu-hero h2 { font-size: 24px; font-weight: 800; }
.mu-hero .muh-artist { color: var(--text-2); font-size: 14px; margin: 2px 0 12px; }
.mu-playall {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; border-radius: 999px;
  padding: 7px 16px; font-weight: 600; font-size: 13px;
}
.mu-playall:hover { filter: brightness(1.1); }
.mu-playall svg { width: 12px; height: 12px; fill: #fff; }
.mu-track {
  display: grid; grid-template-columns: 30px 1fr 140px 50px; gap: 10px; align-items: center;
  padding: 6px 10px; border-radius: 7px;
}
.mu-track:hover { background: var(--hover); }
.mu-track.playing { background: var(--hover-2); color: var(--accent); }
.mu-track .mt-n { color: var(--text-3); font-size: 12.5px; text-align: center; }
.mu-track.playing .mt-n { color: var(--accent); }
.mu-track .mt-t b { font-size: 13px; font-weight: 500; display: block; }
.mu-track .mt-t span { font-size: 11.5px; color: var(--text-3); }
.mu-track .mt-a { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-track .mt-d { font-size: 12.5px; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.mu-player {
  flex: none; border-top: 0.5px solid var(--divider);
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  padding: 8px 14px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center;
}
.mu-cur { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mu-cur img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.mu-cur b { font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-cur span { font-size: 11.5px; color: var(--text-3); }
.mu-ctrl { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.mu-ctrl-row { display: flex; align-items: center; gap: 6px; }
.mu-ctrl-row button { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mu-ctrl-row button:hover { background: var(--hover-2); }
.mu-ctrl-row svg { width: 14px; height: 14px; fill: var(--text); }
.mu-ctrl-row .big { width: 38px; height: 38px; background: var(--field); }
.mu-ctrl-row .big svg { width: 17px; height: 17px; }
.mu-ctrl-row .on { color: var(--accent); }
.mu-progress { display: flex; align-items: center; gap: 8px; width: 300px; }
.mu-progress span { font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; width: 34px; }
.mu-progress span:last-child { text-align: right; }
.mu-progress .range { flex: 1; }

/* ---------- Phone ---------- */
.ph-list { width: 200px; flex: none; border-right: 0.5px solid var(--divider); overflow-y: auto; padding: 8px; background: var(--sidebar); display: flex; flex-direction: column; gap: 4px; }
.ph-tab { padding: 7px 10px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
/* macOS-style selection: neutral pill + tinted icon, not a solid green fill */
.ph-tab.on { background: var(--hover-2); color: var(--text); }
.ph-tab.on svg { color: #34c759; }
.ph-tab svg { width: 14px; height: 14px; }
.ph-call-row { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 7px; }
.ph-call-row:hover { background: var(--hover); }
.ph-call-row .pcr-av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #94a3b8, #64748b); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 600; flex: none; }
.ph-call-row b { font-size: 12.5px; font-weight: 500; display: block; }
.ph-call-row span { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 3px; }
.ph-call-row svg { width: 10px; height: 10px; fill: var(--text-3); }
.ph-call-row.in svg { fill: #34c759; }
.ph-call-row.out svg { fill: var(--text-2); }
.ph-dial { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 22px 30px; gap: 14px; overflow-y: auto; }
.ph-num {
  font-size: 30px; font-weight: 300; letter-spacing: 1px; min-height: 40px;
  display: flex; align-items: center; min-width: 200px; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.ph-keypad { display: grid; grid-template-columns: repeat(3, 64px); gap: 12px; }
.ph-key {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--field); font-size: 26px; font-weight: 300;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: background 0.1s;
}
.ph-key:hover { background: var(--hover-2); }
.ph-key:active { background: var(--sel); color: #fff; }
.ph-key small { font-size: 9px; letter-spacing: 1.5px; color: var(--text-3); margin-top: -2px; }
.ph-callbtn { width: 64px; height: 64px; border-radius: 50%; background: #34c759; display: flex; align-items: center; justify-content: center; }
.ph-callbtn svg { width: 26px; height: 26px; fill: #fff; }
.ph-call-screen {
  position: absolute; inset: 0; z-index: 5;
  background: linear-gradient(180deg, rgba(52,52,56,0.96), rgba(24,24,27,0.98));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: #fff;
}
.ph-call-screen .pcs-av { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, #60a5fa, #34d399); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 600; }
.ph-call-screen .pcs-name { font-size: 22px; font-weight: 600; }
.ph-call-screen .pcs-timer { font-size: 15px; color: rgba(255,255,255,0.65); font-variant-numeric: tabular-nums; }
.ph-call-screen .pcs-controls { display: flex; gap: 26px; margin-top: 26px; }
.ph-call-screen .pcs-btn { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; }
.ph-call-screen .pcs-btn.end { background: #ff3b30; }
.ph-call-screen .pcs-btn svg { width: 22px; height: 22px; fill: #fff; }

/* ---------- Trash ---------- */
.trash-main { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: var(--text-3); }
.trash-main svg { width: 64px; height: 64px; opacity: 0.5; }
.trash-list { flex: 1; overflow-y: auto; padding: 10px 14px; }
.trash-item { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 7px; font-size: 13px; }
.trash-item:hover { background: var(--hover); }
.trash-item svg { width: 22px; height: 22px; }

/* ---------- About ---------- */
.about {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center;
  padding: 28px 30px 24px; text-align: center;
}
.about .ab-ico { width: 88px; height: 88px; margin-bottom: 12px; }
.about .ab-ico svg { width: 100%; height: 100%; }
.about h2 { font-size: 20px; font-weight: 700; }
.about .ab-os { color: var(--text-2); font-size: 13px; margin: 2px 0 16px; }
.about .ab-specs { width: 100%; max-width: 340px; }
.about .abs-row { display: flex; justify-content: space-between; padding: 4px 8px; font-size: 12.5px; }
.about .abs-row span { color: var(--text-2); }
.about .abs-row b { font-weight: 500; max-width: 60%; text-align: right; }
.about .ab-copy { margin-top: auto; padding-top: 16px; font-size: 11px; color: var(--text-3); line-height: 1.5; }
.about .ab-report { margin-top: 12px; color: var(--accent); font-size: 12.5px; font-weight: 500; }

/* ---------- TextEdit ---------- */
.te-toolbar {
  flex: none; display: flex; gap: 2px; padding: 5px 10px;
  border-bottom: 0.5px solid var(--divider);
  background: color-mix(in srgb, var(--win-solid) 60%, transparent);
}
.te-toolbar .tbtn { font-weight: 700; font-size: 13px; }
.te-edit {
  flex: 1; border: none; outline: none; resize: none;
  padding: 16px 20px; background: var(--win-solid);
  font-size: 14px; line-height: 1.6; user-select: text;
  color: var(--text); font-family: var(--font);
}

/* profile header in settings */
.set-profile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 0 16px; border-bottom: 0.5px solid var(--divider); margin-bottom: 12px; }
.set-profile .sp-av {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #5ac8fa, #0a84ff);
  display: flex; align-items: center; justify-content: center;
}
.set-profile .sp-av svg { width: 32px; height: 32px; fill: rgba(255,255,255,0.95); }
.set-profile b { font-size: 17px; }
.set-profile span { font-size: 12px; color: var(--text-3); }
.appear-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.appear-card {
  border: 1.5px solid transparent; border-radius: 10px; overflow: hidden;
  background: var(--row-alt);
}
.appear-card.on { border-color: var(--accent); }
.appear-card .ac-prev { height: 90px; }
.appear-card .ac-prev.light { background: linear-gradient(135deg, #f5f5f7, #e2e2e6); }
.appear-card .ac-prev.dark { background: linear-gradient(135deg, #2c2c2e, #1c1c1e); }
.appear-card .ac-name { text-align: center; padding: 8px; font-size: 13px; font-weight: 600; }
.wall-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.wall-card { border-radius: 10px; overflow: hidden; border: 1.5px solid transparent; background: var(--row-alt); }
.wall-card.on { border-color: var(--accent); }
.wall-card img { width: 100%; height: 105px; object-fit: cover; }
.wall-card .wc-name { text-align: center; padding: 7px; font-size: 12.5px; font-weight: 500; }
.dock-preview {
  height: 90px; border-radius: 10px; margin-top: 12px;
  background: var(--row-alt); border: 0.5px solid var(--divider);
  display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding-bottom: 8px; overflow: hidden;
}
.dock-preview .dp-ico { width: 26px; height: 26px; transition: all 0.2s var(--ease); border-radius: 6px; overflow: hidden; }
.dock-preview .dp-ico svg { width: 100%; height: 100%; }

/* storage bar */
.storage-bar { height: 10px; border-radius: 5px; background: var(--field); overflow: hidden; display: flex; margin: 8px 0 4px; }
.storage-bar div { height: 100%; }
.storage-leg { display: flex; gap: 14px; font-size: 11.5px; color: var(--text-2); }
.storage-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 2.5px; margin-right: 5px; }
