:root{
  --bg:#fff;
  --menu:#f6f8f9;
  --ink:#111;
  --muted:#777;
  --line:#eaeaea;
  --accent:#ff2222;
  --rail:50px;
  --panel:250px;
  --sidebar:300px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  color:var(--ink);
  background:var(--bg);
}
*{box-sizing:border-box}
html{background:#fff}
body{margin:0;background:#fff;color:#111}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
button,input,textarea,select{font:inherit}

/* Legacy public shell */
.legacy-aside{position:fixed;inset:0 auto 0 0;width:230px;z-index:50;background:var(--menu);overflow-y:auto;scrollbar-width:none}
.legacy-aside::-webkit-scrollbar{display:none}
.legacy-menu-panel{width:100%;min-height:100%;background:var(--menu)}
.legacy-brand{text-align:center;padding:34px 22px 22px}
.legacy-brand img{display:block;width:128px;height:auto;margin:0 auto}
.legacy-description{font-size:10px;line-height:1.6;letter-spacing:.06em;color:#666;margin:14px auto 0;max-width:170px}
.legacy-nav{padding:8px 0 24px}
.legacy-nav a{display:block;padding:9px 28px;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;transition:color .08s}
.legacy-nav a:hover,.legacy-nav a.active{color:var(--accent)}
.legacy-social{display:flex;justify-content:center;align-items:center;gap:18px;padding:18px 24px 42px}
.legacy-social a{display:inline-flex;width:16px;height:16px;align-items:center;justify-content:center;color:#111}
.legacy-social svg{display:block;width:15px;height:15px;fill:currentColor;stroke:currentColor}
.public-shell{margin-left:230px;min-height:100vh;background:#fff}
.public-main{padding:34px 30px 70px;max-width:1560px}
.public-footer{padding:24px 30px 40px;color:#888;font-size:11px;letter-spacing:.06em}
.mobile-bar{display:none}
.mobile-drawer{display:none}

/* Common public typography */
.eyebrow,.kicker,.post-category{font-size:10px;line-height:1.4;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#777}
.page-head{border-bottom:1px solid var(--line);padding:5px 0 26px;margin-bottom:32px}
.page-head h1,.hero h1{font-family:"Arial Narrow","Helvetica Neue","Yu Gothic",sans-serif;font-size:clamp(32px,4vw,52px);line-height:1.16;letter-spacing:-.02em;margin:8px 0 8px;font-weight:700}
.page-head p,.hero .lead{font-size:14px;line-height:1.9;color:#666;max-width:780px;margin:8px 0}
.breadcrumb{font-size:10px;color:#777;letter-spacing:.08em;text-transform:uppercase;margin:0 0 18px}
.breadcrumb a:hover{color:var(--accent)}
.section-title-row{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:6px 0 24px}
.section-title{font-family:"Arial Narrow","Helvetica Neue","Yu Gothic",sans-serif;font-size:28px;line-height:1.2;margin:0;font-weight:700;letter-spacing:.02em}
.view-all{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.view-all:hover{color:var(--accent)}

/* Home/archive poster grid: intentionally uniform + small */
.poster-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px 34px;align-items:start}
.poster-card{min-width:0}
.poster-card-media{height:270px;background:#fafafa;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}
.poster-card-media img{width:100%;height:100%;object-fit:contain;display:block}
.poster-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;border:1px solid #f0f0f0;background:#fbfbfb}
.poster-placeholder img{width:90px;height:90px;object-fit:contain;opacity:.22}
.poster-card-body{padding-top:14px}
.poster-card-title{font-family:"Arial Narrow","Helvetica Neue","Yu Gothic",sans-serif;font-size:20px;line-height:1.35;font-weight:700;margin:6px 0 8px}
.poster-card-title a:hover{color:var(--accent)}
.poster-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:10px;font-weight:700;letter-spacing:.04em;color:#333;text-transform:uppercase}
.poster-venue{font-size:12px;color:#666;line-height:1.6;margin:8px 0 0}
.home-intro{display:flex;justify-content:space-between;gap:30px;align-items:flex-end;border-bottom:1px solid var(--line);padding:0 0 20px;margin:0 0 30px}
.home-intro h1{font-family:"Arial Narrow","Helvetica Neue","Yu Gothic",sans-serif;font-size:30px;line-height:1.2;margin:0;font-weight:700}
.home-intro p{font-size:12px;color:#777;margin:0;line-height:1.7}

/* Single event */
.detail{max-width:980px}
.detail-title{font-family:"Arial Narrow","Helvetica Neue","Yu Gothic",sans-serif;font-size:clamp(34px,4.5vw,58px);line-height:1.18;margin:7px 0 10px}
.detail-org{font-size:14px;color:#666;margin:0 0 24px}
.detail-poster-wrap{display:flex;justify-content:center;background:#fafafa;padding:22px;margin:18px 0 30px}
.detail-poster{display:block;max-width:min(700px,100%);max-height:820px;width:auto;height:auto;object-fit:contain}
.detail dl{display:grid;grid-template-columns:130px 1fr;margin:28px 0 0;border-top:1px solid var(--line)}
.detail dt,.detail dd{padding:12px 0;border-bottom:1px solid var(--line);margin:0;font-size:13px;line-height:1.7}
.detail dt{font-weight:800}
.content-copy{font-size:14px;line-height:2;white-space:pre-wrap;margin-top:32px}
.external-link{display:inline-block;margin-top:24px;border:1px solid #111;padding:11px 17px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.external-link:hover{background:#111;color:#fff}

/* Entry form - old theme visual, modern usability */
.notice-success{background:#f2fbf4;border-left:3px solid #4da568;padding:13px 15px;font-size:12px;font-weight:700;margin:0 0 26px}
.error{background:#fff3f3;border-left:3px solid #d14a4a;padding:13px 15px;margin:18px 0;color:#7d1e1e;font-size:13px;line-height:1.7}
form.panel,.panel{margin-top:22px;padding:0;background:#fff;border:0}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:24px 28px}
.field{display:flex;flex-direction:column;gap:7px}
.field.full{grid-column:1/-1}
.field label{font-size:12px;font-weight:800}
input,select,textarea{width:100%;border:1px solid #ddd;border-radius:0;background:#fff;padding:12px 12px;min-height:46px;outline:none}
input:focus,select:focus,textarea:focus{border-color:#111}
textarea{min-height:180px;resize:vertical}
.help{font-size:11px;color:#777;line-height:1.6}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
button,.button{appearance:none;border:1px solid #111;border-radius:0;background:#111;color:#fff;padding:11px 18px;font-size:11px;font-weight:800;letter-spacing:.06em;cursor:pointer;text-transform:uppercase}
button:hover,.button:hover{background:#fff;color:#111}
.button.sub{background:#fff;color:#111}

/* Plain pages */
.simple-page{max-width:850px}
.simple-page p{font-size:14px;line-height:2;color:#555}

/* OPS stays separate from public legacy design */
.ops-site{background:#f5f5f3}
.ops-header{background:#fff;border-bottom:1px solid #e6e6e2}
.ops-wrap{width:min(1120px,calc(100% - 32px));margin:auto}
.ops-head{min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.ops-brand{font-weight:850;font-size:20px}
.ops-nav{display:flex;gap:18px;flex-wrap:wrap}
.ops-nav a{font-size:12px;font-weight:800}
.ops-main{padding:42px 0 70px}
.ops-main .hero{padding:0 0 20px}
.ops-main .hero h1{font-size:clamp(32px,5vw,56px)}
.ops-main .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.ops-main .card{background:#fff;border:1px solid #e5e5df;padding:22px}
.ops-main .card h2{margin:0 0 8px}
.ops-main .pill{display:inline-block;border:1px solid #ddd;padding:5px 8px;font-size:10px;font-weight:800;margin-bottom:12px}
.status{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.ok,.wait,.bad{display:inline-block;padding:8px 10px;font-size:11px;font-weight:800}
.ok{background:#eaf7ee}.wait{background:#fff4da}.bad{background:#fdeaea}
table{width:100%;border-collapse:collapse;background:#fff;margin-top:18px}
th,td{text-align:left;padding:12px;border-bottom:1px solid #ecece8;font-size:12px;vertical-align:top}
th{background:#f2f2ee;font-size:10px}
.muted{color:#777;font-size:11px}
.ops-main .detail{max-width:850px}

/* Responsive */
@media(min-width:1540px){
  .poster-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .poster-card-media{height:285px}
}
@media(max-width:1100px){
  .poster-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:38px 26px}
}
@media(max-width:991px){
  .home-top{grid-template-columns:1fr;gap:22px}
  .legacy-aside{display:none}
  .mobile-bar{display:flex;position:sticky;top:0;z-index:60;height:56px;background:#212121;color:#fff;align-items:center;justify-content:space-between;padding:0 16px}
  .mobile-bar img{width:44px;height:44px;filter:brightness(0) invert(1);object-fit:contain}
  .mobile-menu-button{border:0;background:transparent;color:#fff;padding:8px;font-size:20px}
  .mobile-drawer{display:block;position:fixed;left:0;right:0;top:56px;background:#f6f8f9;z-index:59;padding:16px 0;transform:translateY(-130%);transition:transform .18s ease;border-bottom:1px solid #ddd}
  body.mobile-menu-open .mobile-drawer{transform:translateY(0)}
  .mobile-drawer a{display:block;padding:10px 22px;font-size:13px;font-weight:800}
  .mobile-drawer a.active{color:var(--accent)}
  .public-shell{margin-left:0}
  .public-main{padding:28px 20px 60px}
  .public-footer{padding-left:20px;padding-right:20px}
}
@media(max-width:680px){
  .poster-grid{grid-template-columns:1fr;gap:34px}
  .poster-card-media{height:330px}
  .fields{grid-template-columns:1fr}
  .field.full{grid-column:auto}
  .detail dl{grid-template-columns:1fr}
  .detail dt{padding-bottom:2px;border-bottom:0}
  .detail dd{padding-top:2px}
  .home-intro{align-items:flex-start;flex-direction:column}
  .ops-head{align-items:flex-start;flex-direction:column;padding:15px 0}
  .ops-main .grid{grid-template-columns:1fr}
}


.home-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(400px,560px);gap:34px;align-items:center;padding:0 0 34px;margin-bottom:34px;border-bottom:1px solid var(--line)}
.home-info .post-category{margin-bottom:7px}
.home-info h1{font-family:"Arial Narrow","Helvetica Neue","Yu Gothic",sans-serif;font-size:30px;line-height:1.3;margin:0 0 10px;font-weight:700}
.home-info p{max-width:720px;color:#666;font-size:13px;line-height:1.9;margin:0}
.info-banner-link{display:block;overflow:hidden;background:#111}
.info-banner-link img{display:block;width:100%;height:auto}
.info-banner-link:hover{opacity:.94}


.group-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:28px}
.group-card{border-top:2px solid #111;padding:18px 0 6px}
.group-card h2{font-family:"Arial Narrow","Helvetica Neue","Yu Gothic",sans-serif;font-size:22px;line-height:1.35;margin:5px 0 8px}
.group-card p{font-size:12px;line-height:1.8;color:#666;margin:5px 0}
.soumu-badge{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:800;letter-spacing:.06em;color:#111}
.soumu-badge:before{content:"";width:7px;height:7px;border-radius:50%;background:#111}
.soumu-cta{margin-top:46px;padding:30px;border:1px solid #111;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:28px}
.soumu-cta h2{font-family:"Arial Narrow","Helvetica Neue","Yu Gothic",sans-serif;font-size:28px;line-height:1.35;margin:0 0 8px}
.soumu-cta p{font-size:13px;line-height:1.8;color:#666;margin:0;max-width:700px}
@media(max-width:991px){
  .group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .soumu-cta{grid-template-columns:1fr}
}
@media(max-width:680px){
  .group-grid{grid-template-columns:1fr}
  .soumu-cta{padding:22px}
  .poster-card-title{font-size:18px}
  .poster-card-media{height:290px}
}


/* ===== v0.1.6 ===== */
.home-poster-only{padding-top:0}
.home-poster-only .poster-grid{margin-top:0}

.ops-main .stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 28px}
.ops-stat{display:block;background:#fff;border:1px solid #e5e5df;padding:20px}
.ops-stat strong{display:block;font-size:30px;line-height:1.1;margin:6px 0}
.ops-stat span{font-size:11px;color:#666}
.ops-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:22px}
.ops-page-head h1{margin:0;font-size:40px;line-height:1.15}
.ops-page-head p{margin:5px 0 0;color:#666;font-size:12px}
.ops-toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:0 0 18px}
.ops-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.ops-filter{display:inline-flex;padding:8px 11px;border:1px solid #ddd;background:#fff;font-size:11px;font-weight:800}
.ops-filter.active{background:#111;color:#fff;border-color:#111}
.ops-search{display:flex;gap:8px;min-width:min(100%,430px)}
.ops-search input{min-height:39px;padding:8px 10px}
.ops-search button{padding:8px 14px}
.status-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;font-size:10px;font-weight:800;white-space:nowrap}
.status-badge:before{content:"";width:7px;height:7px;border-radius:50%}
.status-published{background:#e9f7ed;color:#1f6534}.status-published:before{background:#2d8a4a}
.status-draft{background:#f2f2ef;color:#555}.status-draft:before{background:#888}
.status-rejected{background:#fdecec;color:#8b2424}.status-rejected:before{background:#c44}
.status-pending{background:#fff4da;color:#7f5a08}.status-pending:before{background:#d79a00}
.event-manage-title{font-weight:800;font-size:13px;line-height:1.5}
.event-manage-sub{font-size:11px;color:#777;line-height:1.5;margin-top:3px}
.ops-actions-inline{display:flex;gap:6px;flex-wrap:wrap}
.ops-action{display:inline-flex;align-items:center;justify-content:center;border:1px solid #ccc;background:#fff;padding:7px 9px;font-size:10px;font-weight:800;cursor:pointer;color:#111;text-decoration:none}
.ops-action:hover{border-color:#111}
.ops-action.primary{background:#111;color:#fff;border-color:#111}
.ops-action.danger{color:#9b1c1c;border-color:#e0bcbc}
.ops-action.success{color:#216c3b;border-color:#b9d6c2}
.ops-table-wrap{overflow-x:auto;border:1px solid #e5e5df;background:#fff}
.ops-table-wrap table{margin:0;min-width:960px}
.ops-edit{max-width:920px}
.ops-edit .fields{margin-top:20px}
.ops-edit textarea{min-height:220px}
.ops-empty{padding:34px;text-align:center;color:#777;background:#fff;border:1px solid #e5e5df}
.ops-modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:200;display:none;align-items:center;justify-content:center;padding:20px}
.ops-modal-backdrop.open{display:flex}
.ops-modal{width:min(480px,100%);background:#fff;padding:26px;border:1px solid #111}
.ops-modal h2{font-size:22px;margin:0 0 10px}
.ops-modal p{font-size:13px;line-height:1.8;color:#555;margin:0}
.ops-modal .actions{justify-content:flex-end}
.ops-modal .danger-confirm{background:#a91e1e;border-color:#a91e1e}
.ops-modal .danger-confirm:hover{background:#fff;color:#a91e1e}
@media(max-width:991px){
  .ops-main .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ops-page-head h1{font-size:32px}
}
@media(max-width:680px){
  .ops-main .stat-grid{grid-template-columns:1fr 1fr}
  .ops-search{min-width:100%}
}


/* ===== v0.1.7 OPS wide layout ===== */
.ops-wrap{
  width:min(1500px,calc(100% - 40px));
  margin:auto;
}
.ops-table-wrap table{
  min-width:1220px;
  table-layout:auto;
}
.ops-table-wrap th:nth-child(1),
.ops-table-wrap td:nth-child(1){
  width:92px;
  white-space:nowrap;
}
.ops-table-wrap th:nth-child(2),
.ops-table-wrap td:nth-child(2){
  width:112px;
  min-width:112px;
  white-space:nowrap;
}
.ops-table-wrap th:nth-child(3),
.ops-table-wrap td:nth-child(3){
  min-width:390px;
}
.ops-table-wrap th:nth-child(4),
.ops-table-wrap td:nth-child(4){
  min-width:250px;
}
.ops-table-wrap th:nth-child(5),
.ops-table-wrap td:nth-child(5){
  width:110px;
  white-space:nowrap;
}
.ops-table-wrap th:nth-child(6),
.ops-table-wrap td:nth-child(6){
  width:290px;
  min-width:290px;
  white-space:nowrap;
}
.ops-actions-inline{
  flex-wrap:nowrap;
  align-items:center;
}
.ops-action{
  flex:0 0 auto;
  white-space:nowrap;
  padding:7px 10px;
}
@media(max-width:1100px){
  .ops-wrap{
    width:calc(100% - 24px);
  }
  .ops-table-wrap{
    overflow-x:auto;
  }
}


/* ===== v0.1.8 SOUMU preview / Instagram ===== */
.soumu-preview{max-width:1080px}
.soumu-preview-head{padding:8px 0 30px;border-bottom:1px solid var(--line)}
.soumu-preview-head h1{font-family:"Arial Narrow","Helvetica Neue","Yu Gothic",sans-serif;font-size:clamp(34px,4vw,54px);line-height:1.22;margin:8px 0 12px}
.soumu-preview-head p{font-size:14px;line-height:1.9;color:#666;max-width:820px;margin:0}
.soumu-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 24px;margin-top:36px}
.soumu-feature{border-top:2px solid #111;padding-top:15px}
.soumu-feature .num{font-size:10px;font-weight:800;letter-spacing:.1em;color:#888}
.soumu-feature h2{font-size:20px;line-height:1.4;margin:7px 0}
.soumu-feature p{font-size:12px;line-height:1.85;color:#666;margin:0}
.notice-error{background:#fdecec;border:1px solid #efc5c5;color:#8b2424;padding:12px 14px;margin:0 0 16px;font-size:12px;line-height:1.7}
.ops-help{font-size:11px;line-height:1.8;color:#666}
.ig-settings-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:18px;align-items:start}
.ig-settings-grid .panel{margin-top:0}
.ig-connected-card{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0}
.ig-connected-card strong{font-size:19px}
.ig-badge{display:inline-flex;align-items:center;padding:5px 8px;font-size:10px;font-weight:800;white-space:nowrap}
.ig-badge.connected,.ig-badge.published{background:#e9f7ed;color:#1f6534}
.ig-badge.failed{background:#fdecec;color:#8b2424}
.ig-badge.processing{background:#fff4da;color:#7f5a08}
.ig-badge.none{background:#f2f2ef;color:#666}
.ig-status-cell{display:flex;gap:7px;align-items:center;white-space:nowrap}
.ig-post-link{font-size:10px;font-weight:800;text-decoration:underline;text-underline-offset:2px}
.ig-switch-row{display:flex;align-items:center;gap:8px;min-height:42px;font-size:12px;font-weight:600}
.ig-switch-row input{width:auto;min-height:0}
.ig-callback{margin-top:16px;padding:12px;background:#f4f4f0;display:grid;gap:6px}
.ig-callback span{font-size:10px;font-weight:800;color:#666}
.ig-callback code{display:block;overflow-wrap:anywhere;font-size:11px}
.ig-connect-button{background:#111;color:#fff}
.ig-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}
.ig-flow>div{border-top:2px solid #111;padding:12px 0;display:grid;gap:5px}
.ig-flow strong{font-size:11px}.ig-flow span{font-size:11px;line-height:1.6;color:#555}
.ig-panel{max-width:920px}
.ig-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ig-panel-head h2{margin:4px 0 0}
.ig-account-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:12px 0}

/* seven columns after Instagram status was added */
.ops-table-wrap table{min-width:1320px}
.ops-table-wrap th:nth-child(6),
.ops-table-wrap td:nth-child(6){width:120px;min-width:120px;white-space:nowrap}
.ops-table-wrap th:nth-child(7),
.ops-table-wrap td:nth-child(7){width:290px;min-width:290px;white-space:nowrap}

@media(max-width:991px){
  .soumu-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ig-settings-grid{grid-template-columns:1fr}
  .ig-flow{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
  .soumu-feature-grid{grid-template-columns:1fr}
  .soumu-preview-head h1 br{display:none}
  .ig-flow{grid-template-columns:1fr 1fr}
}


/* ===== v0.1.10 OPS panel spacing ===== */
.ops-main form.panel,
.ops-main .panel{
  margin-top:22px;
  padding:26px 28px;
  background:#fff;
  border:1px solid #e5e5df;
}

.ig-settings-grid{
  gap:22px;
}

.ig-settings-grid .panel{
  margin-top:0;
  padding:28px 30px;
}

.ops-main .panel > .kicker:first-child{
  margin-top:0;
}

.ops-main .panel h2{
  margin-top:8px;
}

@media(max-width:680px){
  .ops-main form.panel,
  .ops-main .panel,
  .ig-settings-grid .panel{
    padding:22px 20px;
  }
}


/* ===== v0.1.12 OPS loading / safe confirmation ===== */
.ops-modal{position:relative}
.ops-modal-x{
  position:absolute;
  top:12px;
  right:12px;
  width:34px;
  height:34px;
  min-height:0;
  padding:0;
  display:grid;
  place-items:center;
  border:0;
  background:transparent;
  color:#111;
  font-size:25px;
  line-height:1;
  cursor:pointer;
}
.ops-modal-x:hover{background:#f1f1ee;color:#111}
.ops-loading-overlay{
  position:fixed;
  inset:0;
  z-index:400;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(245,245,242,.86);
  backdrop-filter:blur(2px);
}
.ops-loading-overlay.open{display:flex}
.ops-loading-box{
  width:min(420px,100%);
  background:#fff;
  border:1px solid #111;
  padding:30px;
  text-align:center;
  box-shadow:0 20px 60px rgba(0,0,0,.12);
}
.ops-loading-box strong{
  display:block;
  margin-top:16px;
  font-size:20px;
  line-height:1.45;
}
.ops-loading-box p{
  margin:8px 0 0;
  color:#666;
  font-size:12px;
  line-height:1.8;
}
.ops-spinner{
  display:block;
  width:36px;
  height:36px;
  margin:0 auto;
  border:3px solid #ddd;
  border-top-color:#111;
  border-radius:50%;
  animation:ops-spin .75s linear infinite;
}
@keyframes ops-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){
  .ops-spinner{animation-duration:1.8s}
}


/* ===== v0.1.14 Instagram icon + PWA ===== */
.legacy-social a{
  width:24px;
  height:24px;
}
.legacy-social svg{
  display:block;
  width:22px;
  height:22px;
  fill:none !important;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.legacy-social svg rect,
.legacy-social svg circle{
  fill:none !important;
}
.legacy-social svg circle:last-child{
  fill:currentColor !important;
  stroke:none !important;
}

.ops-pwa-card{align-self:stretch}
.ops-pwa-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:16px;
}
.ops-push-state{
  margin:14px 0 0;
  font-size:12px;
  line-height:1.7;
  font-weight:700;
}
.ops-pwa-hint{
  margin:8px 0 0;
  font-size:11px;
  line-height:1.7;
  color:#777;
}


/* ===== v0.1.15 EVENT ENTRY confirm / complete ===== */
.entry-confirm-card{
  background:#fff;
  border:1px solid #e3e3de;
  padding:26px 28px;
}
.entry-confirm-list{
  margin:0;
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
}
.entry-confirm-list dt,
.entry-confirm-list dd{
  margin:0;
  padding:14px 0;
  border-bottom:1px solid #ecece7;
  font-size:13px;
  line-height:1.8;
}
.entry-confirm-list dt{
  padding-right:24px;
  font-weight:800;
  color:#555;
}
.entry-confirm-list dd{
  min-width:0;
  overflow-wrap:anywhere;
}
.entry-confirm-list dt:last-of-type,
.entry-confirm-list dd:last-of-type{
  border-bottom:0;
}
.entry-confirm-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-top:22px;
}
.entry-confirm-actions form{margin:0}
.entry-complete{
  max-width:720px;
  margin:40px auto;
  padding:48px 40px;
  background:#fff;
  border:1px solid #e3e3de;
  text-align:center;
}
.entry-complete-mark{
  width:58px;
  height:58px;
  margin:0 auto 20px;
  display:grid;
  place-items:center;
  border:2px solid #111;
  border-radius:50%;
  font-size:26px;
  font-weight:800;
}
.entry-complete h1{
  margin:8px 0 14px;
  font-size:clamp(30px,5vw,46px);
  line-height:1.25;
}
.entry-complete p{
  margin:0 auto;
  max-width:520px;
  font-size:14px;
  line-height:1.9;
  color:#666;
}
.entry-complete .actions{
  justify-content:center;
  margin-top:28px;
}

@media(max-width:680px){
  .entry-confirm-card{padding:20px}
  .entry-confirm-list{grid-template-columns:1fr}
  .entry-confirm-list dt{
    padding:12px 0 2px;
    border-bottom:0;
  }
  .entry-confirm-list dd{
    padding:2px 0 12px;
  }
  .entry-confirm-actions{
    align-items:stretch;
    flex-direction:column-reverse;
  }
  .entry-confirm-actions form,
  .entry-confirm-actions .button,
  .entry-confirm-actions button{
    width:100%;
  }
  .entry-complete{
    margin:20px 0;
    padding:36px 22px;
  }
}

.ops-push-detail{
  margin:6px 0 0;
  min-height:1.5em;
  font-size:11px;
  line-height:1.7;
  color:#666;
  overflow-wrap:anywhere;
}


/* ===== v0.1.21 OPS Push diagnostics ===== */
.ops-push-diagnostics{
  margin:16px 0 0;
  padding:12px 14px;
  background:#f6f6f3;
  border:1px solid #e2e2dd;
}
.ops-push-diagnostics > div{
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:12px;
  padding:6px 0;
  border-bottom:1px solid #e6e6e1;
}
.ops-push-diagnostics > div:last-child{border-bottom:0}
.ops-push-diagnostics dt,
.ops-push-diagnostics dd{
  margin:0;
  font-size:11px;
  line-height:1.6;
}
.ops-push-diagnostics dt{font-weight:800;color:#555}
.ops-push-diagnostics dd{overflow-wrap:anywhere}
@media(max-width:600px){
  .ops-push-diagnostics > div{grid-template-columns:1fr;gap:2px}
}


/* ===== v0.1.27 GROUP LIST ===== */
.group-poster-grid{margin-bottom:74px}
.group-poster-card .poster-card-media{background:#fff}
.group-soumu-section{max-width:none;padding-top:34px;border-top:1px solid var(--line)}
.group-soumu-head{padding:5px 0 26px;border-bottom:1px solid var(--line)}
.group-soumu-head h2{
  font-family:"Arial Narrow","Helvetica Neue","Yu Gothic",sans-serif;
  font-size:clamp(32px,4vw,52px);
  line-height:1.16;
  letter-spacing:-.02em;
  margin:8px 0 8px;
  font-weight:700;
}
.group-soumu-head p{font-size:14px;line-height:1.9;color:#666;max-width:780px;margin:8px 0 0}
.soumu-feature h3{font-size:20px;line-height:1.4;margin:7px 0}
.group-profile-list dd{white-space:pre-wrap}
.group-image-wrap{background:#fff}
.group-image{max-height:720px}
.group-introduction{max-width:900px}
.group-external-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.group-external-links .external-link{margin-top:0}
@media(max-width:680px){
  .group-poster-grid{margin-bottom:54px}
  .group-soumu-section{padding-top:26px}
}


/* ===== v0.1.28 OPS access stats ===== */
.ops-access-panel{
  margin:0 0 28px;
  padding:22px;
  background:#f7f7f4;
  border:1px solid #e5e5df;
}
.ops-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}
.ops-section-head h2{
  margin:8px 0 4px;
  font-size:26px;
  line-height:1.2;
}
.ops-section-head p{
  margin:0;
  color:#666;
  font-size:11px;
  line-height:1.7;
}
.ops-access-panel .stat-grid{
  margin:0 0 16px;
}
.ops-access-top{
  background:#fff;
  border:1px solid #e5e5df;
  padding:16px 18px;
}
.ops-access-top h3{
  margin:0 0 10px;
  font-size:13px;
}
.ops-access-top ol{
  margin:0;
  padding:0;
  list-style:none;
}
.ops-access-top li{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:9px 0;
  border-top:1px solid #eee;
  font-size:12px;
}
.ops-access-top li:first-child{border-top:0}
.ops-access-top code{
  overflow-wrap:anywhere;
  font-family:inherit;
  color:#444;
}
.ops-access-top strong{
  flex:0 0 auto;
  font-size:11px;
}
@media(max-width:680px){
  .ops-access-panel{padding:16px}
  .ops-access-top li{gap:10px}
}


/* ===== v0.1.30 OPS GROUP management ===== */
.ops-group-list{display:grid;gap:14px}
.ops-group-row{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:20px;
  padding:18px;
  border:1px solid #e4e4df;
  background:#fff;
}
.ops-group-thumb{
  aspect-ratio:4/3;
  overflow:hidden;
  background:#f3f3ef;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#999;
  font-size:11px;
}
.ops-group-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.ops-group-main h2{
  margin:8px 0 6px;
  font-size:23px;
  line-height:1.3;
}
.ops-group-main p{margin:0 0 14px;color:#666;line-height:1.7}
.ops-group-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ops-group-current-image{
  max-width:640px;
  margin:0 0 18px;
  padding:14px;
  border:1px solid #e4e4df;
  background:#fff;
}
.ops-group-current-image img{
  display:block;
  width:100%;
  height:auto;
  max-height:480px;
  object-fit:contain;
}
.ops-group-edit-form textarea{min-height:140px}
.ops-group-edit-form textarea[name="introduction"]{min-height:260px}
.checkbox-line{
  display:flex !important;
  align-items:center;
  gap:8px;
}
.checkbox-line input{width:auto !important}
@media(max-width:680px){
  .ops-group-row{grid-template-columns:1fr}
  .ops-group-thumb{max-width:280px}
}


/* ===== v0.1.33 ACCESS bot filter / decoded path ===== */
.ops-access-path{
  min-width:0;
  overflow-wrap:anywhere;
  color:#444;
  text-decoration:none;
}
.ops-access-path:hover,
.ops-access-path:focus{
  text-decoration:underline;
}
