:root{
  --saas-bg:linear-gradient(180deg,#f6fbf9 0%,#f3f6fb 45%,#eef4f3 100%);
  --saas-surface:#ffffffcc;
  --saas-surface-strong:#ffffff;
  --saas-border:#dce8e3;
  --saas-shadow:0 18px 50px rgba(18,52,43,.08);
  --saas-shadow-soft:0 10px 30px rgba(15,23,42,.06);
  --saas-text:#15332d;
  --saas-sub:#61746d;
  --saas-accent:#173f35;
  --saas-accent-2:#285f50;
  --saas-accent-soft:#e2f1eb;
  --saas-indigo:#5146e5;
}
body.theme-saas-admin{
  background:var(--saas-bg);
  color:var(--saas-text);
}
body.theme-saas-admin .admin-brand{
  position:sticky;top:0;z-index:10;
  background:rgba(23,63,53,.86);
  backdrop-filter:blur(18px);
  box-shadow:0 8px 30px rgba(23,63,53,.18);
}
body.theme-saas-admin .admin-brand-inner,
body.theme-saas-admin .container{width:min(1360px,calc(100% - 24px));}
body.theme-saas-admin .container{margin:36px auto 56px;}
body.theme-saas-admin .admin-brand-home{gap:5px;}
body.theme-saas-admin .card,
body.theme-saas-admin .flash-modal{
  border:1px solid rgba(220,232,227,.95);
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.9));
  box-shadow:var(--saas-shadow);
}
body.theme-saas-admin .page-title{font-size:clamp(1.85rem,3vw,2.4rem);margin-bottom:8px;color:#12342c;letter-spacing:-.03em}
body.theme-saas-admin .muted{color:var(--saas-sub)}
body.theme-saas-admin .admin-page-header{margin-bottom:24px;}
body.theme-saas-admin .dashboard-hero-header{align-items:center;}
body.theme-saas-admin .eyebrow{margin:0 0 8px;color:#4e8472;font-size:.74rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
body.theme-saas-admin .dashboard-hero{
  display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,.7fr);gap:24px;align-items:stretch;
  overflow:hidden;
  background:
    radial-gradient(circle at top right,rgba(81,70,229,.12),transparent 30%),
    radial-gradient(circle at bottom left,rgba(23,63,53,.12),transparent 30%),
    linear-gradient(180deg,rgba(255,255,255,.96),rgba(250,252,251,.92));
}
body.theme-saas-admin .dashboard-hero h2{margin:0 0 10px;color:#102f28;font-size:clamp(1.35rem,2.2vw,1.9rem);letter-spacing:-.03em}
body.theme-saas-admin .dashboard-hero p{margin:0;color:#4f645d;line-height:1.8}
body.theme-saas-admin .dashboard-chip{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;background:#e8f2ef;color:#245345;font-size:.78rem;font-weight:800;margin-bottom:14px}
body.theme-saas-admin .dashboard-chip::before{content:"";width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 5px #dcfce7}
body.theme-saas-admin .dashboard-user-meta{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
body.theme-saas-admin .dashboard-user-meta span{display:grid;gap:4px;min-width:160px;padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.75);border:1px solid #e4ece8;box-shadow:var(--saas-shadow-soft)}
body.theme-saas-admin .dashboard-user-meta strong{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:#668279}
body.theme-saas-admin .dashboard-user-meta em{font-style:normal;font-weight:700;color:#183730;overflow-wrap:anywhere}
body.theme-saas-admin .dashboard-hero-side{display:flex;flex-direction:column;justify-content:space-between;gap:18px;position:relative}
body.theme-saas-admin .dashboard-orb{min-height:120px;border-radius:28px;background:linear-gradient(135deg,#173f35,#5c79ff 130%);box-shadow:0 24px 40px rgba(23,63,53,.2);position:relative;overflow:hidden}
body.theme-saas-admin .dashboard-orb::before,
body.theme-saas-admin .dashboard-orb::after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.18)}
body.theme-saas-admin .dashboard-orb::before{width:140px;height:140px;right:-20px;top:-42px}
body.theme-saas-admin .dashboard-orb::after{width:88px;height:88px;left:18px;bottom:-26px}
body.theme-saas-admin .dashboard-mini-card{padding:18px 18px 16px;border-radius:22px;background:rgba(255,255,255,.86);border:1px solid #e2ece8;box-shadow:var(--saas-shadow-soft)}
body.theme-saas-admin .dashboard-mini-card strong{display:block;margin-bottom:8px;color:#173f35;font-size:1rem}
body.theme-saas-admin .dashboard-mini-card p{margin:0;color:#597069;line-height:1.7;font-size:.92rem}
body.theme-saas-admin .stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:20px}
body.theme-saas-admin .stat-card{padding:20px;display:grid;gap:6px;position:relative;overflow:hidden}
body.theme-saas-admin .stat-card::after{content:"";position:absolute;inset:auto -22px -22px auto;width:96px;height:96px;border-radius:50%;background:radial-gradient(circle,rgba(23,63,53,.08),transparent 70%)}
body.theme-saas-admin .stat-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:linear-gradient(135deg,#173f35,#2f6a59);color:#fff;font-size:1.35rem;box-shadow:0 12px 24px rgba(23,63,53,.15)}
body.theme-saas-admin .stat-card small{color:#6b7f79;font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
body.theme-saas-admin .stat-card strong{font-size:2rem;line-height:1;color:#102f28;letter-spacing:-.04em}
body.theme-saas-admin .stat-card p{margin:2px 0 0;color:#5f746d;font-size:.92rem}
body.theme-saas-admin .dashboard-menu-card{margin-top:20px;padding:26px}
body.theme-saas-admin .section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:18px}
body.theme-saas-admin .section-heading h2{margin:6px 0 0;font-size:1.4rem;color:#15332d;letter-spacing:-.03em}
body.theme-saas-admin .dashboard-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body.theme-saas-admin .dashboard-menu-link{
  display:grid;grid-template-columns:58px minmax(0,1fr);gap:14px;align-items:center;
  padding:18px 18px;border-radius:22px;text-decoration:none;color:inherit;
  background:linear-gradient(180deg,#ffffff,#f8fbfa);border:1px solid #e1ece7;box-shadow:var(--saas-shadow-soft);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
body.theme-saas-admin .dashboard-menu-link:hover{transform:translateY(-2px);box-shadow:0 18px 35px rgba(15,23,42,.08);border-color:#c7ddd5}
body.theme-saas-admin .dashboard-menu-link strong{display:block;color:#183730;font-size:1rem;line-height:1.35}
body.theme-saas-admin .dashboard-menu-link small{display:block;margin-top:4px;color:#667b74;line-height:1.55}
body.theme-saas-admin .dashboard-menu-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,#eff6f3,#dbece5);font-size:1.45rem}
body.theme-saas-admin .dashboard-menu-link.is-secondary .dashboard-menu-icon{background:linear-gradient(135deg,#eef1ff,#e1e7ff)}
body.theme-saas-admin button,
body.theme-saas-admin .button-link{
  border-radius:14px;
  background:linear-gradient(135deg,#173f35,#27584b);
  box-shadow:0 12px 24px rgba(23,63,53,.16);
  transition:transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}
body.theme-saas-admin button:hover,
body.theme-saas-admin .button-link:hover{transform:translateY(-1px);box-shadow:0 16px 30px rgba(23,63,53,.22)}
body.theme-saas-admin .button-link.secondary,
body.theme-saas-admin .button-secondary{background:linear-gradient(135deg,#4f46e5,#6b5cff)}
body.theme-saas-admin input,
body.theme-saas-admin select,
body.theme-saas-admin textarea{border-radius:14px;border-color:#d3e0da;background:rgba(255,255,255,.92)}
body.theme-saas-admin input:focus,
body.theme-saas-admin select:focus,
body.theme-saas-admin textarea:focus{outline:3px solid rgba(79,70,229,.12);border-color:#6d61ff}
body.theme-saas-admin table{border-collapse:separate;border-spacing:0}
body.theme-saas-admin th{background:#f7fbf9;color:#4c645c;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase}
body.theme-saas-admin th:first-child{border-top-left-radius:16px}
body.theme-saas-admin th:last-child{border-top-right-radius:16px}
body.theme-saas-admin td{white-space:normal;color:#223d36}
body.theme-saas-admin tr:nth-child(even) td{background:rgba(249,252,251,.8)}
body.theme-saas-admin tr:hover td{background:rgba(236,245,241,.78)}
body.theme-saas-admin .badge{padding:5px 10px;background:#eef2ff;color:#4f46e5;font-weight:700}
body.theme-saas-admin .flash{border-radius:18px;padding:14px 16px;box-shadow:var(--saas-shadow-soft)}
body.theme-saas-admin .danger-zone{border-radius:20px}
body.theme-saas-admin .admin-chat-card{border-radius:26px}
body.theme-saas-admin .admin-chat-log{background:linear-gradient(180deg,#eef5f2,#f6faf8)}
body.theme-saas-admin .admin-chat-bubble{border-radius:20px;box-shadow:0 10px 20px rgba(16,47,40,.05)}
body.theme-saas-admin .admin-chat-row.mine .admin-chat-bubble{background:#dff5ec}
body.theme-saas-admin .admin-chat-compose{background:rgba(255,255,255,.82);backdrop-filter:blur(8px)}
body.theme-saas-admin .inquiry-company-head{background:linear-gradient(180deg,#fbfdfc,#f4faf7)}
@media (max-width:980px){
  body.theme-saas-admin .dashboard-hero{grid-template-columns:1fr}
  body.theme-saas-admin .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  body.theme-saas-admin .admin-brand-inner,
  body.theme-saas-admin .container{width:min(100%,calc(100% - 22px))}
  body.theme-saas-admin .container{margin:18px auto 40px}
  body.theme-saas-admin .card{border-radius:22px;padding:20px}
  body.theme-saas-admin .page-title{font-size:1.7rem}
  body.theme-saas-admin .stats-grid,
  body.theme-saas-admin .dashboard-menu-grid{grid-template-columns:1fr}
  body.theme-saas-admin .dashboard-user-meta{display:grid;grid-template-columns:1fr}
  body.theme-saas-admin .section-heading{align-items:flex-start;flex-direction:column}
}

/* v0.1.31 dashboard refinements */
body.theme-saas-admin .ui-icon{display:block;width:26px;height:26px;color:currentColor}
body.theme-saas-admin .stat-icon .ui-icon{width:25px;height:25px}
body.theme-saas-admin .dashboard-menu-icon .ui-icon{width:27px;height:27px}
body.theme-saas-admin .stats-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}
body.theme-saas-admin .stat-card-link{text-decoration:none;color:inherit;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
body.theme-saas-admin .stat-card-link:hover{transform:translateY(-2px);box-shadow:0 18px 38px rgba(15,23,42,.09);border-color:#c7ddd5}
body.theme-saas-admin .stat-card.has-unread{border-color:#f0c9a7;background:linear-gradient(180deg,#fffdfa,#fff9f2)}
body.theme-saas-admin .stat-card.has-unread .stat-icon{background:linear-gradient(135deg,#9f5f2d,#c77c3a)}
body.theme-saas-admin .management-point-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
body.theme-saas-admin .management-point-head>strong{margin:0!important}
body.theme-saas-admin .management-point-badge{flex:0 0 auto;display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:#edf3f1;color:#43665c;font-size:.62rem;font-weight:900;letter-spacing:.09em}
body.theme-saas-admin .dashboard-mini-card.is-ai .management-point-badge{background:#eeeafe;color:#5747b6}
@media(max-width:980px){body.theme-saas-admin .stats-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){body.theme-saas-admin .stats-grid-three{grid-template-columns:1fr}}
body.theme-saas-admin tr.is-unread-report td{background:#fffaf2;font-weight:650}
body.theme-saas-admin .report-unread-badge{background:#fff0d9;color:#9a571f;border:1px solid #f0c79e}


/* v0.1.40: semantic action colors must win over the generic theme button rule. */
body.theme-saas-admin .button-danger{
  background:linear-gradient(135deg,#b91c1c,#dc2626);
  border-color:#991b1b;
  color:#fff;
  box-shadow:0 10px 22px rgba(185,28,28,.18);
}
body.theme-saas-admin .button-danger:hover{
  background:linear-gradient(135deg,#991b1b,#b91c1c);
  box-shadow:0 14px 28px rgba(185,28,28,.22);
}
body.theme-saas-admin .table-delete-button{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#b91c1c;
  box-shadow:none;
  text-decoration:underline;
  text-underline-offset:2px;
  transform:none;
}
body.theme-saas-admin .table-delete-button:hover{
  background:transparent;
  color:#991b1b;
  box-shadow:none;
  transform:none;
}
body.theme-saas-admin .button-logout{
  background:#fff;
  color:#b91c1c;
  border:1px solid #fecaca;
  box-shadow:none;
}
body.theme-saas-admin .button-logout:hover{
  background:#fff1f2;
  color:#991b1b;
  border-color:#fca5a5;
  box-shadow:none;
}
body.theme-saas-admin .admin-message-recall-button{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#6b7280;
  box-shadow:none;
  transform:none;
}
body.theme-saas-admin .admin-message-recall-button:hover{
  background:transparent;
  color:#991b1b;
  box-shadow:none;
  transform:none;
}
body.theme-saas-admin .admin-chat-latest{
  background:#fff;
  color:#294b40;
  border-color:#cfd8d4;
  box-shadow:0 6px 18px #173f3520;
}
body.theme-saas-admin .admin-chat-latest:hover{
  background:#f7faf9;
  color:#173f35;
  box-shadow:0 8px 20px #173f3528;
}
body.theme-saas-admin .admin-notification-button{
  background:#ffffff12;
  color:#fff;
  border-color:#ffffff42;
  box-shadow:none;
}
body.theme-saas-admin .admin-notification-button[data-state="on"]{background:#ffffff22}
body.theme-saas-admin .admin-notification-button:hover{
  background:#ffffff22;
  box-shadow:none;
  transform:none;
}

/* v0.1.41 daily report collaboration */
.daily-report-ai{border:1px solid #cfe2da;background:linear-gradient(180deg,#f8fcfa 0%,#f2f8f5 100%);margin-bottom:18px}
.daily-report-ai.is-ready{border-color:#aacbbd}
.daily-report-ai.is-error{border-color:#e5caca;background:#fffafa}
.daily-report-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}
.daily-report-section-head .card-title{margin:3px 0 0}
.daily-report-ai-text{margin:0;line-height:1.8;white-space:pre-wrap}
.daily-report-comment-list{display:grid;gap:10px;margin:16px 0}
.daily-report-comment{max-width:86%;padding:12px 14px;border:1px solid #e2e8e5;border-radius:14px;background:#f8faf9}
.daily-report-comment.is-mine{margin-left:auto;background:#e8f4ef;border-color:#c8ded5}
.daily-report-comment-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:7px;font-size:.82rem}
.daily-report-comment-meta time{color:#7a8580;margin-left:auto;font-size:.74rem}
.daily-report-comment p{margin:0;line-height:1.65}
.daily-report-comment-form{display:grid;gap:10px;margin-top:18px;padding-top:18px;border-top:1px solid #e5ebe8}
@media(max-width:720px){.daily-report-section-head{flex-direction:column;gap:6px}.daily-report-comment{max-width:94%}.daily-report-comment-meta time{width:100%;margin-left:0}}

/* v0.1.47: company list operation toolbar */
body.theme-saas-admin .company-operation-toolbar{gap:16px}
body.theme-saas-admin .company-tool-group{
  border-color:#dce8e3;
  border-radius:18px;
  box-shadow:0 8px 22px rgba(18,52,43,.045);
}
body.theme-saas-admin .company-tool-group-print{
  background:linear-gradient(180deg,rgba(244,250,247,.96),rgba(239,247,243,.92));
}
body.theme-saas-admin .company-tool-group-csv{
  background:linear-gradient(180deg,rgba(247,247,255,.98),rgba(242,243,255,.92));
  border-color:#e1e1f5;
}
body.theme-saas-admin .company-tool-group-title{color:#587068}
body.theme-saas-admin .company-tool-group-csv .company-tool-group-title{color:#5b58a4}
body.theme-saas-admin .company-tool-button{
  min-height:42px;
  padding:9px 13px;
  border-radius:12px;
  box-shadow:none;
  font-size:.9rem;
  font-weight:700;
}
body.theme-saas-admin .company-tool-button-print{
  background:linear-gradient(135deg,#173f35,#2d6656);
  color:#fff;
}
body.theme-saas-admin .company-tool-button-csv{
  background:linear-gradient(135deg,#4f46e5,#6558ef);
  color:#fff;
}
body.theme-saas-admin .company-tool-button:hover{box-shadow:0 10px 20px rgba(23,63,53,.13)}
body.theme-saas-admin .company-tool-button-csv:hover{box-shadow:0 10px 20px rgba(79,70,229,.16)}
body.theme-saas-admin .company-tool-button:disabled{box-shadow:none;transform:none}
body.theme-saas-admin .company-register-button{padding:10px 15px}

/* v0.1.51: wider desktop workspace for data-heavy admin pages. */
@media (min-width:1100px){
  body.theme-saas-admin .company-operation-toolbar{gap:14px}
  body.theme-saas-admin .company-tool-group-print{flex:0 0 auto}
  body.theme-saas-admin .company-tool-group-csv{flex:1 1 auto}
  body.theme-saas-admin .company-tool-actions{flex-wrap:nowrap}
  body.theme-saas-admin .company-tool-button{padding-left:11px;padding-right:11px;font-size:.86rem}
}

/* v0.1.53: AI Matsunaga-kun separate mascot + seasonal farm layers */
body.theme-saas-admin .matsunaga-ai-stage{
  position:relative;
  min-height:190px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:28px;
  isolation:isolate;
  background:#eaf3ed;
  box-shadow:0 20px 38px rgba(23,63,53,.16);
}
body.theme-saas-admin .matsunaga-season-background{
  position:absolute;
  z-index:0;
  inset:0;
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover;
  transform:scale(1.015);
  transition:background-image .2s ease;
}
body.theme-saas-admin .matsunaga-ai-stage.is-spring .matsunaga-season-background{background-image:url('/assets/matsunaga-farm-spring-v0.1.103.webp')}
body.theme-saas-admin .matsunaga-ai-stage.is-summer .matsunaga-season-background{background-image:url('/assets/matsunaga-farm-summer-v0.1.103.webp')}
body.theme-saas-admin .matsunaga-ai-stage.is-autumn .matsunaga-season-background{background-image:url('/assets/matsunaga-farm-autumn-v0.1.103.webp')}
body.theme-saas-admin .matsunaga-ai-stage.is-winter .matsunaga-season-background{background-image:url('/assets/matsunaga-farm-winter-v0.1.103.webp')}
body.theme-saas-admin .matsunaga-ai-stage::after{
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(12,45,37,.06));
  pointer-events:none;
}
body.theme-saas-admin .matsunaga-kun-character{
  position:relative;
  z-index:1;
  display:block;
  width:min(165px,48%);
  height:auto;
  filter:drop-shadow(0 16px 16px rgba(12,45,37,.22));
  animation:matsunaga-kun-float 4.6s ease-in-out infinite;
  transform-origin:50% 84%;
}
body.theme-saas-admin .matsunaga-kun-label{
  position:absolute;
  z-index:2;
  right:14px;
  bottom:12px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:#173f35;
  box-shadow:0 8px 20px rgba(12,45,37,.14);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.03em;
  backdrop-filter:blur(8px);
}
body.theme-saas-admin .matsunaga-kun-label small{font-size:.65rem;font-weight:800;color:#638077}
@keyframes matsunaga-kun-float{
  0%,100%{transform:translateY(2px) rotate(-.7deg)}
  50%{transform:translateY(-7px) rotate(.8deg)}
}
@media(max-width:980px){
  body.theme-saas-admin .matsunaga-ai-stage{min-height:170px}
  body.theme-saas-admin .matsunaga-kun-character{width:min(150px,40%)}
}
@media(max-width:720px){
  body.theme-saas-admin .matsunaga-ai-stage{min-height:158px}
  body.theme-saas-admin .matsunaga-kun-character{width:132px}
  body.theme-saas-admin .matsunaga-kun-label{right:10px;bottom:9px;padding:6px 8px}
}
@media(prefers-reduced-motion:reduce){
  body.theme-saas-admin .matsunaga-kun-character{animation:none}
}

/* v0.1.54 attendance */
body.theme-saas-admin .dashboard-attendance-card{margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;background:linear-gradient(135deg,#f3faf7,#fff);border-color:#dcebe5}
body.theme-saas-admin .dashboard-attendance-copy{display:flex;align-items:center;gap:16px;min-width:0}
body.theme-saas-admin .dashboard-attendance-icon{display:grid;place-items:center;width:54px;height:54px;flex:0 0 54px;border-radius:17px;background:#e1eee9;color:#173f35}
body.theme-saas-admin .dashboard-attendance-icon .ui-icon{width:27px;height:27px}
body.theme-saas-admin .dashboard-attendance-card h2{margin:2px 0 4px;color:#173f35;font-size:1.08rem}
body.theme-saas-admin .dashboard-attendance-card p{margin:0;color:#61766f;line-height:1.6}
body.theme-saas-admin .dashboard-attendance-action{white-space:nowrap;background:#173f35}
body.theme-saas-admin .attendance-clock-card{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:20px;padding:26px;background:linear-gradient(135deg,#f4fbf8,#fff)}
body.theme-saas-admin .attendance-clock-copy{min-width:0}
body.theme-saas-admin .attendance-time-grid{display:flex;gap:12px;margin-top:18px}
body.theme-saas-admin .attendance-time-grid>div{min-width:128px;padding:14px 16px;border-radius:16px;background:#fff;border:1px solid #e0ebe6}
body.theme-saas-admin .attendance-time-grid small{display:block;color:#6b7f78;font-weight:700;margin-bottom:5px}
body.theme-saas-admin .attendance-time-grid strong{font-size:1.35rem;color:#173f35}
body.theme-saas-admin .attendance-clock-actions{display:grid;justify-items:end;gap:12px}
body.theme-saas-admin .attendance-primary-button{min-width:150px;background:#173f35}
body.theme-saas-admin .attendance-out-button{min-width:150px;background:#7c3f31}
body.theme-saas-admin .attendance-working-badge,body.theme-saas-admin .attendance-finished-badge{display:inline-flex;padding:7px 11px;border-radius:999px;font-size:.82rem;font-weight:800}
body.theme-saas-admin .attendance-working-badge{background:#dcfce7;color:#166534}
body.theme-saas-admin .attendance-finished-badge{background:#eef2f7;color:#4b5563}
body.theme-saas-admin .attendance-working-text{color:#166534;font-weight:800}
body.theme-saas-admin .attendance-admin-card{padding:24px}
body.theme-saas-admin .attendance-heading{align-items:end;margin-bottom:16px}
body.theme-saas-admin .attendance-date-filter{display:flex;align-items:end;gap:8px}
body.theme-saas-admin .attendance-date-filter label{font-size:.8rem;color:#667b74}
body.theme-saas-admin .attendance-date-filter input{min-width:150px}
body.theme-saas-admin .settings-fieldset{margin:4px 0 0;padding:20px;border:1px solid #dde7e3;border-radius:14px;background:#fbfdfc}
body.theme-saas-admin .settings-fieldset legend{padding:0 8px;color:#173f35;font-weight:800}
body.theme-saas-admin .settings-workdays{display:grid;gap:8px;margin-top:16px}
body.theme-saas-admin .settings-workday-options{display:flex;flex-wrap:wrap;gap:10px}
body.theme-saas-admin .settings-workday-options .checkbox-row{padding:8px 11px;border:1px solid #dce7e2;border-radius:10px;background:#fff}
@media(max-width:720px){body.theme-saas-admin .dashboard-attendance-card,body.theme-saas-admin .attendance-clock-card{align-items:stretch;flex-direction:column}body.theme-saas-admin .dashboard-attendance-action,body.theme-saas-admin .attendance-clock-actions,body.theme-saas-admin .attendance-clock-actions form,body.theme-saas-admin .attendance-clock-actions button{width:100%}body.theme-saas-admin .attendance-clock-actions{justify-items:stretch}body.theme-saas-admin .attendance-time-grid{display:grid;grid-template-columns:1fr 1fr}body.theme-saas-admin .attendance-time-grid>div{min-width:0}body.theme-saas-admin .attendance-heading{align-items:flex-start}body.theme-saas-admin .attendance-date-filter{width:100%}}

/* v0.1.57: stable management page geometry */
html{scrollbar-gutter:stable}
body.theme-saas-admin .admin-brand-home{display:flex;align-items:center;gap:0}
body.theme-saas-admin .admin-page-header{min-height:88px}
body.theme-saas-admin .admin-page-header>div:first-child::before{color:#4e8472}
body.theme-saas-admin .admin-page-header>div:first-child>.eyebrow:first-child{display:none}
body.theme-saas-admin.is-ai-matsunaga-page .container{width:min(1360px,calc(100% - 24px))}
body.theme-saas-admin.is-ai-matsunaga-page .ai-matsunaga-nav{width:100%}
body.theme-saas-admin .auth-heading .eyebrow{display:block;margin:0 0 8px}
@media(max-width:720px){body.theme-saas-admin .admin-page-header{min-height:0}body.theme-saas-admin.is-ai-matsunaga-page .container{width:min(100%,calc(100% - 22px))}}

/* v0.1.60 AI Matsunaga content management polish */
body.theme-saas-admin.is-ai-matsunaga-page .ai-record-actions{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid rgba(15,23,42,.08)}
body.theme-saas-admin.is-ai-matsunaga-page .ai-record-actions form{margin:0}
body.theme-saas-admin.is-ai-matsunaga-page .ai-record-actions button{min-width:112px}
body.theme-saas-admin.is-ai-matsunaga-page .ai-pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin:22px 0 8px}
body.theme-saas-admin.is-ai-matsunaga-page .ai-pagination a,body.theme-saas-admin.is-ai-matsunaga-page .ai-pagination span{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;border-radius:10px;background:#fff;border:1px solid rgba(15,23,42,.10);text-decoration:none}
body.theme-saas-admin.is-ai-matsunaga-page .ai-pagination span{color:#64748b}
body.theme-saas-admin.is-ai-matsunaga-page .ai-settings-section{padding:18px;border:1px solid rgba(15,23,42,.09);border-radius:14px;background:rgba(248,250,252,.82)}
body.theme-saas-admin.is-ai-matsunaga-page .ai-keyword-list{display:grid;gap:9px;margin-top:12px}
body.theme-saas-admin.is-ai-matsunaga-page .ai-keyword-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
body.theme-saas-admin.is-ai-matsunaga-page .ai-keyword-remove{white-space:nowrap}
body.theme-saas-admin.is-ai-matsunaga-page .ai-admin-technical>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none}
body.theme-saas-admin.is-ai-matsunaga-page .ai-admin-technical>summary::-webkit-details-marker{display:none}
body.theme-saas-admin.is-ai-matsunaga-page .ai-admin-technical>summary::after{content:'＋';font-weight:700;color:#64748b}
body.theme-saas-admin.is-ai-matsunaga-page .ai-admin-technical[open]>summary::after{content:'−'}
body.theme-saas-admin.is-ai-matsunaga-page .ai-admin-technical-body{margin-top:18px;padding-top:18px;border-top:1px solid rgba(15,23,42,.08)}
@media(max-width:640px){body.theme-saas-admin.is-ai-matsunaga-page .ai-keyword-row{grid-template-columns:1fr}body.theme-saas-admin.is-ai-matsunaga-page .ai-keyword-remove{justify-self:end}body.theme-saas-admin.is-ai-matsunaga-page .ai-record-actions{flex-wrap:wrap}}
