/* split from original index.html - 2026-06-20 */

:root{
  --bg:#f4f7fb;
  --surface:#ffffff;
  --surface-soft:#f8fbff;
  --surface-blue:#eef6ff;
  --ink:#1d2733;
  --muted:#6b7a8c;
  --line:#dbe6f0;
  --primary:#2563eb;
  --primary2:#06b6d4;
  --accent:#f472b6;
  --success:#16a34a;
  --warning:#d97706;
  --danger:#dc2626;
  --shadow:0 14px 34px rgba(31,60,93,.12);
  --shadow-soft:0 8px 20px rgba(31,60,93,.08);
  --radius:18px;
}
*{box-sizing:border-box;}
html,body{
  margin:0;
  min-height:100%;
  font-family:"Inter","Noto Sans JP","Yu Gothic","Meiryo",system-ui,sans-serif;
  color:var(--ink);
}
body{
  background:
    radial-gradient(circle at 8% 0%,rgba(37,99,235,.13),transparent 28%),
    radial-gradient(circle at 100% 8%,rgba(6,182,212,.12),transparent 30%),
    linear-gradient(180deg,#f8fbff,#f4f7fb);
  padding:18px;
  overflow-x:hidden;
}
button,input,select,textarea{font:inherit;}
button{
  border:0;
  border-radius:12px;
  padding:9px 15px;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:white;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(37,99,235,.22);
  transition:.14s ease;
}
button:hover{transform:translateY(-1px);filter:brightness(1.04);}
button.secondary{
  background:#fff;
  color:var(--primary);
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
}
button.danger{
  background:linear-gradient(135deg,#ef4444,#f97316);
}
button.small{font-size:12px;padding:5px 10px;border-radius:10px;}
input,select,textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  padding:9px 11px;
  background:#fff;
  outline:none;
}
input:focus,select:focus,textarea:focus{
  border-color:rgba(37,99,235,.6);
  box-shadow:0 0 0 4px rgba(37,99,235,.1);
}
textarea{resize:vertical;min-height:72px;}
label{
  font-size:12px;
  color:var(--muted);
  font-weight:800;
  display:block;
  margin:9px 0 5px;
}
.hidden{display:none!important;}
.app{
  max-width:1400px;
  margin:0 auto;
}
.app::before{
  content:"LINKSHELL COMMUNITY PORTAL";
  display:block;
  margin:0 0 10px;
  color:var(--primary);
  font-size:12px;
  font-weight:900;
  letter-spacing:.18em;
}
.card{
  background:rgba(255,255,255,.88);
  border:1px solid rgba(219,230,240,.9);
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
  padding:16px;
  backdrop-filter:blur(10px);
}
.header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
  padding:22px 24px;
  border-radius:26px;
  background:
    linear-gradient(135deg,rgba(15,23,42,.92),rgba(30,64,175,.82)),
    linear-gradient(135deg,#1d4ed8,#06b6d4);
  color:white;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}
.header::before{
  content:"";
  position:absolute;
  right:-80px;
  top:-110px;
  width:280px;
  height:280px;
  border-radius:50%;
  background:rgba(255,255,255,.13);
}
.header::after{
  content:"";
  position:absolute;
  right:130px;
  bottom:-70px;
  width:160px;
  height:160px;
  border-radius:50%;
  background:rgba(6,182,212,.25);
}
.title{
  position:relative;
  z-index:1;
  font-size:30px;
  font-weight:900;
  letter-spacing:.02em;
}
.title::before{content:"◇ ";color:#67e8f9;}
.title::after{
  content:"Activities / Reservations / Member Board";
  display:block;
  margin-top:4px;
  color:#c7d2fe;
  font-size:12px;
  letter-spacing:.08em;
  font-weight:800;
}
.toolbar{
  position:relative;
  z-index:1;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.login-wrap{
  min-height:calc(100vh - 36px);
  display:grid;
  place-items:center;
}
.login-card{
  width:min(440px,100%);
  background:rgba(255,255,255,.94);
}
.login-card h1{
  margin:0 0 8px;
  color:var(--primary);
  font-size:26px;
}
.login-card p{
  margin:0 0 14px;
  color:var(--muted);
  font-size:13px;
  line-height:1.65;
}
.login-actions{
  display:flex;
  gap:8px;
  margin-top:14px;
  align-items:center;
  flex-wrap:wrap;
}
.notice{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:12px;
  margin-bottom:12px;
}
.notice-list{
  max-height:78px;
  overflow:auto;
  padding-right:4px;
}
.notice-item{
  display:grid;
  grid-template-columns:96px 1fr;
  gap:9px;
  padding:7px 0;
  border-bottom:1px solid var(--line);
  font-size:13px;
}
.notice-date{
  color:var(--muted);
  font-weight:900;
}
.comment-time{
  font-size:10px;
  color:#94a3b8;
  font-weight:800;
}
.main-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:12px;
}
.timeline-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
}
.timeline-title{
  font-size:23px;
  font-weight:900;
  color:var(--ink);
}
.timeline-title::before{
  content:"";
  display:inline-block;
  width:10px;
  height:22px;
  border-radius:999px;
  background:linear-gradient(180deg,var(--primary),var(--primary2));
  margin-right:8px;
  vertical-align:-4px;
}
.day-tabs{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
  margin-bottom:10px;
}
.day-tab{
  border-radius:16px;
  padding:10px 7px;
  background:#fff;
  color:var(--ink);
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  font-size:12px;
  line-height:1.3;
}
.day-tab.active{
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:white;
  border-color:transparent;
  box-shadow:0 12px 24px rgba(37,99,235,.24);
}
.timeline{
  border-radius:22px;
  border:1px solid var(--line);
  background:#fff;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
  min-height:1300px;
}
.day-title{
  background:linear-gradient(90deg,#f8fbff,#eef6ff);
  border-bottom:1px solid var(--line);
  padding:10px 12px;
  font-weight:900;
  color:var(--primary);
  display:flex;
  justify-content:space-between;
  font-size:14px;
  gap:4px;
}
.day-title span:last-child{
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}
.time-grid{
  display:grid;
  grid-template-columns:66px 1fr;
}
.time-labels{
  background:#f8fbff;
  border-right:1px solid var(--line);
}
.time-label{
  height:41px;
  border-bottom:1px solid #edf3f8;
  font-size:11px;
  color:var(--muted);
  padding:4px 7px;
  text-align:right;
}
.time-label.hour{
  font-weight:900;
  color:#334155;
  background:#f8fbff;
}
.time-label.half{
  font-size:10px;
  color:#94a3b8;
  background:#fbfdff;
}
.time-label.end{
  height:0;
  border-bottom:0;
  transform:translateY(-9px);
  font-weight:900;
  color:#334155;
  background:transparent;
}
.lane{
  position:relative;
  background:repeating-linear-gradient(to bottom,#fff 0,#fff 40px,#edf3f8 41px,#fff 42px,#fff 81px,#dbe7f1 82px);
  min-height:1230px;
}
.activity{
  position:absolute;
  left:12px;
  right:12px;
  border-radius:18px;
  border:1px solid #cfe0f0;
  background:linear-gradient(135deg,#f8fbff,#fff 60%,#f0f9ff);
  box-shadow:0 10px 20px rgba(31,60,93,.12);
  padding:7px 12px;
  cursor:pointer;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.activity::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:6px;
  background:linear-gradient(180deg,var(--primary),var(--primary2));
}
.activity:hover{
  outline:3px solid rgba(37,99,235,.13);
}
.activity-top{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  align-items:center;
  border-bottom:1px dashed #d7e4ef;
  padding-bottom:4px;
  margin-bottom:2px;
  flex-shrink:0;
}
.activity-title{
  font-weight:900;
  color:#1e3a5f;
  font-size:15px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  padding-left:3px;
}
.activity-meta{
  font-size:11px;
  color:var(--primary);
  font-weight:900;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  border-radius:999px;
  padding:2px 8px;
  white-space:nowrap;
}
.activity-members{
  font-size:11px;
  display:flex;
  gap:4px;
  flex-wrap:wrap;
  line-height:1.25;
  overflow:hidden;
}
.badge{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:1px 6px;
  font-weight:900;
}
.badge.join{background:#dcfce7;color:#15803d;}
.badge.no{background:#fee2e2;color:#b91c1c;}
.badge.maybe{background:#fef3c7;color:#92400e;}
.badge.empty{background:#f1f5f9;color:#64748b;}
.job-grid{
  display:grid;
  grid-template-columns:repeat(8,1fr);
  gap:6px;
  margin:10px 0;
}
.job-chip{
  border-radius:12px;
  padding:7px 0;
  background:#f8fafc;
  color:#334155;
  border:1px solid var(--line);
  box-shadow:none;
  font-weight:900;
  font-size:13px;
}
.job-chip.selected{
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:white;
  border-color:transparent;
  box-shadow:0 8px 16px rgba(37,99,235,.2);
}
.job-list{
  display:inline-flex;
  gap:3px;
  flex-wrap:wrap;
  margin-left:4px;
}
.job-mini{
  background:#eff6ff;
  color:#1d4ed8;
  border:1px solid #bfdbfe;
  border-radius:999px;
  padding:0 4px;
  font-size:10px;
  font-weight:900;
}
.side{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.panel-title{
  font-weight:900;
  color:var(--ink);
  margin-bottom:9px;
  font-size:15px;
  display:flex;
  align-items:center;
  gap:7px;
}
.panel-title::after{
  content:"";
  height:1px;
  flex:1;
  background:var(--line);
}
.member-list{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.member-pill{
  background:#eff6ff;
  border:1px solid #bfdbfe;
  border-radius:999px;
  padding:5px 10px;
  font-size:12px;
  font-weight:900;
  color:#1d4ed8;
}
.admin-form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.activity-admin-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:45vh;
  overflow:auto;
  padding-right:3px;
}
.admin-item{
  border:1px solid var(--line);
  border-radius:16px;
  padding:10px;
  background:#fff;
}
.admin-item-top{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:flex-start;
}
.admin-item-name{
  font-weight:900;
  color:var(--ink);
}
.admin-item-sub{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}
.modal-bg{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.45);
  display:grid;
  place-items:center;
  padding:14px;
  z-index:20;
}
.modal{
  width:min(560px,100%);
  max-height:calc(100vh - 28px);
  overflow:auto;
  background:#fff;
  border-radius:24px;
  padding:18px;
  box-shadow:0 24px 64px rgba(15,23,42,.24);
}
.modal h2{
  margin:0 0 8px;
  color:var(--ink);
  font-size:21px;
}
.admin-menu{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:10px;
}
.admin-menu button{
  border-radius:18px;
  min-height:62px;
  text-align:left;
  padding:12px;
  box-shadow:none;
}
.admin-menu .menu-title{
  display:block;
  font-size:15px;
  font-weight:900;
}
.admin-menu .menu-sub{
  display:block;
  font-size:11px;
  opacity:.88;
  margin-top:4px;
  line-height:1.35;
}
.subpage-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
}
.response-options{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:12px 0;
}
.response-options button{
  box-shadow:none;
  border:1px solid transparent;
}
.response-options .join{background:#16a34a;}
.response-options .maybe{background:#f59e0b;color:#452a03;}
.response-options .no{background:#ef4444;}
.modal-actions{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  margin-top:12px;
  flex-wrap:wrap;
}
.note{
  font-size:12px;
  color:var(--muted);
  line-height:1.55;
}
.toast{
  position:fixed;
  left:50%;
  bottom:20px;
  transform:translateX(-50%);
  background:#0f172a;
  color:white;
  padding:9px 16px;
  border-radius:999px;
  font-weight:900;
  box-shadow:var(--shadow);
  z-index:30;
  opacity:0;
  pointer-events:none;
  transition:.2s;
}
.toast.show{opacity:1;bottom:28px;}
.menu-button{
  min-width:48px;
  height:42px;
  font-size:24px;
  line-height:1;
  padding:6px 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.side-menu-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.35);
  z-index:18;
}
.side-menu{
  position:fixed;
  top:16px;
  right:16px;
  width:min(310px,calc(100vw - 32px));
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:0 24px 64px rgba(15,23,42,.24);
  padding:14px;
  z-index:19;
}
.side-menu-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  margin-bottom:12px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
}
.side-menu-title{
  font-weight:900;
  color:var(--primary);
  letter-spacing:.14em;
}
.side-menu-sub{
  font-size:12px;
  color:var(--muted);
  font-weight:800;
  margin-top:2px;
}
.side-menu-item{
  width:100%;
  display:block;
  text-align:left;
  margin-top:8px;
  border-radius:16px;
  padding:12px 14px;
  box-shadow:none;
}
.limbus-modal{
  width:min(860px,calc(100vw - 24px));
}
.limbus-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.limbus-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:8px 0;
}
.limbus-board{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.limbus-card{
  border:1px solid var(--line);
  border-radius:20px;
  padding:13px;
  box-shadow:var(--shadow-soft);
}
.limbus-apo{background:linear-gradient(135deg,#eff6ff,#fff);}
.limbus-tem{background:linear-gradient(135deg,#fdf2f8,#fff);}
.limbus-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
}
.limbus-title{
  font-size:18px;
  font-weight:900;
  color:var(--ink);
}
.limbus-count{
  font-weight:900;
  color:var(--primary);
  background:#eff6ff;
  border:1px solid #bfdbfe;
  border-radius:999px;
  padding:4px 10px;
  white-space:nowrap;
}
.limbus-particles{
  display:grid;
  grid-template-columns:auto 1fr auto 1fr;
  align-items:center;
  gap:6px;
  margin-bottom:10px;
  font-size:12px;
  font-weight:900;
  color:var(--muted);
}
.limbus-particles input{
  text-align:center;
  padding:6px 8px;
}
.limbus-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.limbus-grid label{
  margin:0;
  color:var(--ink);
  text-align:center;
}
.limbus-grid select{
  margin-top:4px;
  text-align:center;
  text-align-last:center;
}
.limbus-grid select.limbus-hit{background:#dcfce7;}
.limbus-grid select.limbus-miss{background:#fee2e2;}
.limbus-grid select.limbus-wait{background:#fff;}
.limbus-details{
  margin-top:10px;
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:16px;
  padding:8px;
}
.limbus-details summary{
  cursor:pointer;
  font-weight:900;
  color:var(--primary);
}
.limbus-adjust-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin:8px 0;
  flex-wrap:wrap;
}
.limbus-last{
  font-size:12px;
  font-weight:900;
  color:var(--muted);
  margin:6px 0;
}
.limbus-hit-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  font-size:12px;
}
.limbus-hit-grid div{
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:5px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4px;
}
.limbus-reset{
  width:100%;
  margin-top:10px;
}
@media(max-width:1100px){
  .main-grid{grid-template-columns:1fr;}
  .side{order:-1;display:grid;grid-template-columns:1fr 1fr;}
}
@media(max-width:760px){
  body{padding:10px;}
  .notice{grid-template-columns:1fr;}
  .header{align-items:flex-start;flex-direction:column;padding:18px;}
  .title{font-size:24px;}
  .toolbar{width:100%;}
  .day-tabs{grid-template-columns:repeat(4,1fr);}
  .side{display:flex;}
  .admin-menu{grid-template-columns:1fr;}
  .job-grid{grid-template-columns:repeat(6,1fr);}
  .limbus-board{grid-template-columns:1fr;}
  .limbus-modal{width:min(430px,calc(100vw - 16px));}
}

.gear-modal{width:min(980px,calc(100vw - 24px));}
.gear-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px;}
.gear-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0;}
.gear-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0;}
.gear-tab{box-shadow:none;}
.gear-scroll{overflow:auto;border:1px solid var(--line);border-radius:18px;background:white;max-height:65vh;}
.gear-table{width:100%;border-collapse:separate;border-spacing:0;min-width:620px;font-size:13px;}
.gear-table th,.gear-table td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:7px;text-align:center;background:#fff;}
.gear-table th{position:sticky;top:0;z-index:2;background:#eff6ff;color:var(--primary);font-weight:900;}
.gear-table .gear-job{position:sticky;left:0;z-index:1;background:#f8fbff;color:var(--ink);font-weight:900;width:58px;}
.gear-table .gear-job-head{position:sticky;left:0;z-index:3;width:58px;}
.gear-table select{min-width:74px;padding:6px 8px;text-align:center;text-align-last:center;font-weight:900;}
.gear-table select.gear-none{background:#f8fafc;color:#64748b;}
.gear-table select.gear-p1{background:#eef6ff;color:#1d4ed8;}
.gear-table select.gear-p2{background:#e0f2fe;color:#0369a1;}
.gear-table select.gear-p3{background:#dcfce7;color:#15803d;}
.gear-table select.gear-p4{background:#fef3c7;color:#92400e;}
@media(max-width:760px){
  .gear-modal{width:min(430px,calc(100vw - 16px));}
  .gear-tabs{grid-template-columns:1fr;}
  .gear-table{min-width:560px;font-size:12px;}
  .gear-table th,.gear-table td{padding:5px;}
  .gear-table select{min-width:66px;padding:5px 6px;}
}


.gear-flag-panel{
  margin:10px 0;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:linear-gradient(135deg,#f8fbff,#fff);
}
.gear-flag-title{
  font-weight:900;
  color:var(--ink);
  margin-bottom:8px;
}
.gear-flag-list{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}
.gear-flag-chip{
  width:100%;
  box-shadow:none;
  background:#fff;
  color:var(--muted);
  border:1px solid var(--line);
  border-radius:14px;
  padding:8px 10px;
  text-align:left;
}
.gear-flag-chip.done{
  background:linear-gradient(135deg,#16a34a,#22c55e);
  color:white;
  border-color:transparent;
}
.gear-flag-chip .flag-main{
  display:block;
  font-size:13px;
  font-weight:900;
}
.gear-flag-chip .flag-sub{
  display:block;
  font-size:10px;
  opacity:.82;
  margin-top:2px;
}
@media(max-width:760px){
  .gear-flag-list{grid-template-columns:1fr 1fr;}
}


.gear-flag-matrix-wrap{
  display:block;
}
.gear-flag-note{
  grid-column:1/-1;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  margin-bottom:8px;
}
.gear-flag-matrix-scroll{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:14px;
  background:white;
}
.gear-flag-matrix{
  width:100%;
  min-width:620px;
  border-collapse:separate;
  border-spacing:0;
  font-size:12px;
}
.gear-flag-matrix th,
.gear-flag-matrix td{
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:6px;
  text-align:center;
  background:#fff;
}
.gear-flag-matrix thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#eff6ff;
  color:var(--primary);
}
.gear-flag-matrix tbody th{
  position:sticky;
  left:0;
  z-index:1;
  background:#f8fbff;
  color:var(--ink);
}
.gear-mini-flag{
  width:100%;
  min-width:80px;
  padding:6px;
  border-radius:12px;
  background:#f8fafc;
  color:#64748b;
  border:1px solid var(--line);
  box-shadow:none;
}
.gear-mini-flag.done{
  background:linear-gradient(135deg,#16a34a,#22c55e);
  color:white;
  border-color:transparent;
}
.gear-mini-flag span{
  display:block;
  font-weight:900;
}
.gear-mini-flag small{
  display:block;
  font-size:9px;
  opacity:.82;
  margin-top:1px;
}
.gear-flag-job-list{
  grid-template-columns:repeat(4,1fr);
}
@media(max-width:760px){
  .gear-flag-job-list{grid-template-columns:1fr 1fr;}
  .gear-flag-matrix{min-width:560px;}
  .gear-mini-flag{min-width:70px;}
}


.gear-flag-section-title{
  grid-column:1/-1;
  margin:10px 0 6px;
  padding:6px 10px;
  border-left:5px solid var(--primary);
  background:#f8fbff;
  border-radius:10px;
  color:var(--ink);
  font-weight:900;
}
.gear-flag-part-list{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:8px;
}
.gear-flag-help{
  display:block;
  margin-top:3px;
  font-size:10px;
  color:var(--muted);
  font-weight:800;
}
.gear-flag-help-cell{
  text-align:left!important;
  font-size:11px;
  color:var(--muted);
  line-height:1.35;
}
.gear-flag-matrix select{
  min-width:76px;
  font-weight:900;
}
.gear-flag-select-none{background:#f8fafc;color:#64748b;}
.gear-flag-select-p2{background:#e0f2fe;color:#0369a1;}
.gear-flag-select-p3{background:#dcfce7;color:#15803d;}
.gear-flag-select-p4{background:#fef3c7;color:#92400e;}
.gear-flag-matrix th small{
  color:var(--muted);
  font-size:10px;
}
@media(max-width:760px){
  .gear-flag-part-list{grid-template-columns:1fr 1fr;}
}


.gear-integrated-note{
  grid-column:1/-1;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  margin:4px 0 8px;
}
.gear-table .gear-cell-combo{
  display:flex;
  flex-direction:column;
  gap:5px;
  align-items:stretch;
}
.gear-table .gear-cell-combo select{
  min-width:72px;
}
.gear-table .gear-cell-label{
  font-size:10px;
  color:var(--muted);
  font-weight:900;
  text-align:left;
}
.gear-table .gear-flag-inline{
  font-size:11px;
  padding:5px 6px;
}
.gear-table .gear-head-flag{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
}
.gear-table .gear-head-flag button{
  padding:4px 8px;
  font-size:11px;
  box-shadow:none;
  border-radius:999px;
}
.gear-table .gear-head-flag button.done{
  background:linear-gradient(135deg,#16a34a,#22c55e);
  color:white;
}
.gear-table .gear-head-flag button:not(.done){
  background:#f8fafc;
  color:#64748b;
  border:1px solid var(--line);
}
.gear-job-flag-select{
  margin-top:4px;
  min-width:70px!important;
  font-size:11px;
}
.gear-job-cell-wrap{
  display:flex;
  flex-direction:column;
  gap:4px;
  align-items:center;
}
.gear-flag-compact{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
}
@media(max-width:760px){
  .gear-flag-compact{grid-template-columns:1fr 1fr;}
  .gear-table .gear-cell-combo select{min-width:64px;}
}


.gear-empy-part-panel{
  grid-column:1/-1;
  margin:8px 0 10px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:16px;
  background:linear-gradient(135deg,#f8fbff,#fff);
}
.gear-empy-part-title{
  font-weight:900;
  color:var(--ink);
  margin-bottom:8px;
}
.gear-empy-part-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:8px;
}
.gear-empy-part-btn{
  width:100%;
  box-shadow:none;
  background:#f8fafc;
  color:#64748b;
  border:1px solid var(--line);
  border-radius:14px;
  padding:8px;
}
.gear-empy-part-btn.done{
  background:linear-gradient(135deg,#16a34a,#22c55e);
  color:white;
  border-color:transparent;
}
.gear-empy-part-btn span{
  display:block;
  font-weight:900;
}
.gear-empy-part-btn small{
  display:block;
  font-size:10px;
  opacity:.82;
  margin-top:2px;
}
.gear-empy-job-table .gear-job-stage-cell{
  min-width:110px;
  background:#f8fbff;
}
.gear-empy-job-stage-wrap{
  display:flex;
  flex-direction:column;
  gap:4px;
  align-items:center;
}
.gear-empy-job-stage-wrap select{
  min-width:82px!important;
}
.gear-empy-table-note{
  grid-column:1/-1;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  margin:4px 0 8px;
}
@media(max-width:760px){
  .gear-empy-part-grid{grid-template-columns:1fr 1fr;}
}


.gear-condition-box{
  grid-column:1/-1;
  background:#f8fbff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  margin-bottom:8px;
}
.gear-condition-title{
  font-weight:900;
  color:var(--ink);
  margin-bottom:5px;
}
.gear-condition-box ul{
  margin:0;
  padding-left:1.2em;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  line-height:1.55;
}
.gear-table caption{
  caption-side:top;
  text-align:left;
  padding:9px 10px;
  background:#eff6ff;
  color:var(--primary);
  font-weight:900;
  border-bottom:1px solid var(--line);
}


.new-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:6px;
  padding:2px 7px;
  border-radius:999px;
  background:linear-gradient(135deg,#ef4444,#f97316);
  color:white;
  font-size:10px;
  font-weight:900;
  letter-spacing:.04em;
  box-shadow:0 5px 12px rgba(239,68,68,.25);
}
.notice-item.is-new{
  background:linear-gradient(90deg,rgba(239,68,68,.08),transparent);
  border-radius:10px;
  padding-left:6px;
}
.activity-log-list{
  max-height:118px;
}
.activity-log-kind{
  display:inline-flex;
  padding:1px 6px;
  border-radius:999px;
  background:#eff6ff;
  color:var(--primary);
  font-size:10px;
  font-weight:900;
  margin-bottom:3px;
}
.activity-log-line{
  display:flex;
  align-items:flex-start;
  gap:6px;
  min-width:0;
  line-height:1.45;
}
.activity-log-datetime{
  flex:0 0 auto;
  color:var(--primary);
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
  padding-top:1px;
}
.activity-log-content{
  min-width:0;
  flex:1 1 auto;
  overflow-wrap:anywhere;
}
.activity-log-more-wrap{
  padding:7px 0 2px;
  text-align:center;
}
#showMoreActivityLogsBtn{
  width:100%;
  box-shadow:none;
}
.side-menu-members{
  margin:12px 0;
  padding:10px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#f8fbff;
}
.side-menu-section-title{
  font-weight:900;
  color:var(--ink);
  margin-bottom:8px;
  font-size:13px;
}
.side-menu-members .member-list{
  max-height:160px;
  overflow:auto;
}


/* 表示範囲拡大・スマホ最適化 */
.card{
  padding:12px;
}
.notice{
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.notice-list{
  max-height:128px;
}
#noticeList{
  max-height:138px;
}
#activityLogList{
  max-height:138px;
}
#memberCommentList{
  max-height:260px!important;
}
.notice-item{
  grid-template-columns:82px 1fr;
  gap:7px;
  padding:5px 0;
  font-size:12px;
}
.panel-title{
  margin-bottom:6px;
}
.comment-compose{
  margin-top:8px;
}
.comment-compose > button{
  width:100%;
}
.comment-compose-box{
  margin-top:8px;
  padding:9px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#f8fbff;
}
.comment-compose-box textarea{
  min-height:64px;
}
.comment-compose-actions{
  justify-content:flex-start!important;
  margin-top:8px;
}
.activity-log-list{
  max-height:138px;
}
@media(max-width:900px){
  body{
    padding:8px;
  }
  .app::before{
    text-align:center;
    font-size:10px;
    margin-bottom:6px;
  }
  .header{
    padding:14px;
    border-radius:20px;
    margin-bottom:8px;
  }
  .title{
    font-size:21px;
  }
  .title::after{
    font-size:10px;
    line-height:1.3;
  }
  .toolbar{
    width:100%;
    justify-content:space-between;
  }
  .member-pill{
    font-size:11px;
    padding:4px 8px;
  }
  .notice{
    grid-template-columns:1fr;
    gap:8px;
    margin-bottom:8px;
  }
  .notice .card{
    padding:10px;
  }
  #noticeList,
  #activityLogList{
    max-height:170px;
  }
  .main-grid{
    grid-template-columns:1fr;
    gap:8px;
  }
  .main-grid > .card{
    order:2;
  }
  .side{
    order:1;
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }
  .side .card{
    padding:10px;
  }
  #todaySummary{
    max-height:120px;
    overflow:auto;
  }
  #memberCommentList{
    max-height:220px!important;
  }
  .timeline-head{
    flex-direction:column;
    align-items:flex-start;
    gap:3px;
  }
  .timeline-title{
    font-size:19px;
  }
  .day-tabs{
    grid-template-columns:repeat(2,1fr);
    gap:6px;
  }
  .day-tab{
    padding:8px 5px;
  }
  .timeline{
    min-height:auto;
  }
  .time-grid{
    grid-template-columns:54px 1fr;
  }
  .time-label{
    padding:4px 4px;
    font-size:10px;
  }
  .activity{
    left:6px;
    right:6px;
    border-radius:14px;
    padding:6px 8px;
  }
  .activity-title{
    font-size:13px;
  }
  .activity-meta{
    font-size:10px;
    padding:1px 5px;
  }
  .activity-members{
    font-size:10px;
    gap:3px;
  }
  .badge{
    padding:1px 5px;
  }
}
@media(max-width:430px){
  body{
    padding:6px;
  }
  .header{
    padding:12px;
  }
  .title{
    font-size:19px;
  }
  .toolbar{
    gap:5px;
  }
  .menu-button{
    min-width:42px;
    height:38px;
    font-size:22px;
  }
  .notice-item{
    grid-template-columns:72px 1fr;
    font-size:11px;
  }
  #noticeList,
  #activityLogList{
    max-height:150px;
  }
  #memberCommentList{
    max-height:200px!important;
  }
  .side-menu{
    top:8px;
    right:8px;
    width:calc(100vw - 16px);
    border-radius:20px;
  }
  .modal{
    padding:13px;
    border-radius:20px;
  }
  .day-tabs{
    grid-template-columns:1fr 1fr;
  }
}


.cloud-status-corner{
  position:fixed;
  right:8px;
  top:6px;
  z-index:10;
  padding:3px 7px;
  border-radius:999px;
  background:rgba(15,23,42,.55);
  color:white;
  font-size:10px;
  font-weight:800;
  opacity:.55;
  pointer-events:none;
}
.limbus-details-open{
  display:block;
}
.limbus-details-title{
  cursor:default;
  font-weight:900;
  color:var(--primary);
  margin-bottom:6px;
}
.timeline.empty-timeline{
  min-height:0;
}
.empty-day-message{
  padding:18px;
  color:var(--muted);
  font-weight:800;
  text-align:center;
}
@media(max-width:760px){
  .cloud-status-corner{
    right:6px;
    top:4px;
    font-size:9px;
    opacity:.45;
  }
}


.limbus-correction{
  margin:8px 0;
  border:1px dashed var(--line);
  border-radius:12px;
  padding:7px;
  background:#fff;
}
.limbus-correction summary{
  cursor:pointer;
  font-weight:900;
  color:var(--primary);
}
.limbus-details-open{
  background:#f8fbff;
}


.limbus-top{
  flex-wrap:wrap;
}
.limbus-correction-toggle.active{
  background:linear-gradient(135deg,#64748b,#94a3b8);
  color:white;
}
.limbus-correction-panel{
  margin-top:8px;
  padding:9px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.58);
}
.limbus-correction-title{
  font-size:12px;
  font-weight:900;
  color:var(--muted);
  margin:5px 0;
}
.limbus-hit-adjust-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  font-size:12px;
}
.limbus-hit-adjust-grid div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:5px;
}
.limbus-hit-adjust-grid span{
  min-width:26px;
  text-align:center;
  font-weight:900;
}
.limbus-history-panel{
  margin-top:10px;
  padding:9px;
  border-radius:14px;
  background:rgba(255,255,255,.46);
  border:1px solid rgba(255,255,255,.7);
}
.limbus-history-head{
  display:grid;
  grid-template-columns:96px 1fr;
  gap:10px;
  font-size:11px;
  font-weight:900;
  color:var(--muted);
  margin-bottom:5px;
}
.limbus-history-body{
  display:grid;
  grid-template-columns:96px 1fr;
  gap:10px;
  align-items:center;
}
.limbus-last-value{
  min-height:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:3px 8px;
  background:rgba(255,255,255,.82);
  border-radius:999px;
  font-size:13px;
  font-weight:900;
  color:var(--primary);
}
.limbus-history-panel .limbus-hit-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px 8px;
}
.limbus-history-panel .limbus-hit-grid div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.9);
  border-radius:10px;
  padding:4px 8px;
  font-size:12px;
}
.limbus-history-panel .limbus-hit-grid span:first-child{
  font-weight:900;
  color:var(--muted);
}
.limbus-history-panel .limbus-hit-grid span:last-child{
  font-weight:900;
  color:var(--ink);
}
@media(max-width:760px){
  .limbus-history-head,
  .limbus-history-body{
    grid-template-columns:88px 1fr;
    gap:8px;
  }
  .limbus-history-panel{
    padding:8px;
  }
}


.version-button{
  padding:6px 10px;
  font-size:12px;
  box-shadow:none;
}
#versionNumberBadge,
.version-mini-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:4px;
  padding:1px 7px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:white;
  font-size:10px;
  font-weight:900;
}
.version-entry-title{
  font-weight:900;
  color:var(--ink);
}
.version-entry-body{
  white-space:pre-wrap;
  line-height:1.55;
}
@media(max-width:430px){
  .version-button{
    width:auto;
    padding:5px 8px;
    font-size:11px;
  }
}


/* ===== Theme: Antique Guild / Brown ===== */
:root{
  --bg:#f5efe6;
  --surface:#fffaf2;
  --surface-soft:#fbf2e8;
  --surface-blue:#f3e3cf;
  --ink:#34261d;
  --muted:#806b5a;
  --line:#e4cdb6;
  --primary:#8b5e34;
  --primary2:#c08a53;
  --accent:#d6a85f;
  --success:#5c8b5e;
  --warning:#c47a25;
  --danger:#b95345;
  --shadow:0 16px 34px rgba(72,45,24,.18);
  --shadow-soft:0 8px 22px rgba(72,45,24,.11);
}
body{
  background:
    radial-gradient(circle at 10% 0%,rgba(192,138,83,.20),transparent 30%),
    radial-gradient(circle at 95% 8%,rgba(139,94,52,.18),transparent 28%),
    linear-gradient(180deg,#fff8ed,#f3e7d8);
}
.app::before{content:"FF11 LINKSHELL GUILD";color:#8b5e34;}
.header{
  background:
    linear-gradient(135deg,rgba(55,35,22,.94),rgba(139,94,52,.84)),
    linear-gradient(135deg,#8b5e34,#d6a85f);
  box-shadow:0 18px 44px rgba(72,45,24,.24);
}
.header::before{background:rgba(255,233,191,.16);}
.header::after{background:rgba(214,168,95,.24);}
.title::before{content:"◆ ";color:#f2c879;}
.title::after{color:#f8dbab;}
.card,.modal,.side-menu{
  background:rgba(255,250,242,.94);
  border-color:#ead8c5;
}
.panel-title::after{background:linear-gradient(90deg,#d6a85f,transparent);}
button{background:linear-gradient(135deg,#8b5e34,#c08a53);}
button.secondary{background:#fffaf2;color:#8b5e34;border-color:#e4cdb6;}
.member-pill,.activity-log-kind,.activity-meta,.limbus-count{
  background:#fff2df;
  border-color:#e4c39e;
  color:#8b5e34;
}
.day-tab.active,.new-badge,#versionNumberBadge,.version-mini-badge{
  background:linear-gradient(135deg,#8b5e34,#c08a53);
}
.day-title,.gear-table th,.gear-flag-matrix thead th,.gear-table caption{
  background:linear-gradient(90deg,#fff2df,#fffaf2);
  color:#8b5e34;
}
.lane{
  background:repeating-linear-gradient(to bottom,#fffaf2 0,#fffaf2 40px,#ead8c5 41px,#fffaf2 42px,#fffaf2 81px,#d7b997 82px);
}
.activity{
  border-color:#dec2a6;
  background:linear-gradient(135deg,#fff7ec,#fffdf8 58%,#f3e5d3);
}
.activity::before{background:linear-gradient(180deg,#c08a53,#8b5e34);}
.cloud-status-corner{background:rgba(52,38,29,.55);}


/* 短時間活動カードの見切れ対策 */
.activity.short-activity{
  padding:3px 8px;
  z-index:2;
}
.activity.short-activity .activity-top{
  display:flex;
  align-items:center;
  gap:6px;
  border-bottom:0;
  padding-bottom:0;
  margin-bottom:1px;
}
.activity.short-activity .activity-title{
  font-size:12px;
  line-height:1.1;
}
.activity.short-activity .activity-meta{
  font-size:9px;
  padding:1px 5px;
}
.activity.short-activity .activity-members{
  display:flex;
  flex-wrap:wrap;
  gap:3px;
  max-height:18px;
  overflow-y:auto;
  overflow-x:hidden;
  line-height:1;
  scrollbar-width:thin;
  padding-right:2px;
}
.activity.short-activity .badge{
  flex:0 0 auto;
  padding:1px 5px;
  font-size:9px;
  white-space:nowrap;
}

/* 今日の予定の空白行対策 */
.today-list{display:flex;flex-direction:column;gap:7px;}
.today-item{display:grid;grid-template-columns:82px 1fr;gap:8px;align-items:start;padding:6px 0;border-bottom:1px solid var(--line);}
.today-item:last-child{border-bottom:0;}
.today-time{color:var(--primary);font-weight:900;font-size:12px;white-space:nowrap;}
.today-main{line-height:1.35;}
.today-memo{margin-top:2px;color:var(--muted);font-size:12px;}
@media(max-width:430px){.today-item{grid-template-columns:74px 1fr;gap:6px}.today-time{font-size:11px}}

/* 1時間以内カード：活動名の右に時間を配置 */
.activity.compact-activity .activity-top{
  display:flex;
  align-items:center;
  gap:6px;
  border-bottom:0;
  padding-bottom:0;
  margin-bottom:2px;
}
.activity.compact-activity .activity-title{
  min-width:0;
  flex:1;
}
.activity.compact-activity .activity-meta{
  flex:0 0 auto;
}
.activity.compact-activity .activity-members{
  margin-top:1px;
}


/* タイムラインカード：概要表示 */
.activity.summary-activity{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:10px;
  padding:8px 12px;
}
.activity.summary-activity .activity-summary-left{
  min-width:0;
  padding-left:3px;
}
.activity-summary-line{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.activity-summary-time{
  flex:0 0 auto;
  font-size:11px;
  font-weight:900;
  color:var(--primary);
  background:#fff2df;
  border:1px solid #e4c39e;
  border-radius:999px;
  padding:2px 8px;
}
.activity-summary-title{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:15px;
  font-weight:900;
  color:#1e3a5f;
}
.activity-summary-memo{
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
  line-height:1.25;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.activity-summary-count{
  flex:0 0 auto;
  align-self:start;
  border-radius:999px;
  padding:3px 9px;
  background:#fffaf2;
  border:1px solid var(--line);
  color:var(--primary);
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}
.activity.summary-activity.short-activity{
  padding:4px 8px;
  grid-template-columns:minmax(0,1fr) auto;
}
.activity.summary-activity.short-activity .activity-summary-line{
  gap:5px;
}
.activity.summary-activity.short-activity .activity-summary-time{
  font-size:9px;
  padding:1px 5px;
}
.activity.summary-activity.short-activity .activity-summary-title{
  font-size:12px;
}
.activity.summary-activity.short-activity .activity-summary-memo{
  display:block;
  margin-top:2px;
  font-size:10px;
  line-height:1.15;
  color:var(--muted);
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.activity.summary-activity.short-activity .activity-summary-count{
  font-size:9px;
  padding:1px 5px;
}

/* 参加登録モーダル内の一覧 */
.response-registered-box{
  margin:10px 0;
  padding:10px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fffaf2;
}
.response-registered-list{
  display:flex;
  flex-direction:column;
  gap:7px;
  max-height:220px;
  overflow:auto;
}
.response-person{
  border:1px solid var(--line);
  border-radius:14px;
  padding:8px;
  background:#fff;
}
.response-person-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
}
.response-name{
  font-weight:900;
  color:var(--ink);
}
.response-jobs{
  margin-top:5px;
  display:flex;
  gap:4px;
  flex-wrap:wrap;
}
.response-comment{
  margin-top:5px;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}
@media(max-width:760px){
  .activity.summary-activity{
    grid-template-columns:1fr;
    gap:4px;
  }
  .activity-summary-count{
    justify-self:start;
  }
}


/* 概要カード右側：名前/参加可否表示 */
.activity-response-summary{
  align-self:start;
  display:flex;
  flex-direction:column;
  gap:3px;
  max-height:100%;
  overflow:auto;
  min-width:118px;
  scrollbar-width:thin;
}
.activity-response-mini{
  display:inline-flex;
  justify-content:center;
  border-radius:999px;
  padding:2px 7px;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}
.activity-response-mini.join{background:#dcfce7;color:#15803d;}
.activity-response-mini.no{background:#fee2e2;color:#b91c1c;}
.activity-response-mini.maybe{background:#fef3c7;color:#92400e;}
.activity-response-mini.empty{background:#f1f5f9;color:#64748b;}

/* 30分/1時間カードの文字サイズ統一 */
.activity.summary-activity.short-activity .activity-summary-time,
.activity.summary-activity.compact-activity .activity-summary-time{
  font-size:10px;
  padding:1px 6px;
}
.activity.summary-activity.short-activity .activity-summary-title,
.activity.summary-activity.compact-activity .activity-summary-title{
  font-size:13px;
}
.activity.summary-activity.short-activity .activity-response-mini,
.activity.summary-activity.compact-activity .activity-response-mini{
  font-size:10px;
  padding:1px 6px;
}
.activity.summary-activity.short-activity .activity-summary-memo,
.activity.summary-activity.compact-activity .activity-summary-memo{
  font-size:10px;
  line-height:1.15;
  -webkit-line-clamp:1;
}
.activity.summary-activity.short-activity .activity-response-summary,
.activity.summary-activity.compact-activity .activity-response-summary{
  min-width:106px;
  gap:2px;
}


/* 参加可否を横並び＋折り返し＋枠内スクロール */
.activity-response-summary{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  align-content:flex-start;
  justify-content:flex-start;
  gap:3px 4px;
  max-height:100%;
  overflow-y:auto;
  overflow-x:hidden;
  min-width:150px;
  max-width:42%;
  padding-right:2px;
  scrollbar-width:thin;
}
.activity-response-mini{
  flex:0 0 auto;
  max-width:100%;
}
.activity.summary-activity.short-activity .activity-response-summary,
.activity.summary-activity.compact-activity .activity-response-summary{
  min-width:130px;
  max-width:46%;
  gap:2px 3px;
}
@media(max-width:760px){
  .activity-response-summary{
    max-width:100%;
    min-width:0;
  }
  .activity.summary-activity{
    grid-template-columns:1fr;
  }
}


/* 参加可否を活動名の右に続けて表示 */
.activity.summary-activity{
  display:block!important;
  padding:7px 12px;
}
.activity.summary-activity .activity-summary-left{
  width:100%;
  min-width:0;
}
.activity-summary-line{
  display:flex!important;
  align-items:flex-start;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:4px 6px;
  min-width:0;
  max-height:calc(100% - 2px);
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
}
.activity-summary-time,
.activity-summary-title{
  flex:0 0 auto;
}
.activity-response-summary{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  align-content:flex-start;
  justify-content:flex-start;
  gap:3px 4px;
  min-width:0!important;
  max-width:none!important;
  max-height:none!important;
  overflow:visible!important;
  padding-right:0;
}
.activity-response-mini{
  flex:0 0 auto;
}
.activity.summary-activity.short-activity,
.activity.summary-activity.compact-activity{
  padding:4px 8px;
}
.activity.summary-activity.short-activity .activity-summary-line,
.activity.summary-activity.compact-activity .activity-summary-line{
  gap:3px 4px;
  max-height:100%;
}
.activity.summary-activity.short-activity .activity-summary-memo{
  display:block;
  margin-top:2px;
  font-size:10px;
  line-height:1.15;
  color:var(--muted);
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}


/* 参加可否：状態ごとにまとめて省スペース表示 */
.activity-response-group{
  display:inline-flex;
  align-items:center;
  flex-wrap:wrap;
  gap:2px 5px;
  border-radius:999px;
  padding:2px 7px;
  font-size:11px;
  font-weight:800;
  line-height:1.25;
}
.activity-response-group b{
  font-weight:900;
  margin-right:1px;
}
.activity-response-group.join{background:#dcfce7;color:#15803d;}
.activity-response-group.no{background:#fee2e2;color:#b91c1c;}
.activity-response-group.maybe{background:#fef3c7;color:#92400e;}
.activity-response-group.empty{background:#f1f5f9;color:#64748b;}
.activity.summary-activity.short-activity .activity-response-group,
.activity.summary-activity.compact-activity .activity-response-group{
  font-size:10px;
  padding:1px 6px;
  gap:1px 4px;
}


/* 詳細モーダル：名前・参加可否・ジョブを横並び */
.response-person-head.compact{
  justify-content:flex-start;
  align-items:center;
  flex-wrap:wrap;
  gap:5px 7px;
}
.response-person-head.compact .response-name{
  flex:0 0 auto;
}
.response-jobs.inline{
  margin-top:0;
  display:inline-flex;
  gap:3px;
  flex-wrap:wrap;
  align-items:center;
}
.response-jobs.inline.note{
  font-size:11px;
}
.response-person{
  padding:7px 8px;
}
.response-comment{
  margin-top:4px;
  padding-left:2px;
}


/* 30分カードでも活動コメントを下段に表示 */
.activity.summary-activity.short-activity{
  overflow:hidden;
}
.activity.summary-activity.short-activity .activity-summary-left{
  max-height:100%;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
}
.activity.summary-activity.short-activity .activity-summary-memo{
  display:block;
  margin-top:2px;
  font-size:10px;
  line-height:1.15;
  color:var(--muted);
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}


/* 30分カード：文字サイズを戻して行間・余白だけ圧縮 */
.activity.summary-activity.short-activity{
  padding:3px 7px;
}
.activity.summary-activity.short-activity .activity-summary-line{
  gap:2px 4px;
  line-height:1.02;
}
.activity.summary-activity.short-activity .activity-summary-time{
  font-size:10px;
  padding:0 5px;
  line-height:1.12;
}
.activity.summary-activity.short-activity .activity-summary-title{
  font-size:13px;
  line-height:1.08;
}
.activity.summary-activity.short-activity .activity-response-group{
  font-size:10px;
  padding:0 5px;
  line-height:1.12;
}
.activity.summary-activity.short-activity .activity-summary-memo{
  margin-top:0;
  font-size:10px;
  line-height:1.05;
}


/* 30分カード：行間をほんの少しだけ広げる */
.activity.summary-activity.short-activity .activity-summary-line{
  line-height:1.06;
}
.activity.summary-activity.short-activity .activity-summary-time{
  line-height:1.16;
}
.activity.summary-activity.short-activity .activity-summary-title{
  line-height:1.12;
}
.activity.summary-activity.short-activity .activity-response-group{
  line-height:1.16;
}
.activity.summary-activity.short-activity .activity-summary-memo{
  line-height:1.10;
}


/* 30分カード：行間をさらに+0.05広げる */
.activity.summary-activity.short-activity .activity-summary-line{
  line-height:1.11;
}
.activity.summary-activity.short-activity .activity-summary-time{
  line-height:1.21;
}
.activity.summary-activity.short-activity .activity-summary-title{
  line-height:1.17;
}
.activity.summary-activity.short-activity .activity-response-group{
  line-height:1.21;
}
.activity.summary-activity.short-activity .activity-summary-memo{
  line-height:1.15;
}


/* 30分カード：圧縮版に戻し、1行目と2行目の間だけ少し広げる */
.activity.summary-activity.short-activity .activity-summary-line{
  line-height:1.02;
  margin-bottom:2px;
}
.activity.summary-activity.short-activity .activity-summary-time{
  line-height:1.12;
}
.activity.summary-activity.short-activity .activity-summary-title{
  line-height:1.08;
}
.activity.summary-activity.short-activity .activity-response-group{
  line-height:1.12;
}
.activity.summary-activity.short-activity .activity-summary-memo{
  margin-top:0;
  line-height:1.05;
}


/* 30分カード：1行目と2行目の間だけ 3.0px */
.activity.summary-activity.short-activity .activity-summary-line{
  line-height:1.02;
  margin-bottom:3.0px;
}
.activity.summary-activity.short-activity .activity-summary-time{
  line-height:1.12;
}
.activity.summary-activity.short-activity .activity-summary-title{
  line-height:1.08;
}
.activity.summary-activity.short-activity .activity-response-group{
  line-height:1.12;
}
.activity.summary-activity.short-activity .activity-summary-memo{
  margin-top:0;
  line-height:1.05;
}


/* 管理者LS活動画面の整理 */
.admin-section{
  border:1px solid var(--line);
  border-radius:16px;
  background:#fffaf2;
  margin:10px 0;
  overflow:hidden;
}
.admin-section summary{
  cursor:pointer;
  padding:11px 13px;
  font-weight:900;
  color:var(--primary);
  background:linear-gradient(90deg,#fff2df,#fffaf2);
  list-style:none;
}
.admin-section summary::-webkit-details-marker{
  display:none;
}
.admin-section summary::before{
  content:"▶";
  display:inline-block;
  margin-right:7px;
  transition:.15s ease;
}
.admin-section[open] summary::before{
  transform:rotate(90deg);
}
.admin-section-body{
  padding:12px;
  border-top:1px solid var(--line);
}
#activityPage .activity-admin-list{
  max-height:260px;
}
#activityPage textarea{
  min-height:58px;
}


/* NEW表示を赤系で強調 */
.new-badge{
  background:linear-gradient(135deg,#ef4444,#dc2626)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.75);
  box-shadow:0 4px 12px rgba(220,38,38,.35)!important;
}
.notice-item.is-new{
  background:linear-gradient(90deg,rgba(239,68,68,.13),transparent)!important;
}


/* バージョン履歴ボタンをヘッダーカード欄外の右上へ */
.header{
  position:relative;
  overflow:visible!important;
}
.version-button{
  position:absolute;
  top:-14px;
  right:12px;
  z-index:5;
  background:#fffaf2!important;
  color:var(--primary)!important;
  border:1px solid var(--line)!important;
  box-shadow:0 8px 18px rgba(72,45,24,.16)!important;
  border-radius:999px!important;
}
@media(max-width:760px){
  .version-button{
    top:-10px;
    right:8px;
    font-size:10px;
    padding:4px 8px;
  }
}


/* バージョン履歴ボタン：ヘッダーと重ならない独立配置 */
.header{
  overflow:visible!important;
}
.version-button{
  position:fixed!important;
  top:72px!important;
  right:18px!important;
  z-index:80!important;
  background:#fffaf2!important;
  color:var(--primary)!important;
  border:1px solid var(--line)!important;
  box-shadow:0 8px 18px rgba(72,45,24,.18)!important;
  border-radius:999px!important;
  padding:5px 10px!important;
  font-size:11px!important;
}
@media(max-width:760px){
  .version-button{
    top:66px!important;
    right:10px!important;
    padding:4px 8px!important;
    font-size:10px!important;
  }
}


/* 履歴ボタン：タイトル行の右側に配置 */
.version-button{
  position:static!important;
  top:auto!important;
  right:auto!important;
  z-index:auto!important;
  margin-left:auto!important;
  align-self:center!important;
  background:#fffaf2!important;
  color:var(--primary)!important;
  border:1px solid var(--line)!important;
  box-shadow:0 4px 10px rgba(72,45,24,.12)!important;
  border-radius:999px!important;
  padding:5px 10px!important;
  font-size:11px!important;
  white-space:nowrap!important;
}
.header .toolbar{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
@media(max-width:760px){
  .version-button{
    padding:4px 8px!important;
    font-size:10px!important;
  }
}


/* ゲスト表示・マスク */
.guest-mask{
  border:1px dashed var(--line);
  border-radius:16px;
  padding:16px;
  background:rgba(255,255,255,.72);
  color:var(--muted);
  font-weight:900;
  text-align:center;
}
.guest-disabled{
  opacity:.55;
  filter:grayscale(.2);
}
.guest-badge{
  background:#f1f5f9!important;
  border-color:#cbd5e1!important;
  color:#64748b!important;
}


/* 掲示板投稿欄：デフォルト非表示 */
.comment-compose-box{
  display:none;
}
.comment-compose-box.open{
  display:block;
}


/* 初回・復帰時のクラウド同期中オーバーレイ */
.cloud-sync-overlay{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  background:rgba(52,38,29,.42);
  backdrop-filter:blur(2px);
}
.cloud-sync-overlay.hidden{display:none!important;}
.cloud-sync-box{
  width:min(360px,calc(100vw - 36px));
  padding:22px 20px;
  border-radius:22px;
  background:#fffaf2;
  border:1px solid var(--line);
  box-shadow:0 24px 64px rgba(52,38,29,.28);
  text-align:center;
  color:var(--ink);
}
.cloud-sync-spinner{
  width:34px;
  height:34px;
  margin:0 auto 12px;
  border:4px solid #ead8c5;
  border-top-color:var(--primary);
  border-radius:999px;
  animation:cloudSyncSpin .8s linear infinite;
}
.cloud-sync-title{
  font-size:18px;
  font-weight:900;
  color:var(--primary);
}
.cloud-sync-sub{
  margin-top:6px;
  font-size:12px;
  font-weight:800;
  color:var(--muted);
  line-height:1.5;
}
@keyframes cloudSyncSpin{to{transform:rotate(360deg);}}



/* 更新履歴：横書き1行表示の強制補正 */
.notice-item.activity-log-item{
  display:block!important;
  grid-template-columns:none!important;
  width:100%;
}
.notice-item.activity-log-item .activity-log-line{
  display:flex!important;
  flex-direction:row!important;
  align-items:flex-start!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  white-space:normal!important;
}
.notice-item.activity-log-item .activity-log-datetime{
  flex:0 0 74px!important;
  width:74px!important;
  min-width:74px!important;
  max-width:74px!important;
  white-space:nowrap!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
  line-height:1.45!important;
}
.notice-item.activity-log-item .activity-log-content{
  display:block!important;
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:100%!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  line-height:1.45!important;
}
.notice-item.activity-log-item .activity-log-kind,
.notice-item.activity-log-item .new-badge{
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  white-space:nowrap!important;
  word-break:keep-all!important;
}
@media(max-width:430px){
  .notice-item.activity-log-item .activity-log-line{gap:6px!important;}
  .notice-item.activity-log-item .activity-log-datetime{
    flex-basis:68px!important;
    width:68px!important;
    min-width:68px!important;
    max-width:68px!important;
    font-size:10px!important;
  }
}


/* ===== アンケート機能（KV同期/API保存） ===== */
.poll-card-list{display:flex;flex-direction:column;gap:8px;}
.poll-card-item{border:1px solid var(--line);border-radius:16px;background:#fff;padding:10px;box-shadow:var(--shadow-soft);}
.poll-card-title{font-weight:900;color:var(--ink);line-height:1.35;}
.poll-card-meta{font-size:11px;color:var(--muted);font-weight:800;margin-top:3px;}
.poll-type-select{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0;}
.poll-type-card{min-height:104px;text-align:left;border-radius:18px;box-shadow:none;padding:13px;background:linear-gradient(135deg,#8b5e34,#c08a53);}
.poll-type-card .menu-title{display:block;font-size:16px;font-weight:900;}
.poll-type-card .menu-sub{display:block;font-size:12px;opacity:.9;margin-top:6px;line-height:1.45;}
.poll-option-row{display:grid;grid-template-columns:1fr auto;gap:7px;align-items:center;margin-top:7px;}
.poll-option-row button{box-shadow:none;}
.poll-result-row{margin:9px 0;}
.poll-result-head{display:flex;justify-content:space-between;gap:8px;font-size:12px;font-weight:900;color:var(--ink);}
.poll-result-bar{height:11px;border-radius:999px;background:#f3e3cf;overflow:hidden;border:1px solid var(--line);margin-top:4px;}
.poll-result-fill{height:100%;width:0;background:linear-gradient(90deg,var(--primary),var(--primary2));border-radius:999px;}
.poll-answer-list{display:flex;flex-direction:column;gap:7px;max-height:220px;overflow:auto;margin-top:10px;}
.poll-answer-item{border:1px solid var(--line);border-radius:14px;background:#fff;padding:8px;font-size:12px;}
.poll-answer-name{font-weight:900;color:var(--primary);}
.poll-answer-choice{font-weight:900;color:var(--ink);margin-top:3px;}
.poll-answer-comment{color:var(--muted);margin-top:3px;white-space:pre-wrap;line-height:1.4;}
.poll-choice-list{display:flex;flex-direction:column;gap:7px;margin:10px 0;}
.poll-choice-label{display:flex;gap:8px;align-items:center;border:1px solid var(--line);background:#fff;border-radius:14px;padding:8px 10px;font-weight:900;color:var(--ink);}
.poll-choice-label input{width:auto;box-shadow:none;}
.poll-status-badge{display:inline-flex;border-radius:999px;padding:2px 7px;font-size:10px;font-weight:900;background:#dcfce7;color:#15803d;}
.poll-status-badge.closed{background:#fee2e2;color:#b91c1c;}
.poll-dashboard-results{margin-top:6px;}
.poll-dashboard-results .poll-result-row{margin:6px 0;}
.poll-dashboard-results .poll-result-head{font-size:11px;}
.poll-dashboard-results .poll-result-bar{height:9px;margin-top:3px;}
/* メイン画面・一覧用：投票結果を省スペース表示（バー左／数値右） */
.poll-result-grid.compact{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:5px 6px;
  margin-top:5px;
  width:100%;
  min-width:0;
}
.poll-result-grid.compact .poll-result-card{
  display:block;
  padding:5px 6px;
  border-radius:10px;
  box-shadow:none;
  background:#fffaf2;
  min-width:0;
  overflow:hidden;
}
.poll-result-grid.compact .poll-result-option{
  display:block;
  min-width:0;
  font-size:10px;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  margin-bottom:3px;
}
.poll-result-grid.compact .poll-result-line{
  display:grid;
  grid-template-columns:minmax(0,1fr) 50px;
  align-items:center;
  gap:5px;
  min-width:0;
}
.poll-result-grid.compact .poll-result-bar{
  height:6px;
  margin-top:0;
  width:100%;
  min-width:0;
}
.poll-result-grid.compact .poll-result-percent{
  font-size:10px;
  line-height:1;
  white-space:nowrap;
  color:var(--primary);
  text-align:right;
  font-weight:900;
}
.poll-result-grid.compact .poll-result-count{
  display:none;
}
.poll-result-grid.compact .poll-result-count-mini{
  display:inline;
  color:var(--muted);
  font-weight:900;
}
.poll-dashboard-free-comment{
  display:inline-flex;
  align-items:center;
  margin-top:5px;
  padding:2px 7px;
  border-radius:999px;
  background:#fff2df;
  border:1px solid #e4c39e;
  color:var(--primary);
  font-size:11px;
  font-weight:900;
}

/* ===== アンケート：2列カード集計・進行中/終了済み ===== */
.poll-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px;}
.poll-result-card{border:1px solid var(--line);border-radius:15px;background:linear-gradient(135deg,#fffaf2,#fff);padding:9px;box-shadow:var(--shadow-soft);min-width:0;}
.poll-result-option{font-weight:900;color:var(--ink);font-size:12px;line-height:1.25;overflow-wrap:anywhere;}
.poll-result-percent{font-size:20px;font-weight:900;color:var(--primary);line-height:1.1;margin-top:3px;}
.poll-result-count{font-size:11px;font-weight:900;color:var(--muted);margin-top:2px;}
.poll-result-card .poll-result-bar{height:10px;margin-top:6px;background:#f3e3cf;border:1px solid var(--line);}
.poll-list-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 10px;}
.poll-list-tab{box-shadow:none;background:#fffaf2!important;color:var(--primary)!important;border:1px solid var(--line)!important;}
.poll-list-tab.active{background:linear-gradient(135deg,var(--primary),var(--primary2))!important;color:white!important;border-color:transparent!important;}
.poll-section-title{font-weight:900;color:var(--primary);margin:10px 0 7px;display:flex;align-items:center;gap:7px;}
.poll-section-title::after{content:"";height:1px;flex:1;background:var(--line);}
.poll-more-wrap{text-align:center;margin-top:8px;}
.poll-anon-note{font-size:11px;color:var(--muted);font-weight:800;margin-top:4px;}
@media(max-width:760px){.poll-result-grid{grid-template-columns:1fr;}.poll-result-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 6px;}.poll-result-grid.compact .poll-result-card{display:block;padding:5px 6px;}.poll-result-grid.compact .poll-result-option,.poll-result-grid.compact .poll-result-percent{font-size:10px;}}
@media(max-width:380px){.poll-result-grid.compact{grid-template-columns:1fr;}}

@media(max-width:760px){.poll-type-select{grid-template-columns:1fr;}.poll-type-card{min-height:auto;}}
/* ===== アンケート：メイン集計表示＋ゲスト閲覧専用 ===== */
.poll-dashboard-question{font-weight:900;color:var(--ink);line-height:1.35;margin-bottom:5px;}
.poll-dashboard-summary{font-size:11px;color:var(--muted);font-weight:900;margin:4px 0 6px;}
.poll-free-count{display:inline-flex;align-items:center;border-radius:999px;padding:2px 8px;background:#fff2df;border:1px solid var(--line);color:var(--primary);font-size:11px;font-weight:900;margin-top:4px;}
.poll-guest-note{border:1px dashed var(--line);border-radius:14px;background:rgba(255,255,255,.72);padding:9px 10px;color:var(--muted);font-size:12px;font-weight:900;margin:8px 0;}
.poll-readonly{opacity:.72;pointer-events:none;}
.poll-list-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;}


/* ===== アンケート：v7 メイン画面さらに圧縮 ===== */
#pollDashboard.poll-card-list{
  gap:5px!important;
}
#pollDashboard .poll-card-item{
  padding:6px 8px!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
#pollDashboard .poll-dashboard-question{
  margin-bottom:3px!important;
  font-size:12px!important;
  line-height:1.2!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#pollDashboard .poll-dashboard-summary{
  display:none!important;
}
#pollDashboard .poll-dashboard-results{
  margin-top:2px!important;
}
#pollDashboard .poll-result-grid.compact{
  gap:3px 5px!important;
  margin-top:2px!important;
}
#pollDashboard .poll-result-grid.compact .poll-result-card{
  padding:3px 5px!important;
  border-radius:8px!important;
  border-color:#ead8c5!important;
  background:rgba(255,250,242,.72)!important;
}
#pollDashboard .poll-result-grid.compact .poll-result-option{
  font-size:9.5px!important;
  line-height:1.05!important;
  margin-bottom:2px!important;
}
#pollDashboard .poll-result-grid.compact .poll-result-line{
  grid-template-columns:minmax(0,1fr) 43px!important;
  gap:3px!important;
}
#pollDashboard .poll-result-grid.compact .poll-result-bar{
  height:5px!important;
  margin-top:0!important;
  border-width:1px!important;
}
#pollDashboard .poll-result-grid.compact .poll-result-percent{
  font-size:9.5px!important;
  line-height:1!important;
}
#pollDashboard .poll-dashboard-foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:6px;
  margin-top:4px;
}
#pollDashboard .poll-dashboard-free-comment{
  margin-top:0!important;
  padding:1px 6px!important;
  font-size:10px!important;
  line-height:1.2!important;
}
#pollDashboard .modal-actions{
  margin-top:0!important;
}
#pollDashboard .modal-actions button{
  padding:2px 8px!important;
  font-size:10px!important;
  border-radius:999px!important;
  line-height:1.25!important;
}
#pollDashboard .poll-more-wrap{
  margin-top:3px!important;
}
#pollDashboard .poll-more-wrap button{
  padding:3px 10px!important;
  font-size:10px!important;
}
@media(max-width:380px){
  #pollDashboard .poll-result-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  #pollDashboard .poll-result-grid.compact .poll-result-line{grid-template-columns:minmax(0,1fr) 39px!important;}
  #pollDashboard .poll-result-grid.compact .poll-result-percent{font-size:9px!important;}
}




/* Notice detail modal - 2026-07-04 */
.notice-detail-link{
  display:inline;
  padding:0;
  margin:0 2px;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--primary);
  box-shadow:none;
  font-weight:900;
  text-decoration:underline;
  cursor:pointer;
}
.notice-detail-link:hover{transform:none;filter:none;color:var(--primary2);}
.notice-detail-suffix{color:var(--muted);font-size:12px;}
.notice-detail-modal{width:min(760px, calc(100vw - 28px));max-height:82vh;overflow:auto;}
.notice-detail-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;}
.notice-detail-head h2{margin:0;}
.notice-detail-title{font-size:18px;font-weight:900;margin:12px 0;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft);}
.notice-detail-body{white-space:normal;line-height:1.8;font-size:14px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;min-height:180px;}
.notice-detail-input{min-height:180px;line-height:1.7;}

/* Overlap layout 2026-07-05
   重なったLS活動は、カード同士を上下に重ねず左右の列へ自動分割します。 */
.activity.overlap-activity{
  z-index:2;
  padding-left:10px;
  padding-right:8px;
}
.activity.overlap-activity .activity-summary-line{
  gap:3px 5px;
}
.activity.overlap-activity .activity-summary-time{
  font-size:10px;
  padding:1px 6px;
}
.activity.overlap-activity .activity-summary-title{
  font-size:13px;
  max-width:100%;
}
.activity.overlap-activity .activity-summary-memo{
  -webkit-line-clamp:2;
}
.activity.overlap-activity .activity-response-summary{
  font-size:10px;
}

@media (max-width: 720px){
  .activity.overlap-activity{
    padding-left:8px;
    padding-right:6px;
  }
  .activity.overlap-activity .activity-summary-time{
    font-size:9px;
    padding:1px 5px;
  }
  .activity.overlap-activity .activity-summary-title{
    font-size:12px;
  }
  .activity.overlap-activity .activity-response-summary,
  .activity.overlap-activity .activity-summary-memo{
    font-size:9px;
  }
}


/* multiline activity memo v24 2026-07-05
   管理者編集画面で入力した改行を、LS活動カード上でも保持して表示します。 */
.activity-summary-memo,
.today-memo,
.admin-item-sub,
.response-comment{
  white-space:pre-line;
}
.activity.summary-activity .activity-summary-memo{
  word-break:break-word;
}


/* notice link restore v26 2026-07-05
   LS活動カード内の本文・参加表示を省略せず、カードの高さを超えた分はカード内スクロールで確認します。 */
.activity.summary-activity{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-width:thin;
  align-content:flex-start;
}
.activity.summary-activity::-webkit-scrollbar{width:8px;}
.activity.summary-activity::-webkit-scrollbar-thumb{background:#d6b895;border-radius:999px;}
.activity.summary-activity .activity-summary-left{
  min-width:0;
  min-height:0;
}
.activity.summary-activity .activity-summary-line{
  align-items:flex-start;
  flex-wrap:wrap;
}
.activity.summary-activity .activity-summary-title{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  word-break:break-word;
  overflow-wrap:anywhere;
  line-height:1.25;
}
.activity.summary-activity .activity-summary-memo,
.activity.summary-activity.short-activity .activity-summary-memo,
.activity.summary-activity.compact-activity .activity-summary-memo,
.activity.overlap-activity .activity-summary-memo{
  display:block!important;
  white-space:pre-wrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  -webkit-line-clamp:unset!important;
  -webkit-box-orient:unset!important;
  word-break:break-word;
  overflow-wrap:anywhere;
  max-height:none!important;
}
.activity.summary-activity .activity-response-summary,
.activity.summary-activity.short-activity .activity-response-summary,
.activity.summary-activity.compact-activity .activity-response-summary,
.activity.overlap-activity .activity-response-summary{
  max-height:none!important;
  overflow:visible!important;
}


/* ===== アンケート v28：トップ画面ボタンのホバー安定化 ===== */
#pollDashboard button:hover,
#pollDashboard button:focus,
#pollDashboard button:active{
  transform:none!important;
}
#pollDashboard [data-poll-open-answer],
#pollDashboardMoreBtn{
  position:relative;
  z-index:2;
  pointer-events:auto;
  touch-action:manipulation;
}
