.app-root { display: flex; flex: 1; min-height: 0; }
.app-side {
  width: 190px; flex: none; background: var(--sidebar-bg); backdrop-filter: blur(24px);
  border-right: 0.5px solid var(--sep); padding: 10px 8px; overflow-y: auto;
}
.window.flat .app-side { padding-top: 46px; }
.sb-head { font-size: 11px; font-weight: 700; color: var(--text-3); padding: 8px 9px 4px; }
.sb-item { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 9px; border-radius: 6px; font-size: 12.5px; color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sb-item svg { width: 15px; height: 15px; flex: none; color: var(--accent); }
.sb-item.sel { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.sb-item .badge { margin-left: auto; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; border-radius: 8px; padding: 1px 6px; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-toolbar {
  height: 38px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  border-bottom: 0.5px solid var(--sep); background: var(--chrome); backdrop-filter: blur(20px);
}
.window.flat .app-toolbar { position: absolute; top: 0; left: 190px; right: 0; z-index: 4; border-bottom: none; background: transparent; }
.tb-btn { width: 26px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.tb-btn svg { width: 15px; height: 15px; }
.tb-btn:hover { background: var(--hover); }
.tb-btn:disabled, .tb-btn.off { opacity: 0.32; pointer-events: none; }
.tb-btn.active-view { background: var(--accent-soft); color: var(--accent); }
.tb-sep { width: 1px; height: 18px; background: var(--sep); }
.tb-search { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--field-bg); width: 150px; }
.tb-search svg { width: 12px; height: 12px; color: var(--text-3); flex: none; }
.tb-search input { flex: 1; border: none; background: none; outline: none; font-size: 12px; color: var(--text); min-width: 0; }

.finder-grid { flex: 1; overflow: auto; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, 96px); grid-auto-rows: 100px; gap: 6px 2px; align-content: start; }
.fg-item { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 2px 4px; border-radius: 8px; position: relative; }
.fg-item .fg-ic { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; }
.fg-item .fg-ic svg { width: 50px; height: 50px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.14)); }
.fg-item .fg-name { font-size: 11.5px; text-align: center; line-height: 1.25; padding: 1px 6px; border-radius: 4px; max-width: 94px; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fg-item.selected { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.fg-item.selected .fg-name { background: var(--accent); color: #fff; }
.fg-item.drop-target { background: color-mix(in srgb, var(--accent) 26%, transparent); }
.fg-item input.rename { width: 88px; font-size: 11px; text-align: center; border-radius: 4px; border: none; outline: none; background: var(--content-bg); box-shadow: 0 0 0 2px var(--accent); }
.finder-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 13px; }
.finder-list { flex: 1; overflow: auto; }
.fl-head, .fl-row { display: grid; grid-template-columns: minmax(200px, 2.4fr) 1fr 1fr 0.8fr; gap: 8px; padding: 4px 16px; align-items: center; font-size: 12px; }
.fl-head { position: sticky; top: 0; background: var(--panel-solid); border-bottom: 0.5px solid var(--sep); font-weight: 600; color: var(--text-2); height: 26px; z-index: 2; }
.fl-row { height: 28px; border-radius: 6px; margin: 0 6px; }
.fl-row .fl-name { display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fl-row .fl-name svg { width: 17px; height: 17px; flex: none; }
.fl-row:nth-child(even) { background: var(--hover); }
.fl-row.selected { background: var(--accent) !important; color: #fff; }
.fl-row .dim { color: var(--text-3); }
.fl-row.selected .dim { color: rgba(255,255,255,0.75); }
.finder-cols { flex: 1; display: flex; min-height: 0; }
.fc-col { width: 200px; flex: none; border-right: 0.5px solid var(--sep); overflow-y: auto; padding: 6px; background: var(--content-bg); }
.fc-col:nth-child(odd) { background: color-mix(in srgb, var(--sidebar-bg) 55%, var(--content-bg)); }
.fc-item { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 8px; border-radius: 6px; font-size: 12.5px; overflow: hidden; white-space: nowrap; }
.fc-item svg { width: 16px; height: 16px; flex: none; }
.fc-item .chev { margin-left: auto; color: var(--text-3); font-size: 11px; }
.fc-item.sel { background: var(--accent); color: #fff; }
.fc-item.sel .chev { color: rgba(255,255,255,0.8); }
.fc-preview { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; min-width: 180px; }
.fc-preview svg { width: 90px; height: 90px; }
.fc-preview .fp-name { font-size: 13px; font-weight: 600; text-align: center; }
.fc-preview .fp-meta { font-size: 11px; color: var(--text-3); }
.finder-path { height: 24px; flex: none; border-top: 0.5px solid var(--sep); display: flex; align-items: center; padding: 0 14px; font-size: 11px; color: var(--text-3); background: var(--panel-solid); }

.safari-tabs { height: 36px; flex: none; display: flex; align-items: flex-end; gap: 2px; padding: 0 74px 0 84px; background: var(--chrome); position: relative; }
.sf-tab { height: 29px; flex: 1; max-width: 220px; min-width: 90px; border-radius: 8px 8px 0 0; display: flex; align-items: center; gap: 7px; padding: 0 9px; font-size: 12px; color: var(--text-2); position: relative; }
.sf-tab .sf-fav { width: 14px; height: 14px; border-radius: 3px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: #fff; }
.sf-tab .sf-title { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sf-tab .sf-close { width: 15px; height: 15px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--text-3); opacity: 0; }
.sf-tab:hover .sf-close { opacity: 1; }
.sf-tab .sf-close:hover { background: rgba(127,127,127,0.3); }
.sf-tab.active { background: var(--content-bg); color: var(--text); box-shadow: 0 -1px 3px rgba(0,0,0,0.06); }
.sf-tab.active .sf-close { opacity: 1; }
.sf-newtab { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: var(--text-2); font-size: 16px; flex: none; margin-bottom: 2px; }
.sf-newtab:hover { background: var(--hover); }
.safari-bar { height: 40px; flex: none; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: var(--content-bg); border-bottom: 0.5px solid var(--sep); position: relative; }
.safari-bar .url-field { flex: 1; height: 27px; border-radius: 8px; background: var(--field-bg); display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; max-width: 560px; margin: 0 auto; position: relative; }
.safari-bar .url-field svg { width: 12px; height: 12px; color: var(--text-3); flex: none; }
.safari-bar .url-field input { flex: 1; border: none; background: none; outline: none; font-size: 12.5px; color: var(--text); text-align: center; min-width: 0; }
.safari-bar .url-field:focus-within { box-shadow: 0 0 0 3px var(--accent-soft), inset 0 0 0 0.5px var(--accent); background: var(--field-bg-focus); }
.safari-bar .url-field input:focus { text-align: left; }
.sf-progress { position: absolute; bottom: -1px; left: 10%; width: 0%; height: 2px; border-radius: 2px; background: var(--accent); transition: width 0.25s ease; z-index: 3; }
.safari-content { flex: 1; overflow: auto; background: var(--content-bg); }
.sp-start { max-width: 860px; margin: 0 auto; padding: 44px 30px; }
.sp-start h2 { font-size: 21px; font-weight: 700; margin: 26px 0 12px; }
.sp-start h2:first-child { margin-top: 0; }
.sp-favs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sp-fav { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-2); }
.sp-fav .fav-ic { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.18); transition: transform 0.16s var(--spring); }
.sp-fav:hover .fav-ic { transform: scale(1.09); }
.sp-privacy { border-radius: 12px; background: var(--field-bg); padding: 14px 18px; display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--text-2); }
.sp-privacy svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
.wiki { max-width: 900px; margin: 0 auto; padding: 30px; font-size: 13.5px; line-height: 1.6; }
.wiki h1 { font-size: 27px; font-weight: 600; border-bottom: 1px solid var(--sep); padding-bottom: 6px; margin-bottom: 12px; font-family: Georgia, "Times New Roman", serif; }
.wiki h2 { font-size: 19px; font-weight: 600; margin: 22px 0 8px; border-bottom: 1px solid var(--sep); padding-bottom: 4px; font-family: Georgia, serif; }
.wiki p { margin-bottom: 10px; }
.wiki .infobox { float: right; width: 270px; margin: 4px 0 14px 20px; border: 1px solid var(--sep); background: var(--field-bg); font-size: 12px; padding: 8px; }
.wiki .infobox .ib-title { text-align: center; font-weight: 700; font-size: 14px; padding: 4px 0 8px; }
.wiki .infobox .ib-img { height: 130px; border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.wiki .infobox table { width: 100%; border-collapse: collapse; }
.wiki .infobox td { padding: 3px 4px; border-top: 1px solid var(--sep); vertical-align: top; }
.wiki .infobox td:first-child { font-weight: 700; width: 42%; }
.wiki ul { margin: 0 0 10px 22px; }
.apple-page { background: #000; color: #f5f5f7; min-height: 100%; text-align: center; }
.apple-page .ap-nav { display: flex; justify-content: center; gap: 28px; padding: 12px; font-size: 12px; color: #d6d6d6; background: rgba(22,22,24,0.9); position: sticky; top: 0; z-index: 2; }
.apple-page .ap-hero { padding: 60px 20px 40px; }
.apple-page .ap-hero .kicker { color: #f56300; font-size: 15px; font-weight: 600; }
.apple-page .ap-hero h1 { font-size: 52px; font-weight: 700; letter-spacing: -0.015em; margin: 8px 0 10px; }
.apple-page .ap-hero p { font-size: 19px; color: #a1a1a6; }
.apple-page .ap-links { display: flex; gap: 22px; justify-content: center; margin-top: 16px; font-size: 15px; }
.apple-page .ap-links a { color: #2997ff; }
.apple-page .ap-visual { height: 320px; margin: 30px auto 0; max-width: 760px; border-radius: 22px; overflow: hidden; }
.apple-page .ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 900px; margin: 40px auto; padding: 0 20px 60px; }
.apple-page .ap-card { border-radius: 18px; background: #161617; padding: 40px 24px; }
.apple-page .ap-card h3 { font-size: 24px; margin: 6px 0 6px; }
.apple-page .ap-card p { color: #a1a1a6; font-size: 14px; }
.news-page { max-width: 820px; margin: 0 auto; padding: 34px 26px; }
.news-page .np-mast { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; border-bottom: 2px solid var(--text); padding-bottom: 8px; }
.news-page .np-mast span { color: var(--red); }
.np-story { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--sep); align-items: flex-start; }
.np-story .np-thumb { width: 130px; height: 86px; border-radius: 9px; flex: none; }
.np-story h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.np-story .np-meta { font-size: 11.5px; color: var(--text-3); margin: 4px 0 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.np-story p { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.err-page { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--text-2); text-align: center; padding: 30px; }
.err-page svg { width: 54px; height: 54px; color: var(--text-3); }
.err-page b { color: var(--text); font-size: 15px; }

.notes-list { width: 230px; flex: none; border-right: 0.5px solid var(--sep); display: flex; flex-direction: column; background: color-mix(in srgb, var(--sidebar-bg) 45%, var(--content-bg)); }
.notes-list .nl-head { padding: 8px 10px 6px; display: flex; align-items: center; }
.notes-list .nl-head input { flex: 1; }
.nl-items { flex: 1; overflow-y: auto; padding: 0 8px 10px; }
.nl-item { padding: 8px 10px; border-radius: 8px; margin-bottom: 2px; }
.nl-item.sel { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.nl-item .t { font-size: 12.5px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nl-item .m { font-size: 11px; color: var(--text-3); margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nl-item .m b { color: var(--text-2); font-weight: 600; margin-right: 5px; }
.notes-editor { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.notes-editor .ne-bar { height: 34px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 12px; border-bottom: 0.5px solid var(--sep); }
.notes-editor .ne-bar button { width: 28px; height: 24px; border-radius: 5px; color: var(--text-2); font-size: 12.5px; display: flex; align-items: center; justify-content: center; }
.notes-editor .ne-bar button:hover { background: var(--hover); }
.notes-editor .ne-date { margin-left: auto; font-size: 11px; color: var(--text-3); }
.notes-editor .ne-scroll { flex: 1; overflow-y: auto; display: flex; justify-content: center; }
.ne-doc { width: 100%; max-width: 640px; padding: 22px 30px 60px; outline: none; font-size: 14px; line-height: 1.55; }
.ne-doc h1 { font-size: 22px; font-weight: 700; margin-bottom: 8px; outline: none; }
.ne-doc:empty::before { content: "Start typing…"; color: var(--text-3); }
.notes-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--text-3); }

.calc-wrap { flex: 1; display: flex; min-height: 0; }
.calc-pad { width: 250px; flex: none; display: flex; flex-direction: column; background: rgba(28,28,30,0.97); }
.calc-display { flex: 1; min-height: 88px; display: flex; align-items: flex-end; justify-content: flex-end; padding: 8px 18px 6px; color: #fff; font-size: 44px; font-weight: 300; overflow: hidden; white-space: nowrap; letter-spacing: -0.01em; }
.calc-display.small { font-size: 30px; }
.calc-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 0 8px 10px; }
.cbtn { height: 46px; border-radius: 23px; margin: 4px 3px 0; font-size: 19px; display: flex; align-items: center; justify-content: center; color: #fff; background: #545456; transition: filter 0.1s; }
.cbtn:active { filter: brightness(1.5); }
.cbtn.fn { background: #3f3f41; font-size: 17px; }
.cbtn.op { background: #ff9f0a; font-size: 24px; }
.cbtn.op.lit { background: #fff; color: #ff9f0a; }
.cbtn.zero { grid-column: span 2; justify-content: flex-start; padding-left: 24px; }
.mathnotes { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--content-bg); border-left: 0.5px solid var(--sep); }
.mathnotes .mn-head { height: 34px; flex: none; display: flex; align-items: center; padding: 0 14px; font-size: 12.5px; font-weight: 700; border-bottom: 0.5px solid var(--sep); gap: 8px; }
.mathnotes .mn-head svg { width: 15px; height: 15px; color: var(--accent); }
.mn-lines { flex: 1; overflow-y: auto; padding: 14px 18px; font-family: var(--mono); font-size: 14px; }
.mn-line { display: flex; align-items: baseline; gap: 10px; padding: 3px 0; min-height: 24px; }
.mn-line .expr { color: var(--text); white-space: pre-wrap; word-break: break-all; }
.mn-line .res { margin-left: auto; color: var(--accent); font-weight: 600; white-space: nowrap; }
.mn-line.err .res { color: var(--red); }
.mn-input { flex: none; border: none; outline: none; background: none; font-family: var(--mono); font-size: 14px; color: var(--text); padding: 10px 18px; border-top: 0.5px solid var(--sep); }
.mn-hint { padding: 4px 18px 10px; font-size: 10.5px; color: var(--text-3); }

.term-body { flex: 1; overflow-y: auto; padding: 8px 12px; font-family: var(--mono); font-size: 12px; line-height: 1.5; background: rgba(22,22,26,0.88); backdrop-filter: blur(16px); color: #e8e8ea; white-space: pre-wrap; word-break: break-all; }
.term-body .t-user { color: #7ef29a; font-weight: 700; }
.term-body .t-host { color: #6fd3f7; font-weight: 700; }
.term-body .t-path { color: #7aa2ff; font-weight: 700; }
.term-body .t-err { color: #ff6b61; }
.term-body .t-dim { color: #9a9aa2; }
.term-body .t-ok { color: #7ef29a; }
.term-input-line { display: flex; align-items: center; }
.term-input { flex: 1; background: none; border: none; outline: none; color: #e8e8ea; font-family: var(--mono); font-size: 12px; caret-color: #7ef29a; }

.cal-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cal-head { height: 46px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 0.5px solid var(--sep); }
.cal-head .ch-title { font-size: 19px; font-weight: 700; color: var(--red); }
.cal-head .ch-title span { color: var(--text); font-weight: 600; margin-left: 6px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); flex: none; border-bottom: 0.5px solid var(--sep); }
.cal-week div { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--text-3); padding: 5px 0; text-transform: uppercase; }
.cal-grid { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(6, 1fr); min-height: 0; }
.cal-cell { border-right: 0.5px solid var(--sep); border-bottom: 0.5px solid var(--sep); padding: 5px 6px; overflow: hidden; position: relative; transition: background 0.12s; }
.cal-cell:hover { background: var(--hover); }
.cal-cell .daynum { font-size: 12px; color: var(--text-2); width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.cal-cell.today .daynum { background: var(--red); color: #fff; font-weight: 700; }
.cal-cell.other .daynum { color: var(--text-3); opacity: 0.5; }
.cal-cell .ev-chip { font-size: 10px; background: color-mix(in srgb, var(--accent) 16%, transparent); border-left: 2.5px solid var(--accent); border-radius: 3px; padding: 1px 5px; margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-addpop { position: absolute; z-index: 40; width: 220px; padding: 10px; border-radius: 10px; background: var(--panel); backdrop-filter: var(--blur); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; gap: 7px; animation: dialog-in 0.18s var(--spring); }
.cal-addpop b { font-size: 12px; }

.photos-body { flex: 1; display: flex; min-height: 0; position: relative; }
.photos-grid { flex: 1; overflow-y: auto; padding: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; align-content: start; }
.ph-item { aspect-ratio: 1; border-radius: 6px; overflow: hidden; position: relative; transition: transform 0.15s var(--spring); }
.ph-item:hover { transform: scale(1.03); }
.ph-item svg { width: 100%; height: 100%; display: block; }
.ph-item .ph-fav { position: absolute; bottom: 5px; right: 6px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6)); opacity: 0; }
.ph-item.is-fav .ph-fav, .ph-item:hover .ph-fav { opacity: 1; }
.photos-viewer { position: absolute; inset: 0; background: rgba(10,10,12,0.96); display: flex; flex-direction: column; z-index: 5; animation: fadein 0.2s; }
.photos-viewer .pv-stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 18px; }
.photos-viewer .pv-stage svg { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 16px 50px rgba(0,0,0,0.6); }
.photos-viewer .pv-bar { height: 48px; flex: none; display: flex; align-items: center; justify-content: center; gap: 14px; }
.photos-viewer .pv-bar button { width: 32px; height: 32px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; }
.photos-viewer .pv-bar button:hover { background: rgba(255,255,255,0.14); }
.photos-viewer .pv-bar button svg { width: 17px; height: 17px; }
.photos-viewer .pv-bar button.faved svg { color: #ff6482; fill: #ff6482; }
.photos-viewer .pv-title { position: absolute; top: 12px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.85); font-size: 12.5px; font-weight: 600; }

.music-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.music-list { flex: 1; overflow-y: auto; padding: 6px 10px 10px; }
.mu-head { font-size: 21px; font-weight: 800; padding: 14px 10px 10px; letter-spacing: -0.01em; }
.mu-row { display: grid; grid-template-columns: 26px 40px minmax(120px, 1.6fr) 1fr 60px; gap: 12px; align-items: center; padding: 5px 10px; border-radius: 7px; font-size: 12.5px; }
.mu-row:hover { background: var(--hover); }
.mu-row.playing { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.mu-row .mu-idx { color: var(--text-3); text-align: center; font-variant-numeric: tabular-nums; }
.mu-row .mu-art { width: 40px; height: 40px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.mu-row .mu-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-row .mu-t span { font-size: 11px; color: var(--text-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-row .mu-a { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-row .mu-d { color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.music-player { height: 66px; flex: none; border-top: 0.5px solid var(--sep); background: var(--chrome); backdrop-filter: blur(20px); display: flex; align-items: center; gap: 12px; padding: 0 14px; }
.music-player .mp-art { width: 44px; height: 44px; border-radius: 7px; box-shadow: 0 3px 8px rgba(0,0,0,0.3); flex: none; }
.music-player .mp-info { width: 150px; min-width: 0; }
.music-player .mp-info b { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-player .mp-info span { font-size: 11px; color: var(--text-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-controls { display: flex; align-items: center; gap: 6px; }
.mp-controls button { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text); }
.mp-controls button:hover { background: var(--hover); }
.mp-controls button svg { width: 16px; height: 16px; }
.mp-controls button.big svg { width: 24px; height: 24px; }
.mp-progress { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.mp-progress .mp-track { flex: 1; height: 4px; border-radius: 2px; background: rgba(127,127,127,0.3); overflow: hidden; }
.mp-progress .mp-fill { height: 100%; background: var(--text-2); width: 0%; }
.mp-vol { display: flex; align-items: center; gap: 6px; width: 130px; }
.mp-vol svg { width: 13px; height: 13px; color: var(--text-3); flex: none; }

.mail-body { flex: 1; display: flex; min-height: 0; }
.mail-list { width: 280px; flex: none; border-right: 0.5px solid var(--sep); overflow-y: auto; padding: 6px; background: color-mix(in srgb, var(--sidebar-bg) 40%, var(--content-bg)); }
.ml-item { padding: 8px 10px; border-radius: 8px; margin-bottom: 1px; position: relative; }
.ml-item.sel { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.ml-item .r1 { display: flex; align-items: center; gap: 6px; }
.ml-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.ml-item.read .dot { background: transparent; }
.ml-item .from { font-size: 12.5px; font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-item.read .from { font-weight: 500; }
.ml-item time { font-size: 10.5px; color: var(--text-3); }
.ml-item .subj { font-size: 12px; font-weight: 600; margin: 2px 0 1px 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-item .snip { font-size: 11.5px; color: var(--text-3); margin-left: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-reader { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mr-head { padding: 16px 22px 12px; border-bottom: 0.5px solid var(--sep); }
.mr-head h2 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.mr-from { display: flex; align-items: center; gap: 10px; }
.mr-av { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.mr-from b { font-size: 13px; display: block; }
.mr-from span { font-size: 11.5px; color: var(--text-3); display: block; }
.mr-actions { margin-left: auto; display: flex; gap: 4px; }
.mr-body { flex: 1; overflow-y: auto; padding: 18px 22px 40px; font-size: 13.5px; line-height: 1.6; }
.mail-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-3); }
.mail-empty svg { width: 54px; height: 54px; opacity: 0.5; }
.compose-body { display: flex; flex-direction: column; height: 100%; }
.compose-body .cf { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-bottom: 0.5px solid var(--sep); font-size: 12.5px; }
.compose-body .cf label { color: var(--text-3); width: 52px; flex: none; }
.compose-body .cf input { flex: 1; border: none; background: none; outline: none; font-size: 12.5px; color: var(--text); }
.compose-body textarea { flex: 1; border: none; outline: none; resize: none; padding: 12px; font-size: 13px; line-height: 1.5; color: var(--text); background: none; }

.msg-body { flex: 1; display: flex; min-height: 0; }
.msg-thread { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.msg-head { height: 52px; flex: none; border-bottom: 0.5px solid var(--sep); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.msg-head .mh-av { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.msg-head b { font-size: 11px; margin-top: 1px; }
.msg-scroll { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 3px; }
.bubble { max-width: 62%; padding: 6px 11px; border-radius: 16px; font-size: 13px; line-height: 1.35; margin-top: 1px; word-break: break-word; }
.bubble.in { align-self: flex-start; background: color-mix(in srgb, var(--text-3) 26%, transparent); color: var(--text); border-bottom-left-radius: 5px; }
.bubble.out { align-self: flex-end; background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; border-bottom-right-radius: 5px; }
.msg-time { align-self: center; font-size: 10px; color: var(--text-3); margin: 8px 0 4px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 13px; border-radius: 16px; background: color-mix(in srgb, var(--text-3) 26%, transparent); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: ty 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ty { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.msg-inputbar { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 0.5px solid var(--sep); }
.msg-inputbar input { flex: 1; height: 30px; border-radius: 16px; padding: 0 13px; border: none; outline: none; background: var(--field-bg); box-shadow: inset 0 0 0 0.5px var(--sep); font-size: 13px; color: var(--text); }
.msg-send { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; transition: transform 0.12s; }
.msg-send:active { transform: scale(0.86); }
.msg-send svg { width: 15px; height: 15px; }
.msg-convos { width: 250px; }

.settings-body { flex: 1; display: flex; min-height: 0; }
.settings-main { flex: 1; overflow-y: auto; padding: 20px 26px 40px; }
.settings-main h2 { font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.set-card { background: color-mix(in srgb, var(--field-bg) 70%, transparent); border-radius: 11px; box-shadow: inset 0 0 0 0.5px var(--sep); margin-bottom: 16px; overflow: hidden; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 9px 14px; min-height: 40px; font-size: 13px; }
.set-row + .set-row { border-top: 0.5px solid var(--sep); }
.set-row .sr-label { flex: 1; min-width: 0; }
.set-row .sr-sub { display: block; font-size: 11px; color: var(--text-3); margin-top: 1px; }
.set-row svg.si { width: 22px; height: 22px; flex: none; border-radius: 5px; }
.appear-tiles { display: flex; gap: 14px; padding: 14px; }
.ap-tile { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; }
.ap-prev { width: 100px; height: 62px; border-radius: 8px; box-shadow: inset 0 0 0 2px transparent, 0 2px 8px rgba(0,0,0,0.18); overflow: hidden; position: relative; transition: box-shadow 0.15s; }
.ap-tile.sel .ap-prev { box-shadow: inset 0 0 0 2.5px var(--accent), 0 2px 8px rgba(0,0,0,0.18); }
.ap-prev.light { background: linear-gradient(160deg, #dfe9f8, #b9cdea); }
.ap-prev.dark { background: linear-gradient(160deg, #23262e, #101218); }
.ap-prev.auto { background: linear-gradient(105deg, #dfe9f8 50%, #1a1d25 50%); }
.accent-row { display: flex; gap: 12px; padding: 14px; }
.accent-dot { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; transition: transform 0.12s; }
.accent-dot:hover { transform: scale(1.12); }
.wp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px; }
.wp-thumb { aspect-ratio: 16/10; border-radius: 9px; overflow: hidden; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); transition: transform 0.15s var(--spring); }
.wp-thumb:hover { transform: scale(1.03); }
.wp-thumb.sel { box-shadow: inset 0 0 0 3px var(--accent); }
.wp-thumb svg { width: 100%; height: 100%; display: block; }
.wp-thumb .wp-name { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 8px 5px; font-size: 10.5px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.55)); text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.saver-cards { display: flex; gap: 12px; padding: 14px; }
.saver-card { flex: 1; border-radius: 10px; overflow: hidden; position: relative; aspect-ratio: 16/9; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.14); transition: transform 0.15s; }
.saver-card:hover { transform: scale(1.03); }
.saver-card.sel { box-shadow: inset 0 0 0 3px var(--accent); }
.saver-card span { position: absolute; bottom: 5px; left: 8px; font-size: 11px; font-weight: 600; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.about-hero { display: flex; flex-direction: column; align-items: center; padding: 22px 0 8px; gap: 6px; }
.about-hero svg { width: 90px; height: 90px; }
.about-hero h3 { font-size: 17px; font-weight: 700; }
.about-hero span { font-size: 12px; color: var(--text-3); }
.storage-bar { height: 14px; border-radius: 7px; overflow: hidden; display: flex; margin: 6px 14px 4px; }
.storage-bar i { height: 100%; }
.storage-legend { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 14px 12px; font-size: 10.5px; color: var(--text-2); }
.storage-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 4px; }
.wifi-net { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 13px; }
.wifi-net + .wifi-net { border-top: 0.5px solid var(--sep); }
.wifi-net svg { width: 16px; height: 16px; color: var(--text-2); }
.wifi-net .check { margin-left: auto; color: var(--accent); font-weight: 700; }

.pw-list { width: 300px; flex: none; border-right: 0.5px solid var(--sep); display: flex; flex-direction: column; background: color-mix(in srgb, var(--sidebar-bg) 40%, var(--content-bg)); }
.pw-items { flex: 1; overflow-y: auto; padding: 6px; }
.pw-item { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 8px; }
.pw-item.sel { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.pw-tile { width: 34px; height: 34px; border-radius: 8px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: none; }
.pw-item .t { font-size: 12.5px; font-weight: 600; display: block; }
.pw-item .u { font-size: 11px; color: var(--text-3); display: block; }
.pw-detail { flex: 1; overflow-y: auto; padding: 22px 26px; display: flex; flex-direction: column; align-items: center; }
.pw-detail .pd-tile { width: 64px; height: 64px; border-radius: 15px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 27px; font-weight: 800; margin-bottom: 8px; }
.pw-detail h3 { font-size: 17px; font-weight: 700; }
.pw-detail .pd-user { font-size: 12px; color: var(--text-3); margin-bottom: 16px; }
.pw-fields { width: 100%; max-width: 380px; }
.pw-field { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 0.5px solid var(--sep); font-size: 13px; }
.pw-field label { width: 90px; color: var(--text-3); font-size: 12px; flex: none; }
.pw-field .v { flex: 1; font-variant-numeric: tabular-nums; letter-spacing: 0.05em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-field button { width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.pw-field button:hover { background: var(--hover); }
.pw-field button svg { width: 14px; height: 14px; }
.pw-gen { padding: 14px; display: flex; flex-direction: column; gap: 12px; width: 300px; }
.pw-gen .gen-out { font-family: var(--mono); font-size: 15px; text-align: center; padding: 10px; border-radius: 8px; background: var(--field-bg); letter-spacing: 0.03em; word-break: break-all; }
.strength { height: 5px; border-radius: 3px; background: rgba(127,127,127,0.25); overflow: hidden; }
.strength i { display: block; height: 100%; transition: width 0.25s, background 0.25s; }
.touchid { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(6px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; z-index: 20; animation: fadein 0.2s; }
.touchid svg { width: 44px; height: 44px; animation: pulse 1s ease-in-out infinite; }

.preview-img { flex: 1; display: flex; align-items: center; justify-content: center; background: rgba(20,20,24,0.92); padding: 16px; }
.preview-img svg { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.textdoc { flex: 1; overflow: auto; padding: 20px 26px; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; }
