/* =========================================================
   YAMIYO SIGERU ROOM — 完全オリジナル モノクロ・エディトリアル
   コンセプト: "作品集 / ギャラリー" (Swiss Typography)
   配色: 背景=白 / 文字=黒 / ボタン=黒地に白文字。
   黒の1pxヘアライン罫・大きな余白・等幅インデックス番号・大型見出し。
   どこにも無い独自UI / フルレスポンシブ / ダーク対応。
========================================================= */

:root {
  --bg: #ffffff;          /* 背景: 白 */
  --surface: #ffffff;
  --hover: #f3f3f3;
  --text: #000000;        /* 文字: 黒 */
  --text-soft: #767676;
  --rule: #000000;        /* 罫線(強): 黒 */
  --hair: #e3e3e3;        /* 罫線(細): 薄灰 */
  --accent: #000000;      /* ボタン背景: 黒 */
  --accent-text: #ffffff; /* ボタン文字: 白 */
  --on-soft: rgba(0,0,0,.05);

  --max-w: 1280px;
  --mono: "Space Mono", ui-monospace, monospace;
  --disp: "Archivo", "Outfit", sans-serif;
  --sans: "Zen Kaku Gothic New", "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 0px;
  --shadow: none;
  --shadow-lg: 0 24px 60px rgba(0,0,0,.16);
}

html[data-theme="dark"] {
  --bg: #000000;
  --surface: #000000;
  --hover: #131313;
  --text: #ffffff;
  --text-soft: #8c8c8c;
  --rule: #ffffff;
  --hair: #232323;
  --accent: #ffffff;
  --accent-text: #000000;
  --on-soft: rgba(255,255,255,.07);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden; letter-spacing: .01em; line-height: 1.6;
}
/* 微細なグレイン質感（白黒のまま） */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="dark"] body::after { opacity: .05; }

a { color: var(--text); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, video { max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-text); }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--hair); }
*::-webkit-scrollbar-thumb:hover { background: var(--text-soft); }
.gradient-text { color: var(--text); }

/* ===== レイアウト（中央カラムを黒罫で挟む額装グリッド） ===== */
.layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 720px);
  justify-content: center;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100vh;
}
.main { border-right: 1px solid var(--rule); }

/* ===== 左ナビ（エディトリアル・インデックス） ===== */
.sidebar {
  position: sticky; top: 0; align-self: start; height: 100vh;
  padding: 30px 26px 24px; display: flex; flex-direction: column;
  counter-reset: navidx;
}
.brand {
  font-family: var(--disp); font-weight: 900; font-size: 16px; line-height: 1.1;
  letter-spacing: .01em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
  padding-bottom: 18px; margin-bottom: 16px; border-bottom: 2px solid var(--rule);
}
.brand small { display: block; font-family: var(--mono); font-weight: 400; font-size: 9.5px; letter-spacing: .26em; color: var(--text-soft); margin-top: 9px; }
.nav-item {
  counter-increment: navidx;
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px 10px 11px 0; border: none; background: none; width: 100%; text-align: left;
  color: var(--text); font-size: 15px; font-weight: 600; position: relative;
  border-bottom: 1px solid var(--hair); transition: padding-left .18s, color .18s;
}
.nav-item::before {
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px; color: var(--text-soft); width: 22px; flex-shrink: 0;
  transition: color .18s;
}
.nav-item .ico { display: none; }
.nav-item .label { flex: 1; }
.nav-item:hover { padding-left: 8px; }
.nav-item:hover::before { color: var(--text); }
.nav-item.active { font-weight: 800; }
.nav-item.active::before { content: "■"; color: var(--text); font-size: 9px; }
.nav-badge {
  font-family: var(--mono); background: var(--accent); color: var(--accent-text);
  font-size: 10px; padding: 0 6px; margin-left: auto; align-self: center; font-weight: 700;
}
.btn-post {
  margin-top: 18px; background: var(--accent); color: var(--accent-text); border: none;
  padding: 12px; font-family: var(--disp); font-size: 26px; font-weight: 700; line-height: 1;
  transition: opacity .15s, transform .1s;
}
.btn-post span { display: none; }
.btn-post:hover { opacity: .82; }
.btn-post:active { transform: translateY(1px); }
.sidebar-user {
  margin-top: auto; display: flex; align-items: center; gap: 11px;
  padding: 12px 0 0; border-top: 1px solid var(--hair); cursor: pointer;
}
.sidebar-user .meta { overflow: hidden; }
.sidebar-user .meta b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .meta span { font-family: var(--mono); font-size: 11px; color: var(--text-soft); }

/* ===== メイン（黒罫で額装） ===== */
.main { min-height: 100vh; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg); border-bottom: 2px solid var(--rule);
  padding: 26px 28px 18px; display: flex; align-items: flex-end; gap: 16px;
}
.topbar > span { font-family: var(--disp); font-weight: 900; font-size: 30px; letter-spacing: -.01em; text-transform: uppercase; line-height: 1; }
.topbar .back { background: none; border: 1px solid var(--rule); color: var(--text); font-size: 16px; width: 38px; height: 38px; border-radius: 50%; margin-bottom: 2px; }
.topbar .back:hover { background: var(--accent); color: var(--accent-text); }

/* セグメントタブ（下線インジケータ） */
.tabs { display: flex; gap: 26px; padding: 0 28px; border-bottom: 1px solid var(--hair); }
.tab {
  padding: 16px 0; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--text-soft); font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .04em;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-color: var(--rule); }

/* ===== 右サイド ===== */
.aside { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; padding: 30px 24px; }
.search-box { position: relative; margin-bottom: 24px; }
.search-box input {
  width: 100%; padding: 13px 14px 13px 38px; border: 1px solid var(--rule); border-radius: 0;
  background: var(--surface); color: var(--text); font-family: var(--mono); font-size: 13px;
}
.search-box::before { content: "↳"; position: absolute; left: 14px; top: 50%; transform: translateY(-52%); font-size: 14px; }
.search-box input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--rule); }
.panel { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--hair); }
.panel h3 {
  margin: 0 0 14px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-soft); display: flex; align-items: center; gap: 9px;
}
.panel h3::before { content: ""; width: 22px; height: 2px; background: var(--rule); }
.trend-item, .reco-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.trend-item:last-child, .reco-item:last-child { border-bottom: none; }
.trend-item:hover, .reco-item:hover { cursor: pointer; padding-left: 6px; transition: padding-left .15s; }
.trend-item .tag { font-weight: 800; }
.trend-item .cnt { font-family: var(--mono); font-size: 11px; color: var(--text-soft); }

/* ===== 旧ストーリー(未使用)・互換 ===== */
.story-rail { display: none; }

/* ===== 投稿コンポーザー ===== */
.composer { display: flex; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--rule); }
.composer textarea {
  width: 100%; border: none; background: none; resize: none; color: var(--text);
  font-size: 20px; min-height: 58px; outline: none; font-family: var(--sans); line-height: 1.5;
}
.composer textarea::placeholder { color: var(--text-soft); }
.composer-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.composer-tools { display: flex; gap: 8px; }
.icon-btn { background: none; border: 1px solid var(--rule); color: var(--text); font-size: 15px; width: 40px; height: 40px; border-radius: 0; filter: grayscale(1); transition: background .15s; }
.icon-btn:hover { background: var(--accent); color: var(--accent-text); }
.btn {
  background: var(--accent); color: var(--accent-text); border: 1px solid var(--accent);
  padding: 12px 26px; font-family: var(--disp); font-weight: 800; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; border-radius: 0; transition: opacity .15s, transform .08s;
}
.btn:hover { opacity: .82; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .35; }
.btn-outline { background: none; color: var(--text); border: 1px solid var(--rule); padding: 11px 24px; font-family: var(--disp); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.btn-outline:hover { background: var(--accent); color: var(--accent-text); opacity: 1; }
.btn-danger { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ===== 投稿（記事のように罫で区切る） ===== */
.post { display: flex; gap: 16px; padding: 24px 28px; cursor: pointer; border-bottom: 1px solid var(--hair); transition: background .14s; position: relative; }
.post:hover { background: var(--hover); }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-text);
  object-fit: cover; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-weight: 800; font-size: 16px;
}
.avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.avatar.lg { width: 120px; height: 120px; font-size: 44px; border: 2px solid var(--rule); }
img.avatar { filter: grayscale(1) contrast(1.05); }
.post-body { flex: 1; min-width: 0; }
.post-head { display: flex; gap: 7px; align-items: baseline; font-size: 14px; flex-wrap: wrap; }
.post-head .name { font-weight: 800; }
.post-head .name:hover { text-decoration: underline; }
.post-head .handle, .post-head .dot, .post-head .time { font-family: var(--mono); font-size: 12px; color: var(--text-soft); }
.verified { font-size: 9px; border: 1px solid var(--text); border-radius: 50%; width: 15px; height: 15px; display: inline-flex; align-items: center; justify-content: center; }
.post-text { margin: 8px 0; white-space: pre-wrap; word-break: break-word; line-height: 1.75; font-size: 15.5px; }
.post-text a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* メディア（画像/動画） */
.media-grid { display: grid; gap: 2px; margin-top: 14px; border: 1px solid var(--rule); background: var(--rule); overflow: hidden; }
.media-grid.n1 { grid-template-columns: 1fr; }
.media-grid.n2 { grid-template-columns: 1fr 1fr; }
.media-grid.n3, .media-grid.n4 { grid-template-columns: 1fr 1fr; }
.media-grid .cell { position: relative; background: var(--bg); }
.media-grid img, .media-grid video { width: 100%; height: 100%; max-height: 460px; object-fit: cover; display: block; }
.media-grid.n1 img, .media-grid.n1 video { max-height: 540px; }
.play-badge {
  position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 24px; pointer-events: none; border: 2px solid #fff;
}

.actions { display: flex; justify-content: space-between; max-width: 380px; margin-top: 16px; color: var(--text-soft); }
.action { display: flex; align-items: center; gap: 6px; background: none; border: none; color: inherit; font-family: var(--mono); font-size: 12px; padding: 4px; transition: color .14s; }
.action:hover { color: var(--text); }
.action.like.on, .action.repost.on, .action.bookmark.on { color: var(--text); font-weight: 700; }
.embed { border: 1px solid var(--hair); padding: 14px; margin-top: 12px; }

/* ===== プロフィール ===== */
.profile-header { border-bottom: 1px solid var(--rule); }
.profile-header .header-img { width: 100%; height: 190px; object-fit: cover; background: var(--hover); display: block; filter: grayscale(1); border-bottom: 1px solid var(--rule); }
.profile-info { padding: 0 28px 22px; }
.profile-info .avatar.lg { margin-top: -60px; background: var(--accent); }
.profile-row { display: flex; justify-content: space-between; align-items: flex-start; }
.profile-name { font-family: var(--disp); font-size: 28px; font-weight: 900; margin-top: 14px; text-transform: uppercase; letter-spacing: -.01em; }
.profile-handle { font-family: var(--mono); color: var(--text-soft); font-size: 13px; }
.profile-bio { margin: 14px 0; white-space: pre-wrap; line-height: 1.7; }
.profile-meta { display: flex; gap: 18px; color: var(--text-soft); font-family: var(--mono); font-size: 12px; flex-wrap: wrap; }
.profile-stats { display: flex; gap: 28px; margin-top: 16px; font-family: var(--mono); font-size: 13px; }
.profile-stats span { color: var(--text-soft); cursor: pointer; }
.profile-stats span:hover { color: var(--text); }
.profile-stats b { color: var(--text); font-size: 16px; }

/* メディアグリッド（プロフィール / 罫で区切る作品集） */
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--rule); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ig-tile { position: relative; aspect-ratio: 1; background: var(--bg); cursor: pointer; overflow: hidden; }
.ig-tile img, .ig-tile video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transition: transform .35s, filter .35s; }
.ig-tile:hover img, .ig-tile:hover video { transform: scale(1.05); filter: grayscale(0); }
.ig-tile .ov { position: absolute; top: 8px; right: 9px; color: #fff; text-shadow: 0 1px 3px #000; font-family: var(--mono); font-size: 12px; }

/* ===== フォーム / 認証 ===== */
.auth-wrap { max-width: 460px; margin: 7vh auto; padding: 24px; }
.auth-card { border: 2px solid var(--rule); padding: 44px 36px; background: var(--surface); }
.auth-wrap h1 { font-family: var(--disp); font-size: clamp(18px, 5.6vw, 25px); text-align: center; margin: 0; letter-spacing: .02em; text-transform: uppercase; font-weight: 900; line-height: 1.1; white-space: nowrap; }
.auth-wrap .sub { text-align: center; color: var(--text-soft); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 14px 0 30px; }
.field { margin-bottom: 17px; }
.field label { display: block; font-family: var(--mono); font-size: 11px; margin-bottom: 8px; color: var(--text-soft); letter-spacing: .06em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--rule); border-radius: 0;
  background: var(--surface); color: var(--text); font-size: 15px; font-family: var(--sans);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 1px var(--rule); }
.field textarea { resize: vertical; min-height: 90px; }
.full { width: 100%; }
.muted { color: var(--text-soft); font-size: 13px; }
.center { text-align: center; }
.error { color: var(--text); font-family: var(--mono); font-size: 12px; margin: 8px 0; min-height: 16px; }
.spacer { height: 100px; }

/* ===== 通知 / DM / リスト ===== */
.list-item { display: flex; gap: 13px; padding: 18px 28px; align-items: center; border-bottom: 1px solid var(--hair); transition: background .14s; }
.list-item:hover { cursor: pointer; background: var(--hover); }
.list-item .grow { flex: 1; min-width: 0; }
.notif { display: flex; gap: 13px; padding: 18px 28px; cursor: pointer; border-bottom: 1px solid var(--hair); transition: background .14s; }
.notif:hover { background: var(--hover); }
.notif.unread { border-left: 3px solid var(--rule); background: var(--hover); }

.dm-thread { display: flex; flex-direction: column; height: calc(100vh - 1px); }
.dm-messages { flex: 1; overflow-y: auto; padding: 22px 28px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 74%; padding: 11px 16px; background: var(--bg); border: 1px solid var(--rule); align-self: flex-start; line-height: 1.5; }
.bubble.mine { background: var(--accent); color: var(--accent-text); align-self: flex-end; }
.bubble .t { font-family: var(--mono); font-size: 10px; opacity: .6; display: block; margin-top: 4px; }
.dm-input { display: flex; gap: 10px; padding: 16px 28px; border-top: 1px solid var(--rule); }
.dm-input input { flex: 1; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 0; background: var(--surface); color: var(--text); }
.dm-input input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--rule); }

/* ===== ショート（縦動画） ===== */
.shorts { height: 100vh; overflow-y: scroll; scroll-snap-type: y mandatory; background: #000; }
.shorts::-webkit-scrollbar { display: none; }
.short { height: 100vh; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; position: relative; background: #000; }
.short video { max-height: 100%; max-width: 100%; width: auto; }
.short-overlay { position: absolute; bottom: 28px; left: 22px; right: 82px; color: #fff; text-shadow: 0 1px 6px #000; }
.short-overlay b { font-size: 16px; }
.short-actions { position: absolute; right: 16px; bottom: 46px; display: flex; flex-direction: column; gap: 22px; color: #fff; align-items: center; }
.short-actions .action { flex-direction: column; color: #fff; gap: 3px; }

/* ===== 管理画面 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
.stat { padding: 26px 18px; text-align: center; border-right: 1px solid var(--hair); }
.stat:last-child { border-right: none; }
.stat b { font-family: var(--disp); font-size: 34px; display: block; font-weight: 900; }
.stat span { font-family: var(--mono); color: var(--text-soft); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 13px 28px; border-bottom: 1px solid var(--hair); }
.admin-table th { font-family: var(--mono); color: var(--text-soft); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.tag-chip { display: inline-block; border: 1px solid var(--rule); padding: 2px 11px; font-family: var(--mono); font-size: 11px; margin: 2px; }

/* ===== モーダル ===== */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 18px; animation: fade .15s ease; }
html[data-theme="dark"] .modal-bg { background: rgba(0,0,0,.74); }
.modal { background: var(--bg); border: 2px solid var(--rule); width: 100%; max-width: 580px; max-height: 88vh; overflow-y: auto; padding: 28px; animation: pop .18s ease; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.modal-head > *:first-child { font-family: var(--disp); font-weight: 900; font-size: 19px; text-transform: uppercase; }
.modal-head .close { background: none; border: 1px solid var(--rule); font-size: 18px; color: var(--text); width: 34px; height: 34px; border-radius: 50%; }
.modal-head .close:hover { background: var(--accent); color: var(--accent-text); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }

/* ===== トースト ===== */
#toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: var(--accent); color: var(--accent-text); padding: 14px 26px;
  z-index: 200; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; box-shadow: var(--shadow-lg);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== モバイル ===== */
.mobile-nav, .mobile-top { display: none; }

@media (max-width: 1000px) {
  .layout { grid-template-columns: 76px minmax(0, 1fr); justify-content: stretch; }
  .aside { display: none; }
  .sidebar { padding: 24px 12px; align-items: stretch; }
  .brand { font-size: 0; text-align: center; padding-bottom: 14px; }
  .brand::after { content: "YS"; font-size: 20px; letter-spacing: .06em; }
  .brand small { display: none; }
  .nav-item { justify-content: center; padding: 12px 0; }
  .nav-item::before { width: auto; }
  .nav-item .label { display: none; }
  .nav-item.active::before { content: counter(navidx, decimal-leading-zero); color: var(--text); font-weight: 800; text-decoration: underline; }
  .btn-post { font-size: 24px; padding: 11px 0; }
  .sidebar-user .meta { display: none; }
  .sidebar-user { justify-content: center; }
}

@media (max-width: 680px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { border: none; }
  .topbar { top: 0; padding: 18px 18px 14px; }
  .topbar > span { font-size: 22px; }
  .tabs { padding: 0 18px; }
  .composer, .post, .list-item, .notif { padding-left: 18px; padding-right: 18px; }
  .mobile-top {
    display: flex; position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between;
    padding: 14px 18px; background: var(--bg); border-bottom: 2px solid var(--rule);
  }
  .mobile-top .logo { font-family: var(--disp); font-weight: 900; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
  .mobile-top .acts { display: flex; gap: 2px; }
  .mobile-top .acts button { background: none; border: none; font-size: 18px; color: var(--text); padding: 6px; filter: grayscale(1); }
  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: var(--bg); border-top: 2px solid var(--rule);
    justify-content: space-around; align-items: center;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-nav button { background: none; border: none; color: var(--text); font-size: 20px; padding: 8px 12px; position: relative; filter: grayscale(1); transition: transform .1s; }
  .mobile-nav button:active { transform: scale(.85); }
  .mobile-nav .mid { background: var(--accent); color: var(--accent-text); width: 46px; height: 46px; font-size: 22px; filter: none; }
  .actions { max-width: none; }
  .profile-info, .dm-input, .dm-messages, .admin-table th, .admin-table td { padding-left: 18px; padding-right: 18px; }
  .modal { border-width: 2px; }
  #toast { bottom: 80px; }
  .auth-wrap { margin-top: 4vh; }
}

@media (min-width: 681px) { .fab { display: none; } }
.fab {
  position: fixed; right: 18px; bottom: 80px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-text);
  border: none; font-size: 22px; box-shadow: var(--shadow-lg);
}

.loading { padding: 44px; text-align: center; color: var(--text-soft); font-family: var(--mono); font-size: 12px; }
.loading::after { content: " ●●●"; animation: blink 1.2s infinite; }
@keyframes blink { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.empty { padding: 60px 24px; text-align: center; color: var(--text-soft); font-family: var(--mono); font-size: 13px; border-bottom: 1px solid var(--hair); }
.preview-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.preview-thumbs .thumb { position: relative; width: 84px; height: 84px; }
.preview-thumbs img, .preview-thumbs video { width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--rule); filter: grayscale(1); }
.preview-thumbs .x { position: absolute; top: -8px; right: -8px; background: var(--accent); color: var(--accent-text); border: none; border-radius: 50%; width: 22px; height: 22px; }
.spam-warn { border: 1px solid var(--rule); color: var(--text); padding: 10px 14px; font-family: var(--mono); font-size: 12px; margin: 10px 0; }
