:root{
  --red:#b51f24;
  --red-dark:#82151a;
  --ink:#172026;
  --muted:#5f6970;
  --line:#dfe3e5;
  --paper:#fff;
  --panel:#fff;
  --soft:#f3f5f5;
  --shadow:0 16px 45px rgba(24,32,38,.07);
  --radius:4px;
  --max:1180px;
}
*{box-sizing:border-box}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  line-height:1.75;
}
a{color:inherit}
.container{width:min(var(--max),calc(100% - 48px));margin-inline:auto}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;z-index:999;top:8px;left:8px;padding:10px 16px;background:#fff;color:#000;transform:translateY(-160%)}
.skip-link:focus{transform:none}
.site-header{position:sticky;z-index:100;top:0;border-bottom:1px solid rgba(255,255,255,.14);background:rgba(16,24,29,.94);color:#fff;backdrop-filter:blur(16px)}
.header-inner{display:flex;align-items:center;justify-content:space-between;width:min(1320px,calc(100% - 48px));height:80px;margin:auto}
.brand{display:flex;align-items:center;gap:13px;color:#fff;text-decoration:none}
.brand-mark{display:grid;place-items:center;width:46px;height:46px;padding:4px;border:0;border-radius:50%;background:#fff;box-shadow:0 0 0 1px rgba(255,255,255,.3);font-size:0}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.brand strong{display:block;font-size:1.04rem;letter-spacing:.06em}
.brand small{display:block;margin-top:1px;color:#aeb7bc;font-size:.57rem;letter-spacing:.16em}
.site-nav{display:flex;align-items:center;gap:20px;font-size:.76rem;font-weight:700}
.site-nav>a,.site-nav>button{color:#fff;text-decoration:none;padding-block:8px;transition:color .2s}
.site-nav>a:hover,.site-nav>button:hover{color:#f39a9e;background:transparent}
.site-nav>button{border:0;background:transparent;font:inherit;font-weight:inherit;cursor:pointer}
.site-nav .nav-accent{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 14px;
  border:1px solid rgba(255,255,255,.42);
  border-radius:4px;
  line-height:1.2;
}
.site-nav .nav-login-button{background:rgba(255,255,255,.06)}
.site-nav .nav-register-button{
  border-color:var(--red);
  background:var(--red);
  color:#fff;
  box-shadow:0 8px 18px rgba(181,31,36,.22);
}
.site-nav .nav-register-button:hover,
.site-nav .nav-register-button:focus{
  border-color:#d73339;
  background:#d73339;
  color:#fff;
}
.header-user-greeting{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.26);
  color:#d9dfe2;
  font-size:.72rem;
  line-height:1.4;
}
.header-user-greeting b{color:#fff;font-weight:800}
.menu-button{display:none;width:42px;height:42px;padding:9px;border:0;background:transparent}
.menu-button>span:not(.visually-hidden){display:block;width:24px;height:1px;margin:5px auto;background:#fff}
main.community-main{width:min(var(--max),calc(100% - 48px));margin:42px auto 92px}
.site-footer{padding:58px 0;background:#0c1317;color:#fff}
.footer-inner{display:grid;grid-template-columns:1fr auto;gap:30px;align-items:start}
.footer-brand strong{font-size:1rem;letter-spacing:.06em}
.footer-brand p,.copyright{margin:4px 0 0;color:#89959b;font-size:.68rem}
.site-footer nav{display:flex;gap:25px;font-size:.72rem}
.site-footer a{color:#fff;text-decoration:none}
.copyright{grid-column:1/-1;padding-top:30px;border-top:1px solid #273137}
.community-hero{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(300px,.72fr);
  gap:26px;
  align-items:stretch;
  margin-bottom:28px;
  padding:50px 0;
  color:var(--ink);
  background:#fff;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  border-radius:0;
  box-shadow:none;
}
.community-hero:after{display:none}
.eyebrow{
  margin:0 0 12px;
  color:var(--red);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.18em;
}
.community-hero h1{
  margin:0;
  font-family:"Yu Mincho",YuMincho,"Hiragino Mincho ProN",serif;
  font-size:clamp(2.2rem,4.7vw,4.6rem);
  font-weight:600;
  line-height:1.25;
  letter-spacing:.08em;
}
.hero-copy{max-width:720px;margin:18px 0 0;color:var(--muted)}
.hero-actions,.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.hero-stats{
  position:relative;
  z-index:1;
  display:grid;
  align-content:end;
  gap:12px;
}
.stat-card{
  display:grid;
  align-content:center;
  gap:8px;
  min-height:92px;
  padding:18px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  line-height:1.35;
  overflow:hidden;
}
.stat-card b{
  display:block;
  min-width:0;
  font-size:clamp(1.55rem,3vw,2rem);
  line-height:1.05;
  overflow-wrap:anywhere;
}
.stat-card span{
  display:block;
  min-width:0;
  color:var(--muted);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.08em;
  line-height:1.35;
  overflow-wrap:anywhere;
}
@media(max-width:920px){
  .hero-stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-content:stretch;
  }
}
@media(max-width:560px){
  .hero-stats{grid-template-columns:1fr}
  .stat-card{min-height:78px;padding:15px 16px}
}
.button,button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 18px;
  border:1px solid #c7d0d6;
  border-radius:3px;
  background:#fff;
  color:var(--ink);
  text-decoration:none;
  font-size:.82rem;
  font-weight:800;
  cursor:pointer;
  transition:transform .2s,background .2s,color .2s;
}
.button:hover,button:hover{transform:translateY(-2px)}
.primary{border-color:var(--red);background:var(--red);color:#fff}
.primary:hover{background:var(--red-dark)}
.ghost{background:#fff;color:var(--ink);border-color:#c7d0d6}
.danger{border-color:#bb3d42;color:#a32126}
.search-panel,.panel,.post-card,.form-panel,.detail-section{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.search-panel{padding:18px;margin-bottom:18px}
.form-panel{padding:26px}
.submit-form{padding:34px}
.submit-form .form-grid,
.submit-form > .actions{
  width:min(100%,920px);
  margin-left:auto;
  margin-right:auto;
}
.search{display:grid;grid-template-columns:1fr auto;gap:10px;margin:0}
input,select,textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid #c9d2d8;
  border-radius:4px;
  background:#fff;
  color:var(--ink);
  font:inherit;
}
input:focus,select:focus,textarea:focus{outline:3px solid rgba(197,27,41,.16);border-color:var(--red)}
input::placeholder,textarea::placeholder{color:#9aa6ad}
textarea{min-height:160px}
label{display:grid;gap:7px;color:#46545d;font-size:.74rem;font-weight:700}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.full{grid-column:1/-1}
.section-title{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
  margin:24px 0 12px;
}
.section-title h2{margin:0;font-family:"Yu Mincho",YuMincho,"Hiragino Mincho ProN",serif;font-size:1.55rem;font-weight:600;letter-spacing:.06em}
.section-title p{margin:0;color:var(--muted);font-size:.82rem}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.post-card{
  overflow:hidden;
  display:grid;
  grid-template-rows:auto 1fr;
  transition:transform .18s ease,box-shadow .18s ease;
}
.post-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.card-image{position:relative;background:#dce3e8;aspect-ratio:4/3;overflow:hidden}
.card-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.post-card:hover .card-image img{transform:scale(1.04)}
.card-image.placeholder{
  display:grid;
  place-items:center;
  color:#81909a;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.12em;
}
.card-body{padding:16px}
.post-card h2{margin:9px 0 10px;font-size:1.05rem;line-height:1.45}
.post-card h2 a{text-decoration:none}
.post-card h2 a:hover{color:var(--red)}
.pill-row,.meta{display:flex;flex-wrap:wrap;gap:7px}
.pill,.meta span{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:2px 9px;
  border-radius:3px;
  background:#eef2f5;
  color:#4d5b65;
  font-size:.68rem;
  font-weight:600;
}
.pill.pref{background:#fff0f1;color:#a31722}
.card-summary{margin:10px 0 0;color:#62707a;font-size:.82rem}
.detail-hero{
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(320px,.72fr);
  gap:20px;
  align-items:start;
}
.detail-media,.detail-info{background:#fff;border:1px solid var(--line);border-radius:4px;box-shadow:var(--shadow);overflow:hidden}
.main-photo{background:#dce3e8}
.main-photo img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.main-photo.is-empty{
  display:grid;
  place-items:center;
  aspect-ratio:4/3;
  color:#81909a;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.12em;
}
.photo-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:10px;background:#f8fafb}
.photo-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:4px}
.detail-info{padding:22px}
.detail-info h1{margin:0 0 14px;font-size:clamp(1.55rem,3vw,2.55rem);line-height:1.25;letter-spacing:-.03em}
.info-table{display:grid;gap:8px;margin-top:18px}
.info-row{display:grid;grid-template-columns:120px 1fr;gap:12px;padding:11px 0;border-top:1px solid var(--line)}
.info-row dt{color:#7a8790;font-size:.74rem;font-weight:700}
.info-row dd{margin:0;font-weight:600}
.detail-section{margin-top:18px;padding:24px}
.detail-section h2{margin:0 0 12px;font-size:1.05rem}
.post-body{white-space:normal;color:#33424c}
.post-body p{margin-top:0}
.flash,.notice{
  padding:13px 15px;
  border-left:4px solid var(--red);
  background:#fff;
  border-radius:4px;
}
.notice.success{border-color:#239458;background:#effaf3;color:#176436}
.notice.error{border-color:#c51b29;background:#fff0f1;color:#9e1420}
.status{display:inline-block;padding:2px 8px;border:1px solid var(--line);border-radius:3px;font-size:.62rem}
.status.pending{color:#a36a00;background:#fff8e8}
.status.approved{color:#126139;background:#edf9f2}
.status.rejected{color:#9c1f24;background:#fff0f1}
.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:4px}
table{width:100%;border-collapse:collapse;white-space:nowrap}
th,td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;font-size:.75rem}
.empty-state{grid-column:1/-1;padding:38px;text-align:center;color:var(--muted);background:#fff;border:1px dashed #c7d0d6;border-radius:4px}
.account-list{display:grid;gap:8px}
.account-list div{display:grid;grid-template-columns:180px 1fr;gap:14px;padding:10px 0;border-bottom:1px solid var(--line)}
.account-list dt{font-weight:700;color:#66747d}
.account-list dd{margin:0}
@media(max-width:920px){
  .community-hero,.detail-hero{grid-template-columns:1fr}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
  .container,.header-inner,main.community-main{width:min(100% - 32px,var(--max))}
  .header-inner{height:66px}
  .brand strong{font-size:.84rem}
  .brand small{display:none}
  .brand-mark{width:39px;height:39px;padding:3px}
  .menu-button{display:block}
  .site-nav{position:absolute;top:66px;left:0;display:none;width:100%;padding:20px 24px 28px;background:#10181d;flex-direction:column;align-items:stretch;gap:4px}
  .site-nav.is-open{display:flex}
  .site-nav>a,.site-nav>button{padding:12px}
  .header-user-greeting{align-items:flex-start;justify-content:flex-start}
}
@media(max-width:720px){
  main.community-main{margin-top:18px}
  .community-hero{padding:24px;border-radius:4px}
  .grid,.form-grid{grid-template-columns:1fr}
  .form-panel{padding:18px}
  .submit-form{padding:20px}
  .submit-form .form-grid,
  .submit-form > .actions{width:100%}
  .search{grid-template-columns:1fr}
  .info-row,.account-list div{grid-template-columns:1fr;gap:2px}
  .photo-grid{grid-template-columns:repeat(3,1fr)}
}

.signup-callout{
  margin-top:26px;
  max-width:640px;
  padding:22px;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:4px;
}
.signup-callout span{display:inline-block;color:var(--red);font-size:.68rem;font-weight:800;letter-spacing:.16em}
.signup-callout h2{margin:6px 0 6px;font-family:"Yu Mincho",YuMincho,"Hiragino Mincho ProN",serif;font-size:1.35rem;font-weight:600;letter-spacing:.06em}
.signup-callout p{margin:0;color:var(--muted)}
.guideline-hero{background:#152027}
.guideline-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.guideline-card{
  padding:22px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  box-shadow:0 12px 34px rgba(13,23,29,.06);
}
.guideline-card span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:4px;
  background:#fff0f1;
  color:#a31722;
  font-weight:700;
}
.guideline-card h2{margin:14px 0 8px;font-size:1.08rem}
.guideline-card p{margin:0;color:#52616b}
.register-layout{display:grid;grid-template-columns:minmax(0,.86fr) minmax(360px,1fr);gap:20px;align-items:start}
.register-intro{
  padding:28px;
  color:#fff;
  background:linear-gradient(135deg,#0d171d,#1b2a33 58%,#c51b29);
  border-radius:28px;
  box-shadow:var(--shadow);
}
.register-intro h1{margin:0;font-size:clamp(1.8rem,3.5vw,3rem);line-height:1.18;letter-spacing:-.04em}
.register-intro p{color:#e1e8ed}
.check-list{display:grid;gap:10px;margin:22px 0 0;padding:0;list-style:none}
.check-list li{position:relative;padding-left:28px;font-weight:600;color:#edf3f6}
.check-list li:before{content:"";position:absolute;left:0;top:.55em;width:14px;height:14px;border-radius:50%;background:var(--red);box-shadow:0 0 0 4px rgba(255,255,255,.12)}
.register-panel{padding:24px}
.agree-box{
  display:flex;
  grid-template-columns:none;
  align-items:flex-start;
  flex-direction:row;
  gap:10px;
  padding:14px;
  background:#f8fafb;
  border:1px solid var(--line);
  border-radius:4px;
}
.agree-box input{width:auto;margin-top:5px}
.agree-box a{color:var(--red);font-weight:700}
@media(max-width:920px){.guideline-grid,.register-layout{grid-template-columns:1fr}}

.post-invite-card{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:20px;
  align-items:center;
  margin:0 0 18px;
  padding:24px;
  overflow:hidden;
  background:
    radial-gradient(circle at 94% 18%,rgba(197,27,41,.16),transparent 32%),
    linear-gradient(135deg,#ffffff 0%,#fff8f8 46%,#edf7fc 100%);
  border:1px solid var(--line);
  border-left:6px solid var(--red);
  border-radius:4px;
  box-shadow:0 18px 44px rgba(13,23,29,.08);
}
.post-invite-card::after{
  content:"";
  position:absolute;
  right:22px;
  bottom:-30px;
  width:128px;
  height:128px;
  border:18px solid rgba(197,27,41,.08);
  border-radius:3px;
  pointer-events:none;
}
.post-invite-copy,
.post-invite-actions{position:relative;z-index:1}
.post-invite-card span{
  display:inline-block;
  color:var(--red);
  font-size:.68rem;
  font-weight:700;
  letter-spacing:.18em;
}
.post-invite-card h2{margin:6px 0 8px;font-size:clamp(1.35rem,2.6vw,2rem);letter-spacing:-.035em}
.post-invite-card p{max-width:760px;margin:0;color:#52616b;line-height:1.85}
.post-invite-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
@media(max-width:720px){
  .post-invite-card{grid-template-columns:1fr;padding:20px}
  .post-invite-actions{justify-content:flex-start}
}

.field-label{
  display:block;
  margin-bottom:7px;
  color:#46545d;
  font-size:.74rem;
  font-weight:700;
}
.upload-field{display:block}
.dropzone{
  display:grid;
  place-items:center;
  min-height:190px;
  padding:24px;
  text-align:center;
  border:2px dashed #b7c3cc;
  border-radius:4px;
  background:
    linear-gradient(135deg,#ffffff,#f8fafb);
  cursor:pointer;
  transition:border-color .18s ease, background .18s ease, transform .18s ease;
}
.dropzone input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
.dropzone strong{display:block;font-size:1.16rem;color:var(--ink)}
.dropzone small{display:block;margin-top:6px;color:#6f7d86;font-weight:600}
.dropzone:before{
  content:"+";
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  margin-bottom:12px;
  border-radius:4px;
  background:#fff0f1;
  color:var(--red);
  font-size:2rem;
  font-weight:700;
}
.dropzone.is-dragover{
  transform:translateY(-2px);
  border-color:var(--red);
  background:#fff8f8;
}
.preview-section{
  margin-top:6px;
  padding:0;
}
.preview-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.preview-heading span{
  display:block;
  color:var(--red);
  font-size:.68rem;
  font-weight:700;
  letter-spacing:.16em;
}
.preview-heading h2{margin:3px 0 0;font-size:1.12rem}
.preview-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.preview-card{
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  box-shadow:0 10px 26px rgba(13,23,29,.06);
}
.preview-card img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  display:block;
  background:#dfe6eb;
}
.preview-card div{display:grid;gap:2px;padding:10px}
.preview-card strong{color:var(--red);font-size:.72rem}
.preview-card span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.78rem;
  font-weight:600;
}
.preview-card small{color:#71808a;font-size:.68rem}
@media(max-width:920px){.preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.preview-grid{grid-template-columns:1fr}}

.live-post-preview{
  margin-top:0;
}
.live-main-photo{
  display:grid;
  place-items:center;
  min-height:260px;
  color:#71808a;
  font-weight:700;
}
.live-main-photo span{
  padding:18px;
  text-align:center;
}
.live-body-preview{
  margin-top:14px;
  box-shadow:none;
}
.live-photo-grid[hidden]{display:none}

.image-like-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.image-like-card{
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  box-shadow:0 10px 28px rgba(13,23,29,.06);
}
.image-like-card img{
  display:block;
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  background:#dce3e8;
}
.image-like-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:11px 12px;
}
.image-like-actions span{
  color:#5b6872;
  font-size:.76rem;
  font-weight:700;
}
.like-button,.like-login{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:6px 12px;
  border:1px solid #f0c9cc;
  border-radius:3px;
  background:#fff0f1;
  color:var(--red);
  font-size:.74rem;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
}
.like-button.is-liked{
  background:var(--red);
  border-color:var(--red);
  color:#fff;
}
.share-section textarea{
  width:100%;
  min-height:118px;
  margin-top:10px;
  resize:vertical;
  background:#f8fafb;
}
@media(max-width:920px){.image-like-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.image-like-grid{grid-template-columns:1fr}.image-like-actions{align-items:flex-start;flex-direction:column}}

body.modal-open{overflow:hidden}
.post-modal[hidden]{display:none}
.post-modal{
  position:fixed;
  inset:0;
  z-index:2000;
}
.post-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(8,14,18,.72);
  backdrop-filter:blur(8px);
}
.post-modal-dialog{
  position:relative;
  width:min(1120px,calc(100% - 28px));
  max-height:calc(100vh - 36px);
  margin:18px auto;
  overflow:auto;
  background:#f7f9fb;
  border-radius:28px;
  box-shadow:0 30px 90px rgba(0,0,0,.34);
}
.post-modal-close{
  position:sticky;
  top:14px;
  left:calc(100% - 58px);
  z-index:4;
  width:42px;
  min-height:42px;
  margin:14px 14px -52px auto;
  border:0;
  border-radius:50%;
  background:#101a20;
  color:#fff;
  font-size:1.25rem;
}
.post-modal-content{padding:24px}
.modal-post-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.modal-post-head h1{margin:0;font-size:clamp(1.55rem,3vw,2.6rem);line-height:1.25}
.modal-detail-hero{grid-template-columns:minmax(0,.9fr) minmax(310px,.65fr)}
.modal-section{box-shadow:none}
.modal-loading,.modal-error{padding:60px 20px;text-align:center;color:#63717b;font-weight:700}
@media(max-width:760px){
  .post-modal-dialog{width:calc(100% - 14px);max-height:calc(100vh - 14px);margin:7px auto;border-radius:4px}
  .post-modal-content{padding:18px}
  .modal-post-head{display:block}
  .modal-post-head .button{margin-top:12px}
}


/* Softer type scale: avoid overly blocky heavy weights across the community UI. */
.brand{font-weight:700}
.site-header nav a,
.button,
button,
label,
.pill,
.meta span,
.info-row dt,
.info-row dd,
.post-card h2,
.post-invite-card h2,
.register-intro h1,
.community-hero h1,
.detail-info h1,
.modal-post-head h1{
  font-weight:600;
}
.eyebrow,
.section-title h2,
.preview-heading h2,
.detail-section h2,
.guideline-card h2{
  font-weight:600;
}
.card-summary,
.hero-copy,
.guideline-card p,
.post-invite-card p,
.post-body,
.detail-section p{
  font-weight:400;
}


.account-settings{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin:18px 0;
}
.account-hero span,.muted{color:#6f7d86}
.compact-form{margin-top:14px}
.full{grid-column:1/-1}
.error-panel{
  border-color:#ffd5dc;
  background:#fff7f8;
}
.error-panel h2{color:#b70f22}
.error-panel ul{margin:10px 0 0;padding-left:1.2em;color:#7a1c28}
.admin-filter{
  display:grid;
  grid-template-columns:minmax(220px,1fr) 180px 180px auto;
  gap:12px;
  align-items:end;
}
.account-table td{white-space:nowrap}
.status.admin{background:#fff2ce;border-color:#ffd77d;color:#8a5a00}
.status.user{background:#eef6ff;border-color:#c7e2ff;color:#1a5c8f}
.status.active{background:#ecfdf3;border-color:#bde8cb;color:#22683b}
.status.suspended{background:#fff1f1;border-color:#ffc6c6;color:#9c2630}
@media (max-width: 820px){
  .account-settings,.admin-filter{grid-template-columns:1fr}
}


.account-post-wrap{
  overflow:hidden;
}
.account-post-table{
  width:100%;
  table-layout:fixed;
  min-width:0;
}
.account-post-table th,
.account-post-table td{
  vertical-align:middle;
  overflow:hidden;
}
.account-post-table th:nth-child(1),
.account-post-table td:nth-child(1){
  width:110px;
}
.account-post-table th:nth-child(3),
.account-post-table td:nth-child(3){
  width:128px;
  text-align:right;
}
.account-post-info{
  display:grid;
  gap:9px;
  min-width:0;
}
.account-post-main-line{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.account-post-title{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.account-post-sub-line{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  color:#66727b;
  font-size:.74rem;
  font-weight:700;
}
.account-thumb{
  position:relative;
  display:inline-grid;
  place-items:center;
  width:74px;
  height:54px;
  border-radius:4px;
  overflow:visible;
  background:#eef2f5;
  color:#7b8a94;
  font-size:.62rem;
  font-weight:700;
  letter-spacing:.08em;
  z-index:1;
}
.account-thumb img{
  width:74px;
  height:54px;
  object-fit:cover;
  border-radius:4px;
  box-shadow:0 8px 18px rgba(11,24,32,.12);
  transition:transform .2s ease, box-shadow .2s ease;
}
.account-thumb:hover,
.account-thumb:focus-within{
  z-index:30;
}
.account-thumb:hover img{
  transform:none;
  box-shadow:0 8px 18px rgba(11,24,32,.12);
}
.account-thumb.is-empty{
  border:1px dashed #cbd5dc;
}
.account-post-title{
  color:var(--ink);
  text-decoration:none;
}
a.account-post-title:hover{
  color:var(--red);
}
@media (max-width: 820px){
  .account-thumb:hover img{transform:none}
}


.member-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(120px,1fr));
  gap:10px;
  margin-top:18px;
}
.member-summary span,
.member-progress-grid > div{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:6px;
  min-width:0;
  min-height:72px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:4px;
  background:rgba(255,255,255,.12);
  line-height:1.45;
  overflow-wrap:anywhere;
}
.member-summary b{
  display:block;
  max-width:100%;
  font-size:1rem;
  line-height:1.25;
}
.member-level{
  display:inline-flex;
  align-items:center;
  width:auto;
  max-width:100%;
  min-height:26px;
  padding:3px 10px;
  border-radius:3px;
  border:1px solid #d4dde4;
  background:#eef2f5;
  color:#40505b;
  font-size:.72rem;
  font-weight:700;
  line-height:1.35;
  white-space:normal;
}
.level-starter,
.level-level1{background:#eef2f5;color:#40505b}
.level-contributor,
.level-level2{background:#edf8ff;color:#17618e;border-color:#bee4fb}
.level-regular,
.level-expert,
.level-legend,
.level-level3{background:#effaf3;color:#176436;border-color:#bde8cb}
.level-operator{background:#152332;color:#fff;border-color:#152332}
.member-progress-panel{margin:18px 0}
.member-progress-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.member-progress-grid > div{
  background:#fff;
  border-color:var(--line);
}
.member-progress-grid span{
  color:#74818a;
  font-size:.72rem;
  font-weight:700;
  line-height:1.35;
}
.member-progress-grid strong{
  max-width:100%;
  font-size:.95rem;
  line-height:1.45;
  overflow-wrap:anywhere;
}
@media(max-width:900px){
  .member-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  .member-progress-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .member-summary,.member-progress-grid{grid-template-columns:1fr}
}


.is-login-modal-open{overflow:hidden}
.login-modal{
  position:fixed;
  inset:0;
  z-index:300;
  display:grid;
  place-items:center;
  padding:24px;
}
.login-modal[hidden]{display:none}
.login-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(8,14,18,.58);
  backdrop-filter:blur(6px);
}
.login-modal-dialog{
  position:relative;
  width:min(440px,100%);
  padding:34px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 30px 80px rgba(8,14,18,.25);
}
.login-modal-dialog h2{
  margin:4px 0 18px;
  font-family:"Yu Mincho",YuMincho,"Hiragino Mincho ProN",serif;
  font-size:1.85rem;
  font-weight:600;
  letter-spacing:.06em;
}
.login-modal-close{
  position:absolute;
  top:12px;
  right:12px;
  width:38px;
  min-height:38px;
  padding:0;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  font-size:1.2rem;
}
.login-modal-form{
  display:grid;
  gap:14px;
}
.login-modal-form .actions{margin-top:8px}


.board-hero{margin-bottom:24px}
.board-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.board-card,
.board-topic-card,
.board-comment{
  padding:24px;
  border:1px solid var(--line);
  border-radius:4px;
  background:#fff;
}
.board-card>span,
.board-topic-card span,
.board-meta{
  color:var(--red);
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.12em;
}
.board-card h2,
.board-topic-card h2{
  margin:8px 0 8px;
  font-family:"Yu Mincho",YuMincho,"Hiragino Mincho ProN",serif;
  font-size:1.35rem;
  font-weight:600;
  letter-spacing:.04em;
}
.board-card p,
.board-topic-card p{color:var(--muted);font-size:.84rem}
.board-card dl,
.board-topic-card dl{
  display:grid;
  gap:8px;
  margin:18px 0;
}
.board-card dl div,
.board-topic-card dl div{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding-bottom:8px;
  border-bottom:1px solid var(--line);
}
.board-card dt,
.board-topic-card dt{color:#66747d;font-weight:700}
.board-card dd,
.board-topic-card dd{margin:0;font-weight:800}
.board-card.is-locked{background:#f6f7f7;color:#6a747a}
.board-lock{display:block;margin-top:18px;color:#8a3439;font-size:.8rem}
.board-form-panel{margin:22px 0}
.board-topic-list,
.board-comments{
  display:grid;
  gap:12px;
  margin:24px 0;
}
.board-topic-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) 170px;
  gap:22px;
  align-items:start;
}
.board-topic-card h2 a{text-decoration:none}
.board-topic-card h2 a:hover{color:var(--red)}
.board-topic-detail h1{
  margin:8px 0 6px;
  font-family:"Yu Mincho",YuMincho,"Hiragino Mincho ProN",serif;
  font-size:clamp(1.7rem,3vw,2.6rem);
  font-weight:600;
  letter-spacing:.04em;
}
.board-body{
  margin-top:24px;
  padding-top:22px;
  border-top:1px solid var(--line);
}
.board-comment header{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-bottom:10px;
  color:#56636b;
  font-size:.78rem;
}
.board-comment p{margin:0}
@media(max-width:920px){
  .board-grid{grid-template-columns:1fr}
  .board-topic-card{grid-template-columns:1fr}
}


.header-user-greeting,
.community-header-user{
  position:relative;
}
.header-user-greeting{
  cursor:default;
}
.header-user-greeting > span:first-child{
  white-space:nowrap;
}
.header-user-popover,
.community-header-popover{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  z-index:400;
  display:grid;
  gap:8px;
  min-width:190px;
  padding:14px;
  border:1px solid rgba(255,255,255,.18);
  background:#111a20;
  color:#fff;
  box-shadow:0 18px 45px rgba(8,14,18,.28);
  opacity:0;
  visibility:hidden;
  transform:translateY(-4px);
  transition:opacity .16s,transform .16s,visibility .16s;
}
.header-user-popover > span,
.community-header-popover > span{
  display:flex;
  justify-content:space-between;
  gap:18px;
  font-size:.72rem;
}
.header-user-popover b,
.community-header-popover b{color:#9aa6ac;font-weight:700}
.header-user-popover strong,
.community-header-popover strong{color:#fff;font-weight:800}
.header-user-greeting:hover .header-user-popover,
.header-user-greeting:focus .header-user-popover,
.header-user-greeting:focus-within .header-user-popover,
.community-header-user:hover .community-header-popover,
.community-header-user:focus .community-header-popover,
.community-header-user:focus-within .community-header-popover{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
@media(max-width:800px){
  .header-user-popover,
  .community-header-popover{
    position:static;
    margin-top:10px;
    box-shadow:none;
  }
}

.header-user-popover-link,
.community-header-popover-link{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  margin-top:4px;
  border:1px solid rgba(255,255,255,.3);
  color:#fff;
  text-decoration:none;
  font-size:.72rem;
  font-weight:800;
}
.header-user-popover-link:hover,
.community-header-popover-link:hover{
  border-color:#fff;
  color:#f39a9e;
}

.board-topic-card{color:inherit;text-decoration:none;transition:border-color .16s,box-shadow .16s,transform .16s}
.board-topic-card:hover,
.board-topic-card:focus{
  border-color:#b51f24;
  box-shadow:0 14px 32px rgba(24,32,38,.09);
  transform:translateY(-1px);
  outline:none;
}


.level-override-form{
  display:flex;
  gap:8px;
  align-items:center;
  min-width:260px;
}
.level-override-form select{
  min-height:36px;
  min-width:160px;
  padding:6px 8px;
  border:1px solid var(--line);
  border-radius:3px;
  background:#fff;
  font:inherit;
  font-size:.75rem;
}
.level-override-form button{
  min-height:36px;
  padding:6px 12px;
  font-size:.72rem;
}
.level-override-note{
  display:inline-flex;
  margin-left:6px;
  padding:1px 6px;
  border:1px solid #f0b9bf;
  border-radius:3px;
  color:#a31722;
  background:#fff0f1;
  font-size:.62rem;
  font-weight:800;
}


.login-invite-layout{
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(360px,1fr);
  gap:20px;
  align-items:start;
}
.login-invite-copy{
  padding:30px;
  color:#fff;
  background:linear-gradient(135deg,#101b22,#1d2f39 58%,#bd1c28);
  border-radius:4px;
  box-shadow:var(--shadow);
}
.login-invite-copy > span{
  display:inline-block;
  color:#ffb8bf;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.16em;
}
.login-invite-copy h1{
  margin:10px 0 14px;
  font-family:"Yu Mincho",YuMincho,"Hiragino Mincho ProN",serif;
  font-size:clamp(1.8rem,3.3vw,2.75rem);
  font-weight:600;
  line-height:1.22;
}
.login-invite-copy p{
  margin:0 0 13px;
  color:#e8eef1;
  line-height:1.9;
}
.login-invite-copy ul{
  display:grid;
  gap:10px;
  margin:22px 0;
  padding:0;
  list-style:none;
}
.login-invite-copy li{
  position:relative;
  padding-left:24px;
  color:#f6fafb;
  font-weight:700;
  line-height:1.7;
}
.login-invite-copy li:before{
  content:"";
  position:absolute;
  left:0;
  top:.72em;
  width:10px;
  height:10px;
  border-radius:50%;
  background:#ffb8bf;
}
.login-panel{
  padding:26px;
}
.login-panel h2{
  margin:5px 0 18px;
  font-family:"Yu Mincho",YuMincho,"Hiragino Mincho ProN",serif;
  font-size:1.7rem;
  font-weight:600;
}
.login-register-note{
  margin:0 0 18px;
  padding:14px;
  background:#fff6f7;
  border:1px solid #f0cdd0;
  border-left:4px solid var(--red);
  color:#42505a;
  font-size:.88rem;
  line-height:1.75;
}
.login-register-note a{
  color:var(--red);
  font-weight:800;
}
@media(max-width:920px){
  .login-invite-layout{grid-template-columns:1fr}
}


.community-hero-title{
  display:grid;
  gap:.08em;
}
.community-hero-title span{
  display:block;
  white-space:nowrap;
}
@media(max-width:560px){
  .community-hero-title{
    font-size:clamp(1.62rem,8.2vw,2.35rem);
    letter-spacing:.04em;
  }
}
@media(max-width:380px){
  .community-hero-title{
    font-size:clamp(1.38rem,7.3vw,1.86rem);
    letter-spacing:.02em;
  }
}


/* Prevent logged-in account stats from overlapping in the header popover. */
.header-user-popover,
.community-header-popover{
  width:max-content;
  min-width:240px;
  max-width:min(320px,calc(100vw - 32px));
}
.header-user-popover > span,
.community-header-popover > span{
  display:grid;
  grid-template-columns:minmax(78px,auto) minmax(0,1fr);
  align-items:start;
  gap:6px 14px;
  min-width:0;
  line-height:1.45;
}
.header-user-popover b,
.community-header-popover b,
.header-user-popover strong,
.community-header-popover strong{
  min-width:0;
  overflow-wrap:anywhere;
  line-height:1.45;
}
.header-user-popover strong,
.community-header-popover strong{
  text-align:right;
}
@media(max-width:800px){
  .header-user-popover,
  .community-header-popover{
    width:100%;
    max-width:none;
  }
  .header-user-popover > span,
  .community-header-popover > span{
    grid-template-columns:1fr;
  }
  .header-user-popover strong,
  .community-header-popover strong{
    text-align:left;
  }
}


/* Widen top page stats cards so labels and numbers never collide. */
.community-hero{
  grid-template-columns:minmax(0,1fr) minmax(420px,420px);
}
.hero-stats{
  width:100%;
  min-width:420px;
}
.stat-card{
  width:100%;
  min-width:0;
}
@media(max-width:1080px){
  .community-hero{
    grid-template-columns:1fr;
  }
  .hero-stats{
    min-width:0;
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:640px){
  .hero-stats{
    grid-template-columns:1fr;
  }
}


/* Modal image sizing without watermark. */
.modal-protected-image{
  position:relative;
  display:block;
  overflow:hidden;
  background:#dce3e8;
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  user-select:none;
}
.modal-protected-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  pointer-events:none;
  -webkit-user-drag:none;
  user-select:none;
}
.modal-detail-hero{
  grid-template-columns:minmax(0,520px) minmax(310px,.7fr);
  justify-content:center;
}
.modal-detail-hero .detail-media{
  width:min(520px,100%);
}
.modal-detail-hero .main-photo,
.modal-detail-hero .main-photo .modal-protected-image,
.modal-detail-hero .main-photo .modal-protected-image img{
  max-width:520px;
  aspect-ratio:4/3;
}
.modal-detail-hero .photo-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
  padding:8px;
}
.modal-detail-hero .photo-grid .modal-protected-image,
.modal-detail-hero .photo-grid .modal-protected-image img{
  aspect-ratio:1;
  border-radius:4px;
}
.modal-section .image-like-grid{
  grid-template-columns:repeat(auto-fill,minmax(140px,180px));
  justify-content:start;
}
.modal-section .image-like-card .modal-protected-image,
.modal-section .image-like-card .modal-protected-image img{
  aspect-ratio:4/3;
}
@media(max-width:760px){
  .modal-detail-hero{
    grid-template-columns:1fr;
  }
  .modal-detail-hero .detail-media{
    width:100%;
  }
  .modal-section .image-like-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:460px){
  .modal-section .image-like-grid{
    grid-template-columns:1fr;
  }
}


/* Modal-only post display adjustments. */
.modal-post-head{
  align-items:flex-start;
}
.modal-image-watermark{
  position:absolute;
  right:10px;
  bottom:10px;
  z-index:2;
  display:grid;
  gap:2px;
  max-width:calc(100% - 20px);
  padding:7px 9px;
  border:1px solid rgba(255,255,255,.34);
  border-radius:3px;
  background:rgba(8,14,18,.48);
  color:rgba(255,255,255,.86);
  font-size:clamp(.58rem,1.4vw,.72rem);
  font-weight:800;
  line-height:1.35;
  text-align:right;
  text-shadow:0 1px 3px rgba(0,0,0,.45);
  pointer-events:none;
}
.modal-image-watermark b{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
@media(max-width:560px){
  .modal-image-watermark{
    right:7px;
    bottom:7px;
    max-width:calc(100% - 14px);
    padding:5px 7px;
    font-size:.56rem;
  }
}


/* Search result card author watermark. */
.card-image-watermark{
  position:absolute;
  right:8px;
  bottom:8px;
  z-index:2;
  max-width:calc(100% - 16px);
  padding:5px 7px;
  border:1px solid rgba(255,255,255,.36);
  border-radius:3px;
  background:rgba(8,14,18,.48);
  color:rgba(255,255,255,.9);
  font-size:.62rem;
  font-weight:800;
  line-height:1.35;
  text-shadow:0 1px 3px rgba(0,0,0,.45);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  pointer-events:none;
}
@media(max-width:560px){
  .card-image-watermark{
    right:6px;
    bottom:6px;
    max-width:calc(100% - 12px);
    font-size:.56rem;
  }
}


/* Home ranking panels. */
.home-rankings{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin:22px 0 26px;
}
.ranking-panel{
  min-width:0;
  padding:18px;
  border:1px solid rgba(24,38,52,.12);
  border-radius:8px;
  background:#fff;
  box-shadow:0 12px 28px rgba(20,34,48,.07);
}
.ranking-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.ranking-head span{
  color:#b91824;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.08em;
}
.ranking-head h2{
  margin:0;
  color:#152332;
  font-size:1.08rem;
  line-height:1.35;
}
.ranking-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.ranking-card{
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(24,38,52,.1);
  border-radius:7px;
  background:#f8fafc;
}
.ranking-image{
  position:relative;
  display:block;
  aspect-ratio:4/3;
  overflow:hidden;
  background:#dce3e8;
}
.ranking-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .18s ease;
}
.ranking-image:hover img{
  transform:scale(1.035);
}
.ranking-badge{
  position:absolute;
  top:7px;
  left:7px;
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border:1px solid rgba(255,255,255,.56);
  border-radius:50%;
  background:#b91824;
  color:#fff;
  font-size:.82rem;
  font-weight:900;
  line-height:1;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
}
.ranking-card-watermark{
  position:absolute;
  right:6px;
  bottom:6px;
  z-index:2;
  max-width:calc(100% - 12px);
  padding:4px 6px;
  border:1px solid rgba(255,255,255,.36);
  border-radius:3px;
  background:rgba(8,14,18,.48);
  color:rgba(255,255,255,.9);
  font-size:.55rem;
  font-weight:800;
  line-height:1.3;
  text-shadow:0 1px 3px rgba(0,0,0,.45);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  pointer-events:none;
}
.ranking-body{
  display:grid;
  gap:6px;
  padding:9px;
}
.ranking-body h3{
  margin:0;
  font-size:.86rem;
  line-height:1.45;
}
.ranking-body h3 a{
  color:#152332;
  text-decoration:none;
}
.ranking-body h3 a:hover{
  color:#b91824;
}
.ranking-body p,
.ranking-empty{
  margin:0;
  color:#667483;
  font-size:.78rem;
  font-weight:800;
}
.ranking-empty{
  padding:20px 0;
  text-align:center;
}
@media(max-width:980px){
  .home-rankings{
    grid-template-columns:1fr;
  }
}
@media(max-width:560px){
  .ranking-panel{
    padding:14px;
  }
  .ranking-head{
    align-items:flex-start;
    flex-direction:column-reverse;
    gap:4px;
  }
  .ranking-grid{
    grid-template-columns:1fr;
  }
  .ranking-card{
    display:grid;
    grid-template-columns:112px minmax(0,1fr);
  }
  .ranking-image{
    height:100%;
    min-height:92px;
  }
}


/* Admin tool panel. */
.admin-tool-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:18px 0 20px;
  padding:18px 20px;
  border:1px solid rgba(185,24,36,.18);
  border-left:5px solid #b91824;
  border-radius:8px;
  background:#fff;
  box-shadow:0 12px 28px rgba(20,34,48,.07);
}
.admin-tool-panel span{
  display:block;
  margin-bottom:4px;
  color:#b91824;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.08em;
}
.admin-tool-panel h2{
  margin:0 0 4px;
  color:#152332;
  font-size:1.08rem;
  line-height:1.35;
}
.admin-tool-panel p{
  margin:0;
  color:#667483;
  font-size:.84rem;
  line-height:1.65;
}
@media(max-width:720px){
  .admin-tool-panel{
    align-items:stretch;
    flex-direction:column;
  }
  .admin-tool-panel .button{
    width:100%;
    justify-content:center;
  }
}


.button.danger,
button.danger{
  border-color:#b91824;
  background:#fff0f1;
  color:#a31722;
}
.button.danger:hover,
button.danger:hover{
  background:#b91824;
  color:#fff;
}
.board-admin-delete-form{
  margin-top:12px;
}
.board-admin-delete-form .button{
  font-size:.78rem;
  padding:7px 10px;
}


/* Admin user approval controls. */
.admin-user-approval-panel{
  margin:18px 0;
  padding:18px;
  border:1px solid var(--line);
  border-radius:4px;
  background:#fff;
}
.admin-user-approval-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-end;
  margin-bottom:14px;
}
.admin-user-approval-head span{
  color:var(--red);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.08em;
}
.admin-user-approval-head h2{
  margin:4px 0 0;
  font-size:1.15rem;
}
.admin-user-approval-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:10px;
}
.admin-user-approval-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:4px;
  background:#f8fafb;
}
.admin-user-approval-card strong,
.admin-user-approval-card small{
  display:block;
}
.admin-user-approval-card small{
  margin-top:4px;
  color:#66727b;
  font-weight:800;
}
@media(max-width:620px){
  .admin-user-approval-card{
    align-items:stretch;
    flex-direction:column;
  }
}


/* Modal thumbnail image switcher. */
.modal-image-thumb{
  display:block;
  width:100%;
  padding:0;
  border:2px solid transparent;
  border-radius:5px;
  background:transparent;
  cursor:pointer;
}
.modal-image-thumb:hover,
.modal-image-thumb:focus-visible,
.modal-image-thumb.is-active{
  border-color:var(--red);
}
.modal-image-thumb:focus-visible{
  outline:2px solid rgba(187,25,31,.28);
  outline-offset:2px;
}
.modal-image-thumb .modal-protected-image{
  border-radius:3px;
}

.modal-image-selectable{
  cursor:pointer;
}
.modal-image-selectable:focus-visible{
  outline:2px solid rgba(187,25,31,.34);
  outline-offset:2px;
}


/* Account notifications. */
.notification-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.notification-panel-head h2{margin:0 0 4px}
.notification-list{
  display:grid;
  gap:10px;
}
.notification-item{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:4px;
  background:#fff;
}
.notification-item.is-unread{
  border-color:rgba(187,25,31,.35);
  background:#fff8f8;
}
.notification-item strong,
.notification-item time{
  display:block;
}
.notification-item time{
  margin-top:3px;
  color:#66727b;
  font-size:.82rem;
  font-weight:700;
}
.notification-item p{
  margin:8px 0 0;
}
.checkbox-label{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:800;
}
@media(max-width:620px){
  .notification-panel-head,
  .notification-item{
    flex-direction:column;
  }
}


/* Account page spacing polish. */
.notification-panel,
.member-progress-panel,
.account-post-section{
  padding:30px;
}
.notification-list{
  margin-top:6px;
}
.account-post-wrap{
  margin-top:14px;
}
@media(max-width:720px){
  .notification-panel,
  .member-progress-panel,
  .account-post-section{
    padding:20px;
  }
}


/* Account post edit/delete controls. */
.account-post-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:6px;
  width:100%;
}
.account-post-actions form{
  margin:0;
}
.account-post-actions .button,
.account-post-actions button{
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  min-width:48px;
  max-width:48px;
  min-height:30px;
  padding:4px 0;
  font-size:.68rem;
  line-height:1;
  white-space:nowrap;
  transform:none;
}
.account-post-actions .button:hover,
.account-post-actions button:hover{
  transform:none;
}
.account-edit-post-form{
  max-width:980px;
  margin-inline:auto;
}
@media(max-width:720px){
  .account-post-table th:nth-child(1),
  .account-post-table td:nth-child(1){
    width:92px;
  }
  .account-post-table th:nth-child(3),
  .account-post-table td:nth-child(3){
    width:64px;
  }
  .account-post-actions{
    align-items:flex-end;
    flex-direction:column;
  }
}

/* Header notification bell. */
.header-user-line{
  display:inline-flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}
.header-notice-bell{
  position:relative;
  display:inline-grid;
  place-items:center;
  width:30px;
  height:30px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  color:#fff;
  background:rgba(255,255,255,.08);
  flex:0 0 auto;
}
.header-notice-bell-icon{
  position:relative;
  display:block;
  width:15px;
  height:16px;
  transform-origin:50% 0;
}
.header-notice-bell-icon::before{
  content:"";
  position:absolute;
  left:3px;
  top:2px;
  width:9px;
  height:10px;
  border:2px solid currentColor;
  border-bottom:0;
  border-radius:9px 9px 3px 3px;
}
.header-notice-bell-icon::after{
  content:"";
  position:absolute;
  left:5px;
  bottom:0;
  width:5px;
  height:2px;
  border-radius:999px;
  background:currentColor;
  box-shadow:2px -2px 0 -1px currentColor;
}
.header-notice-bell.has-unread{
  border-color:rgba(255,255,255,.48);
  background:#bb191f;
  box-shadow:0 0 0 3px rgba(187,25,31,.22);
}
.header-notice-bell.has-unread .header-notice-bell-icon{
  animation:headerBellRing 1.4s ease-in-out infinite;
}
.header-notice-bell.has-unread::before,
.header-notice-bell.has-unread::after{
  content:"";
  position:absolute;
  top:8px;
  width:5px;
  height:8px;
  border-top:2px solid currentColor;
  border-bottom:2px solid currentColor;
  opacity:.9;
}
.header-notice-bell.has-unread::before{
  left:4px;
  border-left:2px solid currentColor;
  border-radius:8px 0 0 8px;
}
.header-notice-bell.has-unread::after{
  right:4px;
  border-right:2px solid currentColor;
  border-radius:0 8px 8px 0;
}
.header-notice-count{
  position:absolute;
  right:-7px;
  top:-7px;
  display:grid;
  place-items:center;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border:2px solid #10181d;
  border-radius:999px;
  background:#fff;
  color:#bb191f;
  font-size:.62rem;
  font-weight:900;
  line-height:1;
}
@keyframes headerBellRing{
  0%,48%,100%{transform:rotate(0)}
  8%,24%{transform:rotate(15deg)}
  16%,32%{transform:rotate(-15deg)}
}
@media(max-width:800px){
  .header-user-line{
    justify-content:flex-start;
  }
}


/* Collapsed account settings. */
.account-settings-card{
  margin:18px 0;
  padding:0;
  overflow:hidden;
}
.account-settings-card summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:22px 30px;
  cursor:pointer;
  list-style:none;
}
.account-settings-card summary::-webkit-details-marker{
  display:none;
}
.account-settings-card summary::after{
  content:"+";
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--red);
  font-size:1.25rem;
  font-weight:900;
  line-height:1;
  flex:0 0 auto;
}
.account-settings-card[open] summary::after{
  content:"-";
}
.account-settings-card summary strong,
.account-settings-card summary small{
  display:block;
}
.account-settings-card summary strong{
  font-size:1.15rem;
}
.account-settings-card summary small{
  margin-top:4px;
  color:#6f7d86;
  font-weight:700;
}
.account-settings-body{
  display:grid;
  gap:22px;
  padding:0 30px 30px;
}
.account-setting-section{
  padding-top:22px;
  border-top:1px solid var(--line);
}
.account-setting-section h2{
  margin:0 0 6px;
  font-size:1rem;
}
.account-settings-body .compact-form{
  display:grid;
  gap:16px;
  width:min(100%,820px);
  margin-top:16px;
}
.account-settings-body input,
.account-settings-body textarea,
.account-settings-body select{
  width:100%;
}
@media(max-width:720px){
  .account-settings-card summary{
    padding:18px 20px;
  }
  .account-settings-body{
    padding:0 20px 20px;
  }
}


/* Account post pagination. */
.account-post-pager{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-top:14px;
}
.account-post-pager span{
  color:#66727b;
  font-size:.78rem;
  font-weight:800;
}
.account-post-pager .button{
  min-height:34px;
  padding:6px 12px;
}
@media(max-width:560px){
  .account-post-pager{
    align-items:stretch;
    flex-direction:column;
  }
}


/* Community top announcements. */
.community-announcements{
  margin:22px 0 26px;
  padding:22px 24px;
  border:1px solid #d9e0e6;
  border-left:5px solid #172026;
  border-radius:8px;
  background:#fff;
  box-shadow:0 14px 34px rgba(20,34,48,.08);
}
.community-announcements-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.community-announcements-head span{
  display:block;
  margin-bottom:4px;
  color:#b91824;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.1em;
}
.community-announcements-head h2{
  margin:0;
  color:#152332;
  font-size:1.25rem;
}
.community-announcement-list{
  display:grid;
  gap:12px;
}
.community-announcement-card{
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  gap:18px;
  padding:16px 0;
  border-top:1px solid #edf0f3;
}
.community-announcement-card:first-child{
  border-top:0;
  padding-top:0;
}
.community-announcement-card time{
  color:#b91824;
  font-size:.82rem;
  font-weight:900;
  letter-spacing:.04em;
}
.community-announcement-card h3{
  margin:0 0 6px;
  color:#152332;
  font-size:1rem;
  line-height:1.55;
}
.community-announcement-card p{
  margin:0;
  color:#4d5b68;
  font-size:.88rem;
  line-height:1.85;
}
.community-announcement-card a{
  display:inline-flex;
  margin-top:10px;
  color:#b91824;
  font-weight:800;
  text-decoration:none;
}
.inline-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.inline-actions form{
  margin:0;
}
@media(max-width:640px){
  .community-announcements{
    padding:18px;
  }
  .community-announcement-card{
    grid-template-columns:1fr;
    gap:6px;
  }
}


/* Mobile card overflow guard. */
@media(max-width:640px){
  main.community-main{
    width:min(100% - 32px,var(--max));
  }
  .community-hero,
  .signup-callout,
  .post-invite-card,
  .community-announcements,
  .ranking-panel,
  .post-card{
    max-width:100%;
    box-sizing:border-box;
  }
  .community-hero{
    gap:20px;
    padding:34px 0;
  }
  .signup-callout{
    padding:18px;
  }
  .community-hero .hero-actions,
  .signup-callout .hero-actions,
  .post-invite-actions{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
  }
  .community-hero .button,
  .signup-callout .button,
  .post-invite-card .button{
    width:100%;
    max-width:100%;
    min-width:0;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .ranking-body,
  .card-body,
  .community-announcement-card > div{
    min-width:0;
  }
  .ranking-body h3,
  .card-body h2,
  .community-announcement-card h3,
  .community-announcement-card p{
    overflow-wrap:anywhere;
  }
}


/* iPhone Safari hero overflow fix. */
@media(max-width:640px){
  .community-hero > div,
  .signup-callout,
  .hero-stats,
  .stat-card{
    min-width:0;
    max-width:100%;
  }
  .community-hero-title{
    width:100%;
    max-width:100%;
    font-size:clamp(1.48rem,6.9vw,1.9rem);
    line-height:1.32;
    letter-spacing:0;
  }
  .community-hero-title span{
    display:block;
    width:100%;
    max-width:100%;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:clip;
  }
  .signup-callout span,
  .signup-callout h2,
  .signup-callout p{
    max-width:100%;
    letter-spacing:0;
    overflow-wrap:anywhere;
  }
  .signup-callout h2{
    font-size:1.14rem;
    line-height:1.55;
  }
  .hero-stats{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
    min-width:0;
  }
  .stat-card{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    width:100%;
    min-width:0;
    max-width:100%;
    padding:15px 16px;
  }
  .stat-card b,
  .stat-card span{
    width:100%;
    max-width:100%;
    min-width:0;
    letter-spacing:0;
    white-space:normal;
    overflow-wrap:anywhere;
  }
}
@media(max-width:380px){
  .community-hero-title{
    font-size:clamp(1.32rem,6.6vw,1.62rem);
  }
}


/* iPhone Safari title specificity fix. */
@media(max-width:640px){
  .community-hero h1.community-hero-title{
    display:grid;
    gap:.12em;
    width:100%;
    max-width:100%;
    min-width:0;
    font-size:clamp(1.42rem,6.6vw,1.86rem);
    line-height:1.34;
    letter-spacing:0;
    overflow:hidden;
  }
  .community-hero h1.community-hero-title span{
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    white-space:nowrap;
    letter-spacing:0;
    overflow:hidden;
    text-overflow:clip;
  }
}
@media(max-width:380px){
  .community-hero h1.community-hero-title{
    font-size:clamp(1.28rem,6.1vw,1.58rem);
  }
}


/* iPhone Safari larger fixed-title fit. */
@media(max-width:640px){
  .community-hero h1.community-hero-title{
    font-size:clamp(1.56rem,7.2vw,2.04rem);
    line-height:1.28;
    letter-spacing:0;
  }
  .community-hero h1.community-hero-title span{
    width:108%;
    max-width:none;
    transform:scaleX(.92);
    transform-origin:left center;
  }
}
@media(max-width:380px){
  .community-hero h1.community-hero-title{
    font-size:clamp(1.42rem,6.9vw,1.72rem);
  }
  .community-hero h1.community-hero-title span{
    width:110%;
    transform:scaleX(.9);
  }
}
