:root {
  --blue-top:#6d94ba;
  --blue-mid:#4679a7;
  --blue-bottom:#2b5e91;
  --line:#173d64;
  --light-line:#89a8c5;
  --paper:#f2f2f2;
  --ink:#202020;
  --muted:#6b6b6b;
  --link:#285d9d;
  --tab:#1e1e1e;
  --tab2:#080808;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#202020;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;color:var(--ink)}
body{min-height:100vh;background:radial-gradient(circle at 50% 15%,#525252 0,#242424 48%,#111 100%)}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
#mount{min-height:100vh;display:flex;justify-content:center;align-items:stretch}
.app-frame{width:min(100%,430px);min-height:100vh;background:#ececec;position:relative;box-shadow:0 0 36px rgba(0,0,0,.65);overflow:hidden}
@media(min-width:560px){#mount{padding:20px 0}.app-frame{min-height:calc(100vh - 40px);height:calc(100vh - 40px);border-radius:18px;border:1px solid #050505;overflow:hidden}}
.navbar{height:46px;padding-top:env(safe-area-inset-top);background:linear-gradient(#7ea2c2 0,#5e89b0 48%,#3e6f9d 51%,#2d5f90 100%);border-bottom:1px solid #173b60;box-shadow:inset 0 1px rgba(255,255,255,.55),0 1px 2px rgba(0,0,0,.28);display:flex;align-items:center;justify-content:center;position:absolute;left:0;right:0;top:0;z-index:20;color:#fff;text-shadow:0 -1px #244d72;font-weight:700}
.nav-title{font-size:20px;line-height:44px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:62%}
.nav-left,.nav-right{position:absolute;top:7px;height:31px;min-width:48px;padding:0 10px;border:1px solid #204d77;border-radius:6px;background:linear-gradient(#779aba,#4d79a2 50%,#37658f 51%,#2d567d);color:white;font-weight:700;text-shadow:0 -1px #214767;box-shadow:inset 0 1px rgba(255,255,255,.35)}
.nav-left{left:7px}.nav-right{right:7px}
.nav-left:active,.nav-right:active{background:linear-gradient(#2f5b84,#426f98)}
.screen{position:absolute;left:0;right:0;top:46px;bottom:55px;overflow:auto;-webkit-overflow-scrolling:touch;background:#ececec}
.screen.no-tabs{bottom:0}
.auth-screen{min-height:100vh;background:#d7d7d7 url('assets/leather.png') center/cover;display:flex;flex-direction:column;align-items:center;padding:65px 22px 28px}
.auth-logo{width:min(92%,330px);height:auto;filter:drop-shadow(0 1px 0 rgba(255,255,255,.55));margin:12px 0 26px}
.panel{width:100%;background:linear-gradient(#fff,#e4e4e4);border:1px solid #888;border-radius:10px;box-shadow:0 1px 0 rgba(255,255,255,.7),0 2px 8px rgba(0,0,0,.28);overflow:hidden}
.segmented{display:grid;grid-template-columns:1fr 1fr;margin-bottom:14px;border:1px solid #516f8a;border-radius:7px;overflow:hidden;background:#d4dce3}
.segmented button{border:0;padding:8px;background:linear-gradient(#f6f8fa,#cbd6e0);color:#35516b;font-weight:700}
.segmented button.active{color:#fff;background:linear-gradient(#6e96ba,#376b9a);text-shadow:0 -1px #244a6e}
.form-row{padding:9px 11px;border-bottom:1px solid #c8c8c8;background:#fff;display:flex;align-items:center;gap:8px}
.form-row:last-child{border-bottom:0}
.form-row label{width:82px;font-size:14px;color:#555;font-weight:700}
.form-row input,.form-row select,.form-row textarea{flex:1;border:0;outline:0;background:transparent;min-width:0;color:#111}
.form-actions{padding:14px}
.primary{width:100%;border:1px solid #29537b;border-radius:7px;padding:9px 12px;color:white;font-weight:700;background:linear-gradient(#75a1c5,#447aa8 50%,#326592 51%,#28567f);text-shadow:0 -1px #254967;box-shadow:inset 0 1px rgba(255,255,255,.35)}
.secondary{border:1px solid #8b8b8b;border-radius:7px;padding:7px 10px;background:linear-gradient(#fff,#d6d6d6);color:#333;font-weight:700}
.danger{border-color:#7c2323;background:linear-gradient(#d36d6d,#a93737);color:#fff}
.form-error{min-height:20px;color:#8e1d1d;text-align:center;font-size:13px;margin-top:10px;font-weight:600;text-shadow:0 1px rgba(255,255,255,.8)}
.tabbar{position:absolute;left:0;right:0;bottom:0;height:55px;padding-bottom:env(safe-area-inset-bottom);background:linear-gradient(#3b3b3b 0,#191919 42%,#050505 100%);border-top:1px solid #111;display:grid;grid-template-columns:repeat(7,1fr);z-index:30;box-shadow:inset 0 1px rgba(255,255,255,.16)}
.tab{border:0;background:transparent;color:#c9c9c9;padding:3px 0 2px;font-size:9px;text-shadow:0 -1px #000;min-width:0;position:relative}
.tab img{display:block;width:27px;height:27px;object-fit:contain;margin:0 auto 1px;filter:grayscale(1) brightness(1.55);opacity:.88}
.tab.active{color:#fff;background:radial-gradient(ellipse at center,#606060 0,#272727 55%,transparent 72%)}
.tab.active img{filter:none;opacity:1}
.badge{position:absolute;top:1px;right:4px;min-width:16px;height:16px;line-height:15px;border-radius:9px;background:#d52d2d;border:1px solid white;color:white;font-size:10px;font-weight:700;padding:0 4px;box-shadow:0 1px 2px #000}
.loading,.empty,.error-state{padding:28px 18px;text-align:center;color:#666;text-shadow:0 1px white}
.error-state{color:#8a2222}
.refresh-strip{padding:6px 8px;background:linear-gradient(#efefef,#d8d8d8);border-bottom:1px solid #b9b9b9;display:flex;gap:7px;justify-content:flex-end}
.list{margin:0;padding:0;list-style:none}
.list-row{display:flex;gap:10px;padding:10px;background:linear-gradient(#fff,#f4f4f4);border-bottom:1px solid #c9c9c9;min-height:58px;align-items:center}
.list-row:active{background:#dbe6f1}
.avatar{width:42px;height:42px;border-radius:6px;border:1px solid #777;background:linear-gradient(#d8d8d8,#aaa);object-fit:cover;box-shadow:inset 0 0 0 1px rgba(255,255,255,.5);flex:none}
.avatar.large{width:72px;height:72px;border-radius:10px}
.row-main{flex:1;min-width:0}.row-title{font-weight:700;color:#222;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-sub{font-size:12px;color:#666;margin-top:3px;line-height:1.3}.row-meta{font-size:11px;color:#888;margin-left:auto;white-space:nowrap}
.spotlight{position:relative;overflow:hidden;min-height:190px;background:#214a72;border-bottom:1px solid #1b3c5c;color:white}
.spotlight-bg{position:absolute;inset:-16px -14px -18px;background:url('assets/iClassicaSpotlight.png') center/cover no-repeat;filter:saturate(.96)}
.spotlight-shade{position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,.03),rgba(0,0,0,.3))}
.spotlight-content{position:relative;padding:12px 10px 10px}.spotlight-title{font-size:17px;font-weight:800;text-shadow:0 1px 3px #000;margin-bottom:8px}.spotlight-rooms{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 8px}.spotlight-room{border:0;background:rgba(255,255,255,.89);border-radius:9px;padding:7px;width:88px;flex:none;color:#1d3f61;box-shadow:0 1px 4px rgba(0,0,0,.35);font-size:11px;font-weight:700}.spotlight-room img{display:block;width:50px;height:50px;border-radius:8px;object-fit:cover;margin:0 auto 5px;border:1px solid #6b6b6b}
.post-card{background:#fff;border-bottom:1px solid #aaa;padding:8px 9px 7px;box-shadow:inset 0 1px rgba(255,255,255,.8)}
.post-head{display:flex;gap:7px;align-items:flex-start}.post-head .avatar{width:38px;height:38px}
.post-identity{flex:1;min-width:0}.nameplate{background:linear-gradient(#858585,#555 49%,#444 51%,#2f2f2f);border:1px solid #292929;border-radius:5px;color:white;padding:4px 7px;font-weight:700;font-size:13px;text-shadow:0 -1px #111;box-shadow:inset 0 1px rgba(255,255,255,.28);cursor:pointer}
.room-attribution{padding:5px 4px 2px;font-size:11px;color:#777;border-top:1px solid #d5d5d5;margin-top:3px}.room-link{border:0;background:transparent;padding:0;color:var(--link);font-weight:700;text-decoration:underline;cursor:pointer}
.post-body{font-size:15px;line-height:1.35;white-space:pre-wrap;padding:9px 2px 6px}.post-media{width:100%;max-height:390px;object-fit:contain;background:#111;border:1px solid #888;border-radius:4px;margin:4px 0}.post-video{width:100%;max-height:390px;background:#111;border:1px solid #777;border-radius:4px;margin:4px 0}
.post-foot{display:flex;align-items:center;gap:4px;border-top:1px solid #ddd;padding-top:5px}.reaction{border:1px solid #aaa;border-radius:5px;background:linear-gradient(#fff,#ddd);padding:3px 7px;display:flex;gap:4px;align-items:center;color:#444;font-size:11px}.reaction img{width:18px;height:18px;object-fit:contain}.reaction.active{background:linear-gradient(#bfd7ed,#7ca8cf);border-color:#4d789e;color:#123f68}.post-time{margin-left:auto;font-size:10px;color:#888}.delete-link{border:0;background:none;color:#a12626;font-size:11px;padding:3px}
.section-head{padding:6px 10px;background:linear-gradient(#8ba4ba,#637f97);color:white;font-size:12px;font-weight:700;text-shadow:0 -1px #496176;border-top:1px solid #4f6d87;border-bottom:1px solid #526e86}
.profile-card{padding:14px;background:linear-gradient(#f9f9f9,#e8e8e8);border-bottom:1px solid #aaa;display:flex;gap:12px}.profile-main{flex:1}.profile-name{font-size:20px;font-weight:700}.profile-handle{font-size:13px;color:#777;margin:2px 0 7px}.profile-bio{font-size:13px;line-height:1.35;color:#444;white-space:pre-wrap}.profile-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.composer{padding:12px;background:#ddd url('assets/leather.png') center/cover;min-height:100%}.composer-card{background:#f6f6f6;border:1px solid #888;border-radius:9px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.25)}.composer textarea{width:100%;height:155px;border:0;resize:vertical;padding:10px;outline:0;background:#fff;font-size:16px}.composer-select{padding:8px;border-bottom:1px solid #bbb;background:linear-gradient(#fff,#e1e1e1)}.composer-select select{width:100%;padding:6px}.composer-buttons{display:flex;justify-content:center;gap:8px;padding:11px;background:linear-gradient(#eee,#cacaca);border-top:1px solid #aaa}.icon-button{width:64px;height:64px;border:0;background:none;padding:0}.icon-button img{width:64px;height:64px;display:block}.attachment-preview{padding:8px;border-top:1px solid #bbb;text-align:center}.attachment-preview img,.attachment-preview video{max-width:100%;max-height:220px}
.sheet-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.35);z-index:50;display:flex;align-items:flex-end}.sheet{background:#eee;width:100%;max-height:84%;border-top:1px solid #555;box-shadow:0 -4px 12px rgba(0,0,0,.4);display:flex;flex-direction:column}.sheet-head{padding:8px;background:linear-gradient(#6e91b1,#3c6d98);color:#fff;font-weight:700;text-shadow:0 -1px #274d6f;display:flex;justify-content:space-between;align-items:center}.sheet-body{overflow:auto;flex:1}.comment{padding:9px;border-bottom:1px solid #ccc;background:#fff}.comment-user{font-size:12px;font-weight:700}.comment-reply{font-size:11px;color:#777}.comment-text{font-size:14px;line-height:1.35;margin-top:4px;white-space:pre-wrap}.comment-actions{display:flex;gap:5px;margin-top:5px}.comment-actions button{font-size:11px}.comment-compose{display:flex;gap:6px;padding:7px;background:#ddd;border-top:1px solid #aaa}.comment-compose input{flex:1;padding:7px;border:1px solid #888;border-radius:5px}.comment-compose button{width:auto}
.message-bubble{max-width:78%;padding:7px 9px;border-radius:12px;margin:7px 9px;box-shadow:0 1px 1px rgba(0,0,0,.15);font-size:14px;white-space:pre-wrap}.message-bubble.mine{margin-left:auto;background:linear-gradient(#91c6f2,#5ea1dc);border:1px solid #4d87b8}.message-bubble.theirs{margin-right:auto;background:linear-gradient(#fff,#ddd);border:1px solid #aaa}.message-bubble img{max-width:100%;border-radius:7px;margin-top:5px}.chat-compose{position:sticky;bottom:0;display:flex;gap:5px;background:#d7d7d7;border-top:1px solid #aaa;padding:7px}.chat-compose input{flex:1;border:1px solid #888;border-radius:6px;padding:7px}
.notice{padding:9px 11px;background:#fff4c7;border-bottom:1px solid #cdbb73;color:#6c5a19;font-size:12px}.toast{position:fixed;z-index:999;left:50%;bottom:22px;transform:translate(-50%,20px);background:rgba(0,0,0,.84);color:white;border-radius:7px;padding:9px 13px;font-size:13px;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
.hidden{display:none!important}

.boot-fallback{width:min(100%,430px);min-height:100vh;display:flex;align-items:center;justify-content:center;background:#d7d7d7;color:#555;font-weight:700;text-shadow:0 1px #fff}

/* -------------------------------------------------------------------------
   iClassica Web 0.3.2 — classic iPod touch Help-site skin
   Inspired by Apple's iPod-touch-optimized web guide: browser content first,
   glossy iPhone-era toolbar, grouped white panels, and the blue-gray page.
   No UA sniffing or redirect is used by iClassica.
   ------------------------------------------------------------------------- */
html, body {
  background: #c5ccd4;
  background-image: linear-gradient(90deg, rgba(255,255,255,.12) 0, rgba(255,255,255,.12) 1px, rgba(0,0,0,.025) 1px, rgba(0,0,0,.025) 3px);
  background-size: 4px 4px;
  font-family: Helvetica, Arial, sans-serif;
}
body { min-height:100vh; }
#mount {
  min-height:100vh;
  display:block;
  padding:0;
  background:transparent;
}
.app-frame,
.boot-fallback {
  width:100%;
  max-width:480px;
  min-height:100vh;
  height:100vh;
  margin:0 auto;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:#c5ccd4;
  overflow:hidden;
}
@media (min-width:560px) {
  #mount { padding:0; }
  .app-frame,
  .boot-fallback {
    min-height:100vh;
    height:100vh;
    border:0;
    border-radius:0;
    box-shadow:0 0 18px rgba(0,0,0,.18);
  }
}
.navbar {
  height:44px;
  padding-top:0;
  background:#6d84a2;
  background:-webkit-gradient(linear,left top,left bottom,from(#b2c1d0),color-stop(.48,#8da5bc),color-stop(.5,#6d88a4),to(#4f6a86));
  background:linear-gradient(#b2c1d0 0,#8da5bc 48%,#6d88a4 50%,#4f6a86 100%);
  border-top:1px solid #c7d3df;
  border-bottom:1px solid #2c4258;
  box-shadow:inset 0 1px rgba(255,255,255,.42),0 1px 1px rgba(0,0,0,.18);
  color:#fff;
  text-shadow:0 -1px 0 #2d455e;
}
.nav-title { font-size:20px; line-height:43px; }
.nav-left,.nav-right {
  top:6px;
  height:31px;
  min-width:48px;
  border:1px solid #405a73;
  border-radius:5px;
  background:#6f89a4;
  background:-webkit-gradient(linear,left top,left bottom,from(#a9bac9),color-stop(.5,#7893ad),color-stop(.51,#607d99),to(#516d88));
  background:linear-gradient(#a9bac9,#7893ad 50%,#607d99 51%,#516d88);
  box-shadow:inset 0 1px rgba(255,255,255,.35);
  text-shadow:0 -1px #2f475e;
}
.screen {
  top:44px;
  background:#c5ccd4;
  background-image:linear-gradient(90deg, rgba(255,255,255,.12) 0, rgba(255,255,255,.12) 1px, rgba(0,0,0,.025) 1px, rgba(0,0,0,.025) 3px);
  background-size:4px 4px;
  padding-top:8px;
}
.screen.no-tabs { bottom:0; }
.auth-screen {
  min-height:100vh;
  max-width:480px;
  margin:0 auto;
  background:#c5ccd4;
  background-image:linear-gradient(90deg, rgba(255,255,255,.12) 0, rgba(255,255,255,.12) 1px, rgba(0,0,0,.025) 1px, rgba(0,0,0,.025) 3px);
  background-size:4px 4px;
  padding:42px 10px 24px;
}
.auth-logo { width:min(88%,300px); margin:12px 0 24px; }
.panel {
  border:1px solid #8d949b;
  border-radius:10px;
  background:#fff;
  box-shadow:0 1px 0 rgba(255,255,255,.75);
}
.segmented { margin:0 0 12px; }
.form-row { min-height:45px; background:#fff; }
.primary,.secondary { -webkit-appearance:none; }
.refresh-strip {
  margin:0 9px 8px;
  padding:0;
  background:transparent;
  border:0;
}
.list {
  margin:0 9px 12px;
  border:1px solid #a7adb3;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 1px 0 rgba(255,255,255,.65);
}
.list-row {
  position:relative;
  min-height:48px;
  padding:9px 28px 9px 10px;
  background:#fff;
  border-bottom:1px solid #c8c8c8;
}
.list-row:last-child { border-bottom:0; }
.list-row[data-open-room]:after,
.list-row[data-profile]:after,
.list-row[data-chat]:after {
  content:'›';
  position:absolute;
  right:10px;
  top:50%;
  margin-top:-13px;
  color:#8b8b8b;
  font:bold 25px/26px Georgia,serif;
}
.list-row:active { background:#d9e3ee; }
.section-head {
  margin:8px 10px 4px;
  padding:0;
  background:none;
  border:0;
  color:#4b5d70;
  font-size:14px;
  text-shadow:0 1px rgba(255,255,255,.8);
}
.spotlight {
  margin:0 9px 10px;
  min-height:184px;
  border:1px solid #6f7780;
  border-radius:10px;
  box-shadow:0 1px 0 rgba(255,255,255,.65);
}
.spotlight-content { padding:11px 9px 9px; }
.post-card {
  margin:0 9px 10px;
  padding:8px 9px 7px;
  background:#fff;
  border:1px solid #a7adb3;
  border-radius:10px;
  box-shadow:0 1px 0 rgba(255,255,255,.65);
}
.nameplate {
  border-radius:4px;
  background:#66798d;
  background:-webkit-gradient(linear,left top,left bottom,from(#8fa0b0),color-stop(.49,#708497),color-stop(.51,#607487),to(#53677b));
  background:linear-gradient(#8fa0b0,#708497 49%,#607487 51%,#53677b);
  border-color:#46596c;
}
.room-attribution { border-top:1px solid #d8d8d8; }
.profile-card {
  margin:0 9px 10px;
  border:1px solid #a7adb3;
  border-radius:10px;
  background:#fff;
  box-shadow:0 1px 0 rgba(255,255,255,.65);
}
.composer {
  padding:2px 9px 12px;
  background:transparent;
}
.composer-card {
  border:1px solid #8e969d;
  border-radius:10px;
  box-shadow:0 1px 0 rgba(255,255,255,.7);
}
.notice {
  margin:0 9px 10px;
  border:1px solid #c4aa58;
  border-radius:8px;
}
.loading,.empty,.error-state { text-shadow:0 1px rgba(255,255,255,.8); }
.tabbar {
  height:55px;
  background:#111;
  background:-webkit-gradient(linear,left top,left bottom,from(#4c4c4c),color-stop(.12,#333),color-stop(.45,#1e1e1e),to(#050505));
  background:linear-gradient(#4c4c4c 0,#333 12%,#1e1e1e 45%,#050505 100%);
}
.boot-fallback {
  align-items:center;
  justify-content:center;
  color:#4b5d70;
  text-shadow:0 1px #fff;
}
