@charset "UTF-8";
.tbar {
  height: 64px;
  background: var(--white);
  border-bottom: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.tbar .back {
  font-size: 14px;
  font-weight: 700;
  color: var(--mute);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tbar h1 {
  font-size: 18px;
  margin: 0;
}
.tbar .saved {
  font-size: 13px;
  color: var(--green);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tbar .saved::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.tbar .r {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.prog {
  display: flex;
  gap: 0;
  margin-left: 16px;
}
.prog div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mute);
  padding: 0 12px;
  position: relative;
}
.prog div b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 11px;
  background: var(--white);
}
.prog div.done {
  color: var(--ink);
}
.prog div.done b {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.prog div.on {
  color: var(--ink);
}
.prog div.on b {
  background: var(--yellow);
  border-color: var(--ink);
  color: var(--ink);
}

.tool-split {
  --split-left: 50%;
  --split-right: 50%;
  display: grid;
  grid-template-columns: var(--split-left) 1fr;
  min-height: calc(100vh - 64px);
  position: relative;
}
.tool-split.has-resizer {
  grid-template-columns: var(--split-left) 10px var(--split-right);
}
.tool-split.is-resizing {
  user-select: none;
  cursor: col-resize;
}

.tool-form {
  background: var(--white);
  border-right: none;
  position: relative;
  padding-bottom: 80px;
  min-width: 320px;
  overflow-y: auto;
}

.tool-resizer {
  width: 10px;
  background: #E9ECEF;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  cursor: col-resize;
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: background 0.15s;
}
.tool-resizer:hover, .tool-resizer.is-active {
  background: var(--yellow);
}
.tool-resizer::after {
  content: "";
  width: 2px;
  height: 32px;
  background: #ADB5BD;
  border-radius: 1px;
}
.tool-resizer:hover::after, .tool-resizer.is-active::after {
  background: var(--ink);
}

.split-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 2px 4px;
}
.split-controls .sc-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--mute);
  padding: 0 4px;
}
.split-controls .sc-btn {
  border: none;
  background: transparent;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.split-controls .sc-btn:hover {
  background: #E2E8F0;
}
.split-controls .sc-btn.active {
  background: var(--ink);
  color: var(--yellow);
}

.sp-pv-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  z-index: 9999;
  flex-direction: column;
  backdrop-filter: blur(4px);
}
.sp-pv-modal.is-open {
  display: flex;
}
.sp-pv-modal .sp-pv-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  border-bottom: 1.5px solid #334155;
}
.sp-pv-modal .sp-pv-bar h3 {
  font-size: 15px;
  margin: 0;
  font-weight: 700;
  color: #fff;
}
.sp-pv-modal .sp-pv-bar .sp-pv-close {
  background: #334155;
  color: #fff;
  border: 1px solid #475569;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.sp-pv-modal .sp-pv-body {
  flex: 1;
  overflow: auto;
  padding: 16px 12px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  -webkit-overflow-scrolling: touch;
  background: #374151;
}
.sp-pv-modal .sp-pv-body .sp-pv-wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.sp-pv-modal .sp-pv-body .sp-pv-wrap .paper, .sp-pv-modal .sp-pv-body .sp-pv-wrap .a4 {
  margin: 0 auto !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
  background: #fff !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: unset !important;
  box-sizing: border-box !important;
  padding: 16px 12px !important;
  overflow-x: auto;
}
.sp-pv-modal .sp-pv-body .sp-pv-wrap .paper table, .sp-pv-modal .sp-pv-body .sp-pv-wrap .a4 table {
  width: 100% !important;
  font-size: 11px !important;
}
.sp-pv-modal .sp-pv-body .sp-pv-wrap .paper th, .sp-pv-modal .sp-pv-body .sp-pv-wrap .paper td, .sp-pv-modal .sp-pv-body .sp-pv-wrap .a4 th, .sp-pv-modal .sp-pv-body .sp-pv-wrap .a4 td {
  padding: 6px 8px !important;
}
.sp-pv-modal .sp-pv-foot {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1.5px solid var(--line);
}
.sp-pv-modal .sp-pv-foot .btn {
  flex: 1;
  min-height: 46px;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
}

.fs {
  padding: 20px 24px 0;
}
.fs h3 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.fs h3 b {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--yellow);
  display: grid;
  place-items: center;
  font-size: 12px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.grid2 > * {
  min-width: 0;
}

.fld {
  min-width: 0;
}
.fld label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.fld label em {
  font-style: normal;
  color: var(--red);
  font-size: 11px;
}
.fld label small {
  color: var(--mute);
  font-weight: 400;
  font-size: 11px;
}

.inp-wrap {
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  font-size: 14px;
  background: var(--white);
  box-sizing: border-box;
}
.inp-wrap input, .inp-wrap select {
  border: none;
  background: transparent;
  width: 100%;
  min-width: 0;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.inp-wrap:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--yellow-soft);
}

.seg {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  height: 44px;
}
.seg button {
  flex: 1;
  border: none;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-right: 1px solid var(--line);
  font-family: inherit;
}
.seg button:last-child {
  border: none;
}
.seg button.on {
  background: var(--ink);
  color: #fff;
}

.stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  height: 44px;
  overflow: hidden;
  box-sizing: border-box;
}
.stepper button {
  width: 36px;
  min-width: 36px;
  height: 100%;
  border: none;
  font-size: 18px;
  font-weight: 700;
  background: var(--paper);
  cursor: pointer;
  flex-shrink: 0;
}
.stepper input {
  flex: 1;
  min-width: 0;
  width: 0;
  text-align: center;
  border: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.ta-wrap {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--white);
}
.ta-wrap textarea {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  line-height: 1.7;
  min-height: 88px;
  resize: vertical;
  font-family: inherit;
}
.ta-wrap:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--yellow-soft);
}

.phr {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.phr button {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px dashed #B9B3A6;
  color: var(--ink-2);
  background: var(--paper);
  cursor: pointer;
  font-family: inherit;
}
.phr button::before {
  content: "＋ ";
  color: var(--mute);
}

.bottombar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1.5px solid var(--line);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 20;
}
.bottombar .p {
  font-size: 12px;
  color: var(--mute);
}
.bottombar .p b {
  color: var(--ink);
  font-size: 14px;
}

.bar {
  width: 120px;
  height: 6px;
  border-radius: 999px;
  background: var(--line-2);
  overflow: hidden;
  margin-top: 3px;
}
.bar i {
  display: block;
  width: 75%;
  height: 100%;
  background: var(--green);
}

.pv {
  background: #E8E5DE;
  position: relative;
  padding: 24px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pv > div:not(.pv-tool) {
  width: 100%;
  max-width: 820px;
  box-sizing: border-box;
}
.pv-tool {
  display: flex;
  gap: 4px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.pv-tool button {
  padding: 4px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.pv-tool button.on {
  background: var(--ink);
  color: #fff;
}

.a4 {
  width: 100%;
  max-width: 820px;
  background: var(--white);
  border: 1.5px solid #C4BFB5;
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  padding: 28px 22px;
}

.tool-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.tool-page-header {
  margin-bottom: 24px;
}

.tool-header-content {
  margin-top: 12px;
}

.tool-header-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.icon-char {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 11px;
}

.tool-meta-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--mute);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 4px;
}

.tool-meta-badge {
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 3px 8px;
  border-radius: 4px;
}

.tool-title {
  font-family: var(--f-head);
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.35;
}

.tool-description {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0;
  max-width: 800px;
}

.mobile-step-nav {
  display: none;
  gap: 8px;
  margin-bottom: 20px;
}

.mobile-step-tab {
  flex: 1;
  padding: 12px 8px;
  font-size: 13.5px;
  font-weight: 700;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
  cursor: pointer;
}
.mobile-step-tab.active {
  background: var(--yellow);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.tool-workspace {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.tool-edit-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tool-preview-pane {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pane-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-m);
  padding: 24px;
  box-shadow: var(--shadow-hard);
}
.pane-card-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--line-2);
}

@media (max-width: 960px) {
  .mobile-step-nav {
    display: flex;
  }
  .tool-workspace {
    grid-template-columns: 1fr;
  }
  .tool-preview-pane {
    position: static;
  }
}
.preset-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-chip {
  padding: 8px 14px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.preset-chip:hover {
  border-color: var(--ink);
  background: #fff;
}
.preset-chip.active {
  background: var(--ink);
  color: var(--yellow);
  border-color: var(--ink);
}

.form-group {
  margin-bottom: 16px;
}
.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-label .required-badge {
  font-size: 11px;
  background: #fee2e2;
  color: #b91c1c;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink);
  box-sizing: border-box;
  font-family: inherit;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--yellow);
}

.form-textarea {
  resize: vertical;
  line-height: 1.6;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-hint {
  font-size: 12px;
  color: var(--mute);
  margin-top: 4px;
  line-height: 1.5;
}

.form-actions-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}
.btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
}

.preview-card-wrapper {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-m);
  padding: 20px;
  box-shadow: var(--shadow-hard);
}

.preview-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--line-2);
}

.preview-mode-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: var(--yellow);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--ink);
}

.paper-frame-outer {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
}

.tool-actions-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.btn-hero-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 14px 20px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--yellow);
  transition: transform 0.1s ease;
}
.btn-hero-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--yellow);
}
.btn-hero-primary .btn-hero-label {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.btn-hero-primary .btn-hero-sub {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 2px;
}

.action-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-tool-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.btn-tool-secondary:hover {
  border-color: var(--ink);
  background: #fff;
}

.tool-cv-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--r-m);
  padding: 16px;
  font-size: 13px;
  color: #14532d;
  line-height: 1.6;
}

.btn-sm-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 4px;
  text-decoration: none;
}

.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-hard);
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  pointer-events: none;
}
.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.tool-seo-container {
  max-width: 900px;
  margin: 64px auto 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.seo-article-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-m);
  padding: 32px;
  box-shadow: var(--shadow-hard);
}
@media (max-width: 600px) {
  .seo-article-card {
    padding: 20px;
  }
}

.seo-heading {
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 5px solid var(--yellow);
}

.seo-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
}
.seo-body p {
  margin: 0 0 16px;
}
.seo-body p:last-child {
  margin-bottom: 0;
}
.seo-body ul, .seo-body ol {
  margin: 12px 0 16px;
  padding-left: 20px;
}
.seo-body ul li, .seo-body ol li {
  margin-bottom: 6px;
}

.point-box {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.7;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.faq-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}

.faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.faq-badge-q {
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 900;
  background: var(--yellow);
  color: var(--ink);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--ink);
  flex-shrink: 0;
}

.faq-a {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.faq-badge-a {
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 900;
  background: var(--ink);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.cat-tag-food {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #fcd34d;
  border-radius: 4px;
}

.cat-tag-safety {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #bae6fd;
  border-radius: 4px;
}

.check-preview-paper {
  background: #fff;
  color: #1a1d21;
  padding: 28px 24px;
  border: 1px solid #dcd8cf;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  font-size: 13px;
  line-height: 1.6;
}

.check-preview-header {
  border-bottom: 2px solid #1a1d21;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.check-meta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  margin-top: 10px;
}

.stamp-box-group {
  display: flex;
  gap: 4px;
}

.stamp-cell {
  width: 54px;
  height: 56px;
  border: 1px solid #1a1d21;
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 10px;
}
.stamp-cell-title {
  background: #f6f4ef;
  border-bottom: 1px solid #1a1d21;
  padding: 2px 0;
  font-weight: 700;
}

.check-content-render {
  white-space: pre-wrap;
  font-family: monospace;
  background: #fafaf7;
  border: 1px solid #e5e3dc;
  padding: 16px;
  border-radius: 4px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #1a1d21;
}

.check-memo-render {
  margin-top: 14px;
  border: 1px dashed #b8b3a8;
  padding: 10px 14px;
  background: #fffdf9;
  font-size: 12px;
}

.check-action-render {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  font-size: 12px;
  color: #991b1b;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}
.mobile-nav a {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
}
.mobile-nav a:hover {
  background: var(--paper);
}

.form-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink);
  box-sizing: border-box;
  font-family: inherit;
}
.form-select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--yellow);
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0;
}

.slider-val-badge {
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  padding: 4px 12px;
  border-radius: 6px;
  min-width: 60px;
  text-align: center;
}

.slider-input-bar {
  flex: 1;
  height: 8px;
  -webkit-appearance: none;
  background: var(--line);
  border-radius: 4px;
  outline: none;
}
.slider-input-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  border: 2px solid var(--yellow);
}

.hantei-summary-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-m);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 2px 2px 0 var(--ink);
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  transition: all 0.2s;
}
.result-item.pass {
  border-left: 5px solid #16a34a;
  background: #f0fdf4;
}
.result-item.fail {
  border-left: 5px solid #dc2626;
  background: #fef2f2;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 9999px;
  white-space: nowrap;
  margin-left: 12px;
}
.status-pill.ok, .status-pill.pass {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}
.status-pill.ng, .status-pill.fail {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.lang-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.lang-btn {
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.lang-btn:hover {
  border-color: var(--ink);
  background: var(--paper);
}
.lang-btn.on {
  background: var(--ink);
  color: var(--yellow);
  border-color: var(--ink);
}

.phrase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 16px;
}

.phrase-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.15s ease;
}
.phrase-chip:hover {
  border-color: var(--ink);
  background: #fdfdfd;
}
.phrase-chip.selected {
  border-color: #1E7E34;
  background: #F3FAF3;
}
.phrase-chip .p-ja {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.phrase-chip .p-tr {
  font-size: 11.5px;
  color: #1E7E34;
  font-weight: 700;
  margin-top: 2px;
}
.phrase-chip .chk {
  font-size: 14px;
  font-weight: 900;
  color: #1E7E34;
  width: 20px;
  text-align: center;
}

.p-item {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.15s ease;
}
.p-item:hover {
  border-color: var(--ink);
  background: var(--paper);
}
.p-item .ja {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.p-item .trans {
  font-size: 12.5px;
  color: var(--green, #16a34a);
  margin-top: 2px;
}

.bilingual-card {
  border: 1.5px solid #c4bfb5;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
}
.bilingual-card .b-ja {
  font-size: 16px;
  font-weight: 700;
  color: #1a1d21;
  line-height: 1.5;
}
.bilingual-card .b-trans {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e7e34;
  margin-top: 4px;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

.pao-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 8px 0 14px;
}

.log-preset-banner {
  background: #fff9e6;
  border-bottom: 2px solid var(--ink);
  padding: 16px 20px;
}
.log-preset-banner h4 {
  color: var(--ink);
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 14px;
}
.log-preset-banner .desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}

.preset-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

.preset-chip {
  padding: 6px 14px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.preset-chip:hover {
  border-color: var(--ink);
  background: var(--paper);
}
.preset-chip.active {
  background: var(--ink);
  color: var(--yellow);
  border-color: var(--ink);
}

.eval-select-group {
  display: flex;
  gap: 12px;
  margin: 8px 0 16px;
}
.eval-select-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.eval-select-group label:hover {
  border-color: var(--ink);
}

.trainee-sheet {
  background: #fff;
  border: 2px solid #1a1d21;
  padding: 24px;
  font-family: var(--f-body);
  color: #1a1d21;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.trainee-sheet .sheet-title {
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1a1d21;
}
.trainee-sheet .sheet-meta-grid {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 16px;
  margin-bottom: 16px;
}
.trainee-sheet .sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 12px;
}
.trainee-sheet .sheet-table th, .trainee-sheet .sheet-table td {
  border: 1px solid #1a1d21;
  padding: 6px 10px;
  vertical-align: middle;
}
.trainee-sheet .sheet-table th {
  background: #f8fafc;
  font-weight: 700;
  white-space: nowrap;
}
.trainee-sheet .sheet-table th.col-w25 {
  width: 25%;
}
.trainee-sheet .sheet-table th.col-w20 {
  width: 20%;
}
.trainee-sheet .sheet-table td.col-w25 {
  width: 25%;
}
.trainee-sheet .sheet-stamp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 11px;
}
.trainee-sheet .sheet-stamp-table th {
  background: #f8fafc;
  border: 1px solid #1a1d21;
  padding: 4px;
  font-weight: 700;
}
.trainee-sheet .sheet-stamp-table td {
  border: 1px solid #1a1d21;
  height: 52px;
}
.trainee-sheet .sheet-eval-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 900;
  font-size: 11px;
  border: 1px solid #1a1d21;
}
.trainee-sheet .sheet-eval-badge.eval-a {
  background: #dcfce7;
  color: #166534;
}
.trainee-sheet .sheet-eval-badge.eval-b {
  background: #fef9c3;
  color: #854d0e;
}
.trainee-sheet .sheet-eval-badge.eval-c {
  background: #fee2e2;
  color: #991b1b;
}
.trainee-sheet .eval-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.trainee-sheet .eval-row span#pvEvalText {
  font-weight: 700;
  font-size: 11px;
}
.trainee-sheet .sign-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.trainee-sheet .sign-row .sign-note {
  font-size: 11px;
  color: #64748b;
}
.trainee-sheet .sign-row .sign-box {
  font-size: 11px;
  border-bottom: 1px solid #1a1d21;
  width: 160px;
  display: inline-block;
  text-align: right;
  padding-right: 8px;
}
.trainee-sheet .sheet-footer-note {
  margin-top: 12px;
  font-size: 10px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
}

.entry-preset-banner {
  background: #eff6ff;
  border-bottom: 2px solid var(--ink);
  padding: 16px 20px;
}
.entry-preset-banner h4 {
  color: #1e40af;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 14px;
}
.entry-preset-banner .desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}

.card-check-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 10px 0 16px;
}
.card-check-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.card-check-group label:hover {
  border-color: var(--ink);
}
.card-check-group label input:checked + span {
  color: var(--blue);
}

.entry-sheet {
  background: #fff;
  border: 2px solid #1a1d21;
  padding: 24px;
  font-family: var(--f-body);
  color: #1a1d21;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.entry-sheet .sheet-title {
  text-align: center;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1a1d21;
}
.entry-sheet .meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 12px;
}
.entry-sheet .meta-table th, .entry-sheet .meta-table td {
  border: 1px solid #1a1d21;
  padding: 5px 8px;
  vertical-align: middle;
}
.entry-sheet .meta-table th {
  background: #f8fafc;
  font-weight: 700;
  white-space: nowrap;
  width: 18%;
}
.entry-sheet .meta-table td.w-32 {
  width: 32%;
}
.entry-sheet .check-section-title {
  font-size: 13px;
  font-weight: 900;
  background: #f1f5f9;
  padding: 4px 8px;
  border: 1px solid #1a1d21;
  border-bottom: none;
  margin: 0;
}
.entry-sheet .edu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  margin-bottom: 12px;
}
.entry-sheet .edu-table th, .entry-sheet .edu-table td {
  border: 1px solid #1a1d21;
  padding: 5px 8px;
}
.entry-sheet .edu-table th {
  background: #f8fafc;
  font-weight: 700;
  text-align: center;
}
.entry-sheet .edu-table td.td-chk {
  width: 36px;
  text-align: center;
  font-weight: 900;
  color: #166534;
}
.entry-sheet .edu-table td.td-item {
  font-weight: 700;
  width: 30%;
}
.entry-sheet .edu-table td.td-detail {
  color: #334155;
}
.entry-sheet .pledge-box {
  border: 1.5px solid #1a1d21;
  background: #fafafa;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.entry-sheet .pledge-box .pledge-ja {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
  color: #0f172a;
}
.entry-sheet .pledge-box .pledge-multi {
  font-size: 10.5px;
  color: #166534;
  font-weight: 700;
  margin-top: 4px;
  line-height: 1.4;
}
.entry-sheet .sign-grid {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 16px;
  align-items: end;
}
.entry-sheet .sign-grid .sign-field {
  border: 1px solid #1a1d21;
  padding: 8px 12px;
  height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.entry-sheet .sign-grid .sign-field .lbl {
  font-size: 10px;
  color: #64748b;
}
.entry-sheet .sign-grid .sign-field .name-row {
  font-size: 13px;
  font-weight: 900;
  text-align: right;
  padding-right: 8px;
}
.entry-sheet .stamp-box-single {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 11px;
}
.entry-sheet .stamp-box-single th {
  background: #f8fafc;
  border: 1px solid #1a1d21;
  padding: 3px;
  font-weight: 700;
}
.entry-sheet .stamp-box-single td {
  border: 1px solid #1a1d21;
  height: 48px;
}
.entry-sheet .entry-footer-note {
  margin-top: 10px;
  font-size: 10px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
}

.praise-banner {
  background: #f0fdf4;
  border-bottom: 2px solid var(--ink);
  padding: 16px 20px;
}
.praise-banner h4 {
  color: #166534;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 14px;
}
.praise-banner .desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}

.nation-nav-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}
.nation-nav-tabs button {
  height: 38px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}
.nation-nav-tabs button:hover {
  border-color: var(--ink);
  background: var(--paper);
}
.nation-nav-tabs button.on {
  background: var(--ink);
  color: var(--yellow);
  border-color: var(--ink);
}

.culture-info-card {
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  margin-bottom: 16px;
}
.culture-info-card .c-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 900;
  font-size: 14px;
  color: var(--ink);
}
.culture-info-card .c-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fef2f2;
  color: #991b1b;
  font-weight: 700;
}
.culture-info-card .c-body {
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
  margin: 0;
}

.sandwich-card {
  border: 2px solid #16a34a;
  border-radius: 8px;
  background: #fdfdfd;
  padding: 18px;
  margin: 16px 0;
}
.sandwich-card .sw-step {
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.sandwich-card .sw-step.step-praise {
  background: #dcfce7;
  border-left: 4px solid #16a34a;
  color: #14532d;
}
.sandwich-card .sw-step.step-warn {
  background: #fee2e2;
  border-left: 4px solid #dc2626;
  color: #7f1d1d;
}
.sandwich-card .sw-step.step-hope {
  background: #e0f2fe;
  border-left: 4px solid #0284c7;
  color: #0c4a6e;
}
.sandwich-card .sw-step strong {
  display: block;
  font-size: 11.5px;
  margin-bottom: 3px;
}

.interview-sheet {
  background: #fff;
  border: 2px solid #1a1d21;
  padding: 24px;
  font-family: var(--f-body);
  color: #1a1d21;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.interview-sheet .sheet-title {
  text-align: center;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1a1d21;
}
.interview-sheet .interview-meta {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 12px;
}
.interview-sheet .interview-meta th, .interview-sheet .interview-meta td {
  border: 1px solid #1a1d21;
  padding: 5px 8px;
  vertical-align: middle;
}
.interview-sheet .interview-meta th {
  background: #f8fafc;
  font-weight: 700;
  white-space: nowrap;
  width: 18%;
}
.interview-sheet .interview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 12px;
}
.interview-sheet .interview-table th, .interview-sheet .interview-table td {
  border: 1px solid #1a1d21;
  padding: 6px 10px;
}
.interview-sheet .interview-table th {
  background: #f8fafc;
  font-weight: 700;
}
.interview-sheet .interview-table td.td-status {
  width: 64px;
  text-align: center;
  font-weight: 900;
}
.interview-sheet .comment-box-interview {
  border: 1px solid #1a1d21;
  padding: 10px;
  min-height: 60px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.interview-sheet .interview-sign-grid {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 16px;
  align-items: end;
}
.interview-sheet .interview-sign-grid .sign-box-trainee {
  border: 1px solid #1a1d21;
  padding: 8px;
  height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.interview-sheet .interview-sign-grid .sign-box-trainee span {
  font-size: 10px;
  color: #64748b;
}
.interview-sheet .interview-sign-grid .sign-box-trainee div {
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}
.interview-sheet .interview-sign-grid .stamp-single {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 11px;
}
.interview-sheet .interview-sign-grid .stamp-single th {
  background: #f8fafc;
  border: 1px solid #1a1d21;
  padding: 3px;
  font-weight: 700;
}
.interview-sheet .interview-sign-grid .stamp-single td {
  border: 1px solid #1a1d21;
  height: 44px;
}
.interview-sheet .sheet-note {
  margin-top: 10px;
  font-size: 10px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
}

.mp-banner {
  background: var(--yellow-light);
  border: 1px solid var(--yellow);
  border-radius: var(--radius-m);
  padding: 16px;
  margin-bottom: 20px;
}
.mp-banner h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mp-banner p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.6;
}

.mp-lang-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.mp-lang-group .mp-lang-btn {
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-s);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.mp-lang-group .mp-lang-btn.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.mp-sheet {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius-m);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 2px solid var(--ink);
  color: var(--ink);
}

.mp-sheet-head {
  border-bottom: 3px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.mp-sheet-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mp-sheet-badge {
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 4px;
}

.mp-sheet-meta {
  display: flex;
  justify-content: space-between;
  background: #f7f9fa;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: 13px;
  margin-bottom: 16px;
}
.mp-sheet-meta b {
  color: var(--ink);
}

.mp-item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mp-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--white);
  border-left: 8px solid var(--ink);
}
.mp-card.type-warn {
  border-left-color: #d9381e;
  background: #fffcfc;
}
.mp-card.type-safe {
  border-left-color: var(--green);
  background: #fcfffd;
}
.mp-card.type-gear {
  border-left-color: #0b7285;
  background: #fbfdff;
}

.mp-icon {
  font-size: 30px;
  line-height: 1;
  min-width: 40px;
  text-align: center;
}

.mp-body {
  flex: 1;
}
.mp-body .mp-ja {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--ink);
}
.mp-body .mp-ja ruby {
  ruby-position: over;
}
.mp-body .mp-ja ruby rt {
  font-size: 10px;
  color: #555;
}
.mp-body .mp-local {
  font-size: 13px;
  font-weight: 700;
  color: #495057;
  margin-top: 4px;
  line-height: 1.4;
}

.mp-yosh {
  background: var(--yellow);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  border: 2px solid var(--ink);
  min-width: 84px;
}
.mp-yosh .mp-yosh-sub {
  font-size: 10px;
  display: block;
  font-weight: 700;
}

.mp-sheet-foot {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-light);
}

.mp-seal {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--line);
  width: 58px;
  height: 58px;
  border-radius: 4px;
  background: var(--white);
  font-size: 10px;
  color: #888;
  padding-top: 4px;
}

.instructor-nav-box {
  margin-top: 32px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
}
.instructor-nav-box h4 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.instructor-nav-box .in-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.instructor-nav-box .in-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.instructor-nav-box .in-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.instructor-nav-box .in-card .in-tag {
  font-size: 11px;
  font-weight: 700;
  color: #0b7285;
  margin-bottom: 4px;
}
.instructor-nav-box .in-card .in-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.4;
}

@media print {
  body {
    background: #fff !important;
  }
  .tbar, .tool-form, .pao-card, .ft, .pv-tool, .instructor-nav-box {
    display: none !important;
  }
  .tool-split {
    display: block !important;
    padding: 0 !important;
  }
  .pv {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .mp-sheet {
    box-shadow: none !important;
    border: 2px solid #000 !important;
    padding: 10mm !important;
  }
  .mp-card {
    break-inside: avoid;
    border: 1.5px solid #333 !important;
  }
}
.exam-banner {
  background: var(--yellow-light);
  border: 1px solid var(--yellow);
  border-radius: var(--radius-m);
  padding: 16px;
  margin-bottom: 20px;
}
.exam-banner h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.exam-banner p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.6;
}

.exam-job-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.exam-job-tabs button {
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-s);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.exam-job-tabs button.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.exam-sheet {
  background: var(--white);
  padding: 24px 22px;
  border-radius: var(--radius-m);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 2px solid var(--ink);
  color: var(--ink);
}

.exam-sheet-head {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.exam-sheet-head .esh-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
}
.exam-sheet-head .esh-badge {
  font-size: 12px;
  font-weight: 900;
  color: #0b7285;
  background: #e6fcf5;
  padding: 2px 8px;
  border-radius: 4px;
}

.exam-meta-tbl {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 12px;
}
.exam-meta-tbl th, .exam-meta-tbl td {
  border: 1px solid var(--ink);
  padding: 6px 8px;
}
.exam-meta-tbl th {
  background: #f1f3f5;
  font-weight: 700;
  width: 14%;
  text-align: center;
}
.exam-meta-tbl td {
  width: 36%;
}

.exam-tasks-tbl {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 12px;
}
.exam-tasks-tbl th, .exam-tasks-tbl td {
  border: 1px solid var(--ink);
  padding: 6px 8px;
}
.exam-tasks-tbl th {
  background: #e9ecef;
  font-weight: 700;
  text-align: center;
}
.exam-tasks-tbl .col-no {
  width: 6%;
  text-align: center;
}
.exam-tasks-tbl .col-task {
  width: 44%;
}
.exam-tasks-tbl .col-std {
  width: 30%;
  font-size: 11px;
  color: #495057;
}
.exam-tasks-tbl .col-res {
  width: 20%;
  text-align: center;
  font-weight: 700;
}
.exam-tasks-tbl .res-pass {
  color: var(--green);
  font-weight: 900;
}
.exam-tasks-tbl .res-warn {
  color: #d9381e;
  font-weight: 900;
}

.exam-judge-row {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: stretch;
}
.exam-judge-row .judge-box {
  flex: 1;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
}
.exam-judge-row .judge-box .jb-title {
  font-weight: 900;
  margin-bottom: 4px;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 2px;
}
.exam-judge-row .judge-box .jb-val {
  font-size: 16px;
  font-weight: 900;
  color: #d9381e;
}

.exam-seals {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.exam-seals .es-box {
  width: 60px;
  height: 60px;
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0 4px;
  font-size: 10px;
  color: #888;
}

@media print {
  body {
    background: #fff !important;
  }
  .tbar, .tool-form, .pao-card, .ft, .pv-tool, .instructor-series-bar, .instructor-nav-box {
    display: none !important;
  }
  .tool-split {
    display: block !important;
    padding: 0 !important;
  }
  .pv {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .exam-sheet {
    box-shadow: none !important;
    border: 2px solid #000 !important;
    padding: 8mm !important;
  }
  .exam-tasks-tbl, .exam-meta-tbl {
    border-color: #000 !important;
  }
}
.legal-basis-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-left: 5px solid #0b7285;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.6;
}
.legal-basis-box .lbb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.legal-basis-box .lbb-title {
  font-weight: 900;
  color: #0b7285;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.legal-basis-box .lbb-badge {
  background: #e6fcf5;
  color: #087f5b;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #8ce99a;
}
.legal-basis-box .lbb-desc {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
}
.legal-basis-box .lbb-law {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
  font-size: 11.5px;
  color: #64748b;
}
.legal-basis-box .lbb-law b {
  color: var(--ink);
}

.legal-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #bae6fd;
}

.term-help-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e9ecef;
  color: #495057;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  margin-left: 4px;
  vertical-align: middle;
  transition: all 0.15s;
}
.term-help-trigger:hover, .term-help-trigger:focus {
  background: var(--yellow);
  color: var(--ink);
}

.term-help-pop {
  display: none;
  background: #1e293b;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 6px;
  position: absolute;
  z-index: 50;
  max-width: 280px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.term-help-pop.is-open {
  display: block;
}
.term-help-pop .th-title {
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 2px;
}

.ruby-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
  margin-left: 6px;
}
.ruby-toggle-btn:hover {
  border-color: var(--ink);
}
.ruby-toggle-btn.active {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 900;
}

body.hide-ruby rt {
  display: none !important;
}

@media print {
  .legal-basis-box {
    border-left-color: #000 !important;
    background: #fff !important;
  }
  .term-help-trigger, .ruby-toggle-btn, .term-help-pop {
    display: none !important;
  }
}
.paper-rollcall {
  font-family: var(--f-biz);
  padding: 32px 36px;
  color: #111827;
  line-height: 1.4;
}
.paper-rollcall .rc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid #111827;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.paper-rollcall .rc-header h1 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin: 0;
}
.paper-rollcall .rc-header .rc-sub-title {
  font-size: 10px;
  color: #4B5563;
  margin-top: 2px;
}
.paper-rollcall .rc-header .rc-meta {
  font-size: 11px;
  color: #4B5563;
  text-align: right;
}
.paper-rollcall .rc-info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.paper-rollcall .rc-info-grid .rc-info-cell {
  border: 1px solid #111827;
  padding: 6px 10px;
  font-size: 11px;
}
.paper-rollcall .rc-info-grid .rc-info-cell b {
  display: inline-block;
  width: 64px;
  color: #374151;
}
.paper-rollcall .rc-info-grid .rc-info-cell .rc-driver-val {
  font-weight: 700;
}
.paper-rollcall .rc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  margin-bottom: 12px;
}
.paper-rollcall .rc-table th, .paper-rollcall .rc-table td {
  border: 1px solid #111827;
  padding: 5px 6px;
  vertical-align: middle;
}
.paper-rollcall .rc-table th {
  background: #F3F4F6;
  font-weight: 700;
  text-align: center;
}
.paper-rollcall .rc-table .col-cat {
  width: 14%;
}
.paper-rollcall .rc-table .col-time {
  width: 12%;
}
.paper-rollcall .rc-table .col-method {
  width: 14%;
}
.paper-rollcall .rc-table .col-alcohol, .paper-rollcall .rc-table .col-check, .paper-rollcall .rc-table .col-health {
  width: 20%;
}
.paper-rollcall .rc-table .th-col-main {
  background: #E5E7EB;
  font-weight: 900;
}
.paper-rollcall .rc-table .td-center {
  text-align: center;
}
.paper-rollcall .rc-table .td-bold {
  font-weight: 700;
}
.paper-rollcall .rc-table .td-instruction-lbl {
  text-align: center;
  font-weight: 700;
  background: #F9FAFB;
}
.paper-rollcall .rc-table .rc-instruction-box {
  font-size: 9.5px;
  padding: 6px 8px;
}
.paper-rollcall .rc-table .badge-ok {
  display: inline-block;
  padding: 1px 6px;
  background: #DCFCE7;
  color: #15803D;
  border-radius: 3px;
  font-weight: 700;
}
.paper-rollcall .rc-table .badge-alert {
  display: inline-block;
  padding: 1px 6px;
  background: #FEE2E2;
  color: #B91C1C;
  border-radius: 3px;
  font-weight: 700;
}
.paper-rollcall .rc-compliance-box {
  border: 1.5px solid #111827;
  background: #FAF5FF;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 4px;
}
.paper-rollcall .rc-compliance-box .rc-comp-title {
  font-size: 11px;
  font-weight: 900;
  color: #6B21A8;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.paper-rollcall .rc-compliance-box .rc-comp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  font-size: 9.5px;
}
.paper-rollcall .rc-compliance-box .rc-comp-grid .rc-comp-item {
  background: #fff;
  padding: 4px 8px;
  border: 1px solid #D8B4FE;
  border-radius: 3px;
}
.paper-rollcall .rc-notes-box {
  border: 1px solid #111827;
  padding: 8px 10px;
  font-size: 10px;
  min-height: 48px;
  margin-bottom: 10px;
}
.paper-rollcall .rc-notes-box b {
  display: block;
  margin-bottom: 2px;
  color: #374151;
}
.paper-rollcall .rc-sign-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.paper-rollcall .rc-sign-grid .rc-sign-cell {
  border: 1px solid #111827;
  text-align: center;
  font-size: 9px;
}
.paper-rollcall .rc-sign-grid .rc-sign-cell .rc-sign-lbl {
  background: #F3F4F6;
  border-bottom: 1px solid #111827;
  padding: 3px 0;
  font-weight: 700;
}
.paper-rollcall .rc-sign-grid .rc-sign-cell .rc-sign-box {
  height: 38px;
}
.paper-rollcall .rc-legal-footer {
  font-size: 8px;
  color: #6B7280;
  text-align: right;
  margin-top: 8px;
}

.paper-chemical {
  font-family: var(--f-biz);
  padding: 32px 36px;
  color: #0F172A;
  line-height: 1.4;
}
.paper-chemical .chem-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid #0F172A;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.paper-chemical .chem-header h1 {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 0;
}
.paper-chemical .chem-header .chem-sub-title-hdr {
  font-size: 10px;
  color: #475569;
  margin-top: 2px;
}
.paper-chemical .chem-header .chem-meta {
  font-size: 11px;
  color: #475569;
  text-align: right;
}
.paper-chemical .chem-meta-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.paper-chemical .chem-meta-grid .chem-meta-cell {
  border: 1px solid #0F172A;
  padding: 6px 10px;
  font-size: 10.5px;
}
.paper-chemical .chem-meta-grid .chem-meta-cell b {
  display: inline-block;
  width: 80px;
  color: #334155;
}
.paper-chemical .chem-substance-box {
  border: 1.5px solid #0F172A;
  background: #F8FAFC;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 4px;
}
.paper-chemical .chem-substance-box .chem-sub-title {
  font-size: 11.5px;
  font-weight: 900;
  color: #1E293B;
  margin-bottom: 6px;
}
.paper-chemical .chem-substance-box .chem-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 10.5px;
}
.paper-chemical .chem-substance-box .chem-sub-grid div {
  background: #fff;
  padding: 5px 8px;
  border: 1px solid #CBD5E1;
  border-radius: 3px;
}
.paper-chemical .chem-ghs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 4px;
}
.paper-chemical .chem-ghs-row .chem-ghs-label {
  font-size: 10.5px;
  font-weight: 900;
  color: #991B1B;
  white-space: nowrap;
}
.paper-chemical .chem-ghs-row .chem-ghs-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 9.5px;
  font-weight: 700;
  color: #7F1D1D;
}
.paper-chemical .chem-ghs-row .chem-ghs-badge {
  background: #fff;
  border: 1px solid #F87171;
  padding: 2px 6px;
  border-radius: 3px;
}
.paper-chemical .chem-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  margin-bottom: 12px;
}
.paper-chemical .chem-table th, .paper-chemical .chem-table td {
  border: 1px solid #0F172A;
  padding: 6px 8px;
  vertical-align: middle;
}
.paper-chemical .chem-table th {
  background: #F1F5F9;
  font-weight: 700;
  text-align: center;
}
.paper-chemical .chem-table .col-eval-item {
  width: 25%;
}
.paper-chemical .chem-table .col-eval-content {
  width: 40%;
}
.paper-chemical .chem-table .col-eval-action {
  width: 35%;
}
.paper-chemical .chem-table .th-sub {
  background: #E2E8F0;
  font-weight: 900;
  width: 140px;
}
.paper-chemical .chem-table .chem-judge-row {
  margin-top: 4px;
}
.paper-chemical .chem-table .chem-mitigation-note {
  font-size: 9.5px;
}
.paper-chemical .chem-table .risk-lvl-low {
  background: #DCFCE7;
  color: #166534;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 3px;
}
.paper-chemical .chem-table .risk-lvl-mid {
  background: #FEF3C7;
  color: #92400E;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 3px;
}
.paper-chemical .chem-table .risk-lvl-high {
  background: #FEE2E2;
  color: #991B1B;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 3px;
}
.paper-chemical .chem-sign-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.paper-chemical .chem-sign-grid .chem-sign-cell {
  border: 1px solid #0F172A;
  text-align: center;
  font-size: 9.5px;
}
.paper-chemical .chem-sign-grid .chem-sign-cell .chem-sign-lbl {
  background: #F1F5F9;
  border-bottom: 1px solid #0F172A;
  padding: 3px 0;
  font-weight: 700;
}
.paper-chemical .chem-sign-grid .chem-sign-cell .chem-sign-box {
  height: 42px;
}
.paper-chemical .chem-legal-footer {
  font-size: 8px;
  color: #64748B;
  text-align: right;
  margin-top: 8px;
}

.paper-realestate, .paper-haccp, .paper-manifest {
  font-family: var(--f-biz);
  padding: 30px 34px;
  color: #111827;
  line-height: 1.35;
}
.paper-realestate .insp-header, .paper-haccp .insp-header, .paper-manifest .insp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid #111827;
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.paper-realestate .insp-header h1, .paper-haccp .insp-header h1, .paper-manifest .insp-header h1 {
  font-size: 19px;
  font-weight: 900;
  margin: 0;
}
.paper-realestate .insp-header .insp-sub-hdr, .paper-haccp .insp-header .insp-sub-hdr, .paper-manifest .insp-header .insp-sub-hdr {
  font-size: 10px;
  color: #4B5563;
  margin-top: 2px;
}
.paper-realestate .insp-header .insp-meta, .paper-haccp .insp-header .insp-meta, .paper-manifest .insp-header .insp-meta {
  font-size: 10.5px;
  color: #4B5563;
  text-align: right;
}
.paper-realestate .insp-grid-top, .paper-haccp .insp-grid-top, .paper-manifest .insp-grid-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}
.paper-realestate .insp-grid-top .insp-cell, .paper-haccp .insp-grid-top .insp-cell, .paper-manifest .insp-grid-top .insp-cell {
  border: 1px solid #111827;
  padding: 5px 8px;
  font-size: 10.5px;
}
.paper-realestate .insp-grid-top .insp-cell b, .paper-haccp .insp-grid-top .insp-cell b, .paper-manifest .insp-grid-top .insp-cell b {
  display: inline-block;
  width: 75px;
  color: #374151;
}
.paper-realestate .insp-grid-top .insp-cell .insp-target-prop, .paper-realestate .insp-grid-top .insp-cell .insp-target-bold, .paper-haccp .insp-grid-top .insp-cell .insp-target-prop, .paper-haccp .insp-grid-top .insp-cell .insp-target-bold, .paper-manifest .insp-grid-top .insp-cell .insp-target-prop, .paper-manifest .insp-grid-top .insp-cell .insp-target-bold {
  font-weight: 700;
}
.paper-realestate .insp-grid-top .insp-cell .insp-urgency-c, .paper-realestate .insp-grid-top .insp-cell.urgency-c, .paper-haccp .insp-grid-top .insp-cell .insp-urgency-c, .paper-haccp .insp-grid-top .insp-cell.urgency-c, .paper-manifest .insp-grid-top .insp-cell .insp-urgency-c, .paper-manifest .insp-grid-top .insp-cell.urgency-c {
  color: #15803D;
  font-weight: 700;
}
.paper-realestate .insp-grid-top .insp-cell.urgency-b, .paper-haccp .insp-grid-top .insp-cell.urgency-b, .paper-manifest .insp-grid-top .insp-cell.urgency-b {
  color: #D97706;
  font-weight: 700;
}
.paper-realestate .insp-grid-top .insp-cell.urgency-a, .paper-haccp .insp-grid-top .insp-cell.urgency-a, .paper-manifest .insp-grid-top .insp-cell.urgency-a {
  color: #DC2626;
  font-weight: 900;
}
.paper-realestate .insp-table, .paper-haccp .insp-table, .paper-manifest .insp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.5px;
  margin-bottom: 10px;
}
.paper-realestate .insp-table th, .paper-realestate .insp-table td, .paper-haccp .insp-table th, .paper-haccp .insp-table td, .paper-manifest .insp-table th, .paper-manifest .insp-table td {
  border: 1px solid #111827;
  padding: 5px 6px;
  vertical-align: middle;
}
.paper-realestate .insp-table th, .paper-haccp .insp-table th, .paper-manifest .insp-table th {
  background: #F3F4F6;
  font-weight: 700;
  text-align: center;
}
.paper-realestate .insp-table .col-re-item, .paper-haccp .insp-table .col-re-item, .paper-manifest .insp-table .col-re-item {
  width: 22%;
}
.paper-realestate .insp-table .col-re-judge, .paper-haccp .insp-table .col-re-judge, .paper-manifest .insp-table .col-re-judge {
  width: 15%;
}
.paper-realestate .insp-table .col-re-content, .paper-haccp .insp-table .col-re-content, .paper-manifest .insp-table .col-re-content {
  width: 63%;
}
.paper-realestate .insp-table .col-haccp-item, .paper-haccp .insp-table .col-haccp-item, .paper-manifest .insp-table .col-haccp-item {
  width: 24%;
}
.paper-realestate .insp-table .col-haccp-judge, .paper-haccp .insp-table .col-haccp-judge, .paper-manifest .insp-table .col-haccp-judge {
  width: 14%;
}
.paper-realestate .insp-table .col-haccp-content, .paper-haccp .insp-table .col-haccp-content, .paper-manifest .insp-table .col-haccp-content {
  width: 62%;
}
.paper-realestate .insp-table .col-mani-cat, .paper-haccp .insp-table .col-mani-cat, .paper-manifest .insp-table .col-mani-cat {
  width: 20%;
}
.paper-realestate .insp-table .col-mani-agent, .paper-haccp .insp-table .col-mani-agent, .paper-manifest .insp-table .col-mani-agent {
  width: 35%;
}
.paper-realestate .insp-table .col-mani-content, .paper-haccp .insp-table .col-mani-content, .paper-manifest .insp-table .col-mani-content {
  width: 45%;
}
.paper-realestate .insp-table .th-cat, .paper-haccp .insp-table .th-cat, .paper-manifest .insp-table .th-cat {
  background: #E5E7EB;
  font-weight: 900;
}
.paper-realestate .insp-table .td-center, .paper-haccp .insp-table .td-center, .paper-manifest .insp-table .td-center {
  text-align: center;
}
.paper-realestate .insp-table .insp-remarks-td, .paper-haccp .insp-table .insp-remarks-td, .paper-manifest .insp-table .insp-remarks-td {
  padding: 6px 8px;
  font-size: 9.5px;
}
.paper-realestate .insp-table .status-ok, .paper-haccp .insp-table .status-ok, .paper-manifest .insp-table .status-ok {
  color: #166534;
  font-weight: 700;
}
.paper-realestate .insp-table .status-warn, .paper-haccp .insp-table .status-warn, .paper-manifest .insp-table .status-warn {
  color: #D97706;
  font-weight: 700;
}
.paper-realestate .insp-table .status-danger, .paper-haccp .insp-table .status-danger, .paper-manifest .insp-table .status-danger {
  color: #DC2626;
  font-weight: 900;
}
.paper-realestate .insp-haccp-ccp, .paper-haccp .insp-haccp-ccp, .paper-manifest .insp-haccp-ccp {
  border: 1.5px solid #111827;
  background: #FFFBEB;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 4px;
}
.paper-realestate .insp-haccp-ccp .ccp-title, .paper-haccp .insp-haccp-ccp .ccp-title, .paper-manifest .insp-haccp-ccp .ccp-title {
  font-size: 11px;
  font-weight: 900;
  color: #B45309;
  margin-bottom: 4px;
}
.paper-realestate .insp-haccp-ccp .ccp-grid, .paper-haccp .insp-haccp-ccp .ccp-grid, .paper-manifest .insp-haccp-ccp .ccp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  font-size: 9.5px;
}
.paper-realestate .insp-manifest-track, .paper-haccp .insp-manifest-track, .paper-manifest .insp-manifest-track {
  border: 1.5px solid #111827;
  background: #F0FDF4;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 4px;
}
.paper-realestate .insp-manifest-track .track-title, .paper-haccp .insp-manifest-track .track-title, .paper-manifest .insp-manifest-track .track-title {
  font-size: 11px;
  font-weight: 900;
  color: #15803D;
  margin-bottom: 4px;
}
.paper-realestate .insp-manifest-track .track-grid, .paper-haccp .insp-manifest-track .track-grid, .paper-manifest .insp-manifest-track .track-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  font-size: 9.5px;
}
.paper-realestate .insp-sign-grid, .paper-haccp .insp-sign-grid, .paper-manifest .insp-sign-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.paper-realestate .insp-sign-grid .insp-sign-cell, .paper-haccp .insp-sign-grid .insp-sign-cell, .paper-manifest .insp-sign-grid .insp-sign-cell {
  border: 1px solid #111827;
  text-align: center;
  font-size: 9px;
}
.paper-realestate .insp-sign-grid .insp-sign-cell .insp-sign-lbl, .paper-haccp .insp-sign-grid .insp-sign-cell .insp-sign-lbl, .paper-manifest .insp-sign-grid .insp-sign-cell .insp-sign-lbl {
  background: #F3F4F6;
  border-bottom: 1px solid #111827;
  padding: 2px 0;
  font-weight: 700;
}
.paper-realestate .insp-sign-grid .insp-sign-cell .insp-sign-box, .paper-haccp .insp-sign-grid .insp-sign-cell .insp-sign-box, .paper-manifest .insp-sign-grid .insp-sign-cell .insp-sign-box {
  height: 36px;
}
.paper-realestate .insp-legal-foot, .paper-haccp .insp-legal-foot, .paper-manifest .insp-legal-foot {
  font-size: 8px;
  color: #6B7280;
  text-align: right;
  margin-top: 6px;
}

.table-mt6 {
  margin-top: 6px;
}

.flyer-sheet, .pickup-sheet, .notice-sheet {
  border: 2px solid #e58aa5;
  padding: 24px 28px;
  min-height: 720px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  font-size: 11px;
  line-height: 1.65;
  color: #1a1d21;
}

.flyer-meta-top, .pickup-meta-top, .notice-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.flyer-target, .pickup-target, .notice-target {
  font-size: 13px;
  font-weight: 700;
  color: #1a1d21;
}

.flyer-sender, .pickup-sender, .notice-sender-box {
  text-align: right;
  font-size: 10.5px;
  color: #334155;
}

.flyer-title-box {
  background: #fff1f2;
  border: 2px solid #fecdd3;
  border-radius: 6px;
  padding: 8px 14px;
  text-align: center;
  margin: 6px 0 10px;
}

.flyer-title-main, .pickup-title-main, .notice-title-main {
  font-family: var(--f-head);
  font-size: 17px;
  font-weight: 900;
  color: #9f1239;
  letter-spacing: 0.05em;
  text-align: center;
}

.flyer-intro, .pickup-intro, .notice-intro {
  font-size: 10.5px;
  color: #475569;
  margin-bottom: 10px;
  line-height: 1.6;
}

.flyer-sec-card, .notice-details-card {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f8fafc;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.flyer-details-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 4px 8px;
  font-size: 10.5px;
}
.flyer-details-grid dt {
  font-weight: 700;
  color: #475569;
}
.flyer-details-grid dd {
  margin: 0;
  color: #1e293b;
}

.cut-line-wrap {
  border-top: 1.5px dashed #94a3b8;
  position: relative;
  margin: 12px 0 10px;
  text-align: center;
}

.cut-line-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 0 12px;
  font-size: 9.5px;
  color: #64748b;
  font-weight: 700;
}

.slip-card {
  border: 1px solid #0f172a;
  border-radius: 4px;
  padding: 8px 12px;
  background: #fafafa;
}

.slip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.slip-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.slip-deadline {
  font-size: 10px;
  color: #9f1239;
  font-weight: 700;
}

.slip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  margin-bottom: 6px;
}

.slip-seal {
  width: 36px;
  height: 36px;
  border: 1px dashed #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  color: #64748b;
  background: #ffffff;
}

.slip-check-row {
  display: flex;
  gap: 16px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
}

.health-sheet, .otayori-sheet, .note-sheet {
  border: 2px solid #e58aa5;
  padding: 24px 28px;
  min-height: 720px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  font-size: 11px;
  line-height: 1.7;
  color: #1a1d21;
}

.health-meta-top, .otayori-meta-top, .note-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.health-title-main, .otayori-title-main {
  font-family: var(--f-head);
  font-size: 17px;
  font-weight: 900;
  text-align: center;
  color: #991b1b;
  background: #fff1f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  padding: 8px 12px;
  margin: 8px 0 14px;
  letter-spacing: 0.05em;
}

.health-sec-box, .otayori-sec-box, .note-sec-card {
  border: 1px solid #bdb8ae;
  background: #fafaf8;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 4px;
}

.health-sec-title, .otayori-sec-title, .note-sec-head {
  font-family: var(--f-head);
  font-size: 11.5px;
  font-weight: 900;
  color: #1a1d21;
  border-bottom: 1px solid #d6d1c7;
  padding-bottom: 3px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.month-grid-wrap {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.month-chip {
  padding: 8px 4px;
  text-align: center;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
}
.month-chip.active {
  background: #e58aa5;
  color: #fff;
  border-color: #e58aa5;
}

.note-vitals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 10px 0;
}

.note-vital-cell {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px;
  text-align: center;
  background: #fff;
}

.note-vital-label {
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
}

.note-vital-val {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  margin-top: 2px;
}

.handle {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.sheet-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.pickup-date {
  font-size: 11px;
  color: #334155;
  text-align: right;
}

.pickup-box, .pickup-security-box, .pickup-office-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.pickup-office-head {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}

.pickup-grid-applicant, .pickup-office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 11px;
}

.pickup-office-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pickup-seal, .pickup-stamp {
  width: 44px;
  height: 44px;
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  font-size: 9px;
  color: var(--mute);
  background: #fff;
}

.pickup-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}
.pickup-table th, .pickup-table td {
  border: 1px solid var(--line);
  padding: 6px 10px;
  font-size: 11px;
}
.pickup-table th {
  background: #f3f1ec;
  font-weight: 700;
  width: 100px;
}

.pickup-time-em {
  font-size: 13px;
  font-weight: 900;
  color: #dc2626;
}

.month-grid-wrap {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .month-grid-wrap {
    grid-template-columns: repeat(4, 1fr);
  }
}

.month-chip {
  background: #ffffff;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  padding: 7px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #9f1239;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}
.month-chip:hover {
  background: #fff1f2;
  border-color: #e11d48;
}
.month-chip.on {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
}

.otayori-sheet {
  border: 2px solid #e58aa5;
  padding: 30px 34px;
  min-height: 720px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  font-size: 11px;
  line-height: 1.75;
  color: #1a1d21;
}
.otayori-sheet .otayori-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.otayori-sheet .otayori-target {
  font-size: 13px;
  font-weight: 700;
  color: #1a1d21;
}
.otayori-sheet .otayori-sender {
  text-align: right;
  font-size: 10.5px;
  color: #334155;
}
.otayori-sheet .otayori-title-box {
  background: #fff1f2;
  border: 2px solid #fecdd3;
  border-radius: 6px;
  padding: 8px 14px;
  text-align: center;
  margin: 8px 0 14px;
}
.otayori-sheet .otayori-title-main {
  font-family: var(--f-head);
  font-size: 17px;
  font-weight: 900;
  color: #9f1239;
  letter-spacing: 0.05em;
}
.otayori-sheet .otayori-intro {
  text-indent: 1em;
  white-space: pre-wrap;
  margin-bottom: 14px;
  line-height: 1.8;
  color: #1e293b;
  font-size: 11px;
}
.otayori-sheet .otayori-sec-box {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.otayori-sheet .otayori-sec-title {
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: #0f172a;
  margin-bottom: 8px;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 4px;
}
.otayori-sheet .otayori-sec-content {
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: 11px;
  color: #334155;
}
.otayori-sheet .otayori-footer-box {
  font-size: 10.5px;
  color: #64748b;
  border-top: 1px dashed #cbd5e1;
  padding-top: 10px;
  white-space: pre-wrap;
  line-height: 1.6;
}

.poster-sheet, .doc-sheet {
  background: #fff;
  border: 2px solid var(--ink);
  padding: 32px 36px;
  min-height: 720px;
  box-sizing: border-box;
  color: #1a1d21;
}

.poster-top-bar {
  background: #dc2626;
  color: #fff;
  padding: 6px 12px;
  font-weight: 900;
  font-size: 14px;
  text-align: center;
  margin-bottom: 16px;
}

.poster-title {
  font-family: var(--f-head);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  color: #dc2626;
  margin: 0 0 16px;
}

.poster-lead, .doc-lead, .flyer-greeting {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.poster-box-pattern, .poster-box-action, .cutoff-form-box {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}

.poster-contact-banner {
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 12px;
  text-align: center;
  font-weight: 900;
  margin: 16px 0;
}
.poster-contact-banner .poster-contact-phone {
  font-size: 20px;
  display: block;
  margin-top: 4px;
}

.flyer-info-table, .cutoff-table, .minutes-table, .stamp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.flyer-info-table th, .flyer-info-table td, .cutoff-table th, .cutoff-table td, .minutes-table th, .minutes-table td, .stamp-table th, .stamp-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-size: 12px;
}
.flyer-info-table th, .cutoff-table th, .minutes-table th, .stamp-table th {
  background: #f3f1ec;
  font-weight: 700;
  width: 120px;
}

.minutes-section-title {
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 8px;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 4px;
}

.gantt-wrap-card, .shift-wrap-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-m);
  padding: 20px;
  box-shadow: var(--shadow-hard);
}

.gantt-toolbar, .shift-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.table-scroll-area {
  overflow-x: auto;
}

.sat {
  color: #2563eb;
}

.sun {
  color: #dc2626;
}

.legend-box {
  display: flex;
  gap: 16px;
  font-size: 12px;
  margin-top: 12px;
}

.btn-agenda-add, .btn-agenda-del, .btn-row-del {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--line);
}

.ft-copy {
  text-align: center;
  font-size: 11px;
  color: var(--mute);
  margin-top: 24px;
}

.shift-meta-bar, .gantt-meta-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.shift-meta-item, .gantt-meta-item {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.shift-paper {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
  color: #1a1d21;
}

.shift-paper-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.shift-main-title {
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 900;
  color: #1a1d21;
  margin: 0 0 6px;
}

.shift-head-meta {
  font-size: 11px;
  color: #475569;
}

.shift-stamps {
  display: flex;
  gap: 4px;
}

.shift-stamp-box {
  width: 48px;
  height: 52px;
  border: 1px solid #1a1d21;
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
}

.shift-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.shift-table th, .shift-table td {
  border: 1px solid #cbd5e1;
  padding: 4px 6px;
  text-align: center;
}

.op-col {
  width: 60px;
}

.shift-calc-row {
  background: #f8fafc;
  font-weight: 700;
}

.staff-name-inp {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 11px;
  font-family: inherit;
  font-weight: 700;
  text-align: center;
}

.gantt-board {
  display: grid;
  grid-template-columns: 220px 1fr;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.gantt-sidebar {
  border-right: 1.5px solid var(--line);
  background: var(--paper);
}
.gantt-sidebar-head {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.gantt-timeline {
  overflow-x: auto;
}
.gantt-timeline-head {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.gantt-timeline-body {
  display: flex;
  flex-direction: column;
}

.official-sheet {
  font-family: "BIZ UDPGothic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1d21;
  line-height: 1.5;
  box-sizing: border-box;
  page-break-inside: avoid;
  break-inside: avoid;
}
.official-sheet .official-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 16px;
}
.official-sheet .official-head .official-spec {
  font-size: 9.5px;
  color: #64748b;
  letter-spacing: 0.12em;
  margin-bottom: 2px;
  font-weight: 700;
}
.official-sheet .official-head .official-title {
  font-size: 22px;
  letter-spacing: 0.25em;
  border-bottom: 2.5px solid #1a1d21;
  padding-bottom: 4px;
  margin: 0;
  font-family: var(--f-head, "Zen Kaku Gothic New", sans-serif);
  font-weight: 900;
}
.official-sheet .official-head .official-sub {
  font-size: 11px;
  color: #15803d;
  font-weight: 700;
  margin-top: 3px;
}
.official-sheet .official-stamps {
  border-collapse: collapse;
  font-size: 10px;
  text-align: center;
  border: 1.5px solid #1a1d21;
  margin-left: auto;
  flex-shrink: 0;
}
.official-sheet .official-stamps th, .official-sheet .official-stamps td {
  border: 1px solid #1a1d21;
  padding: 3px 6px;
}
.official-sheet .official-stamps th {
  background: #f3f1ec;
  font-weight: 700;
  width: 48px;
}
.official-sheet .official-stamps .stamp-space {
  height: 48px;
  vertical-align: bottom;
  padding-bottom: 2px;
  font-size: 9px;
  color: #64748b;
}
.official-sheet .official-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 12px;
}
.official-sheet .official-meta .meta-group {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.official-sheet .official-meta .meta-val {
  font-weight: 700;
}
.official-sheet .official-table {
  width: 100%;
  border-collapse: collapse;
  border: 1.5px solid #1a1d21;
  font-size: 11.5px;
  margin-bottom: 10px;
}
.official-sheet .official-table th, .official-sheet .official-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
}
.official-sheet .official-table th {
  background: #f3f1ec;
  text-align: left;
  font-weight: 700;
  width: 130px;
  vertical-align: top;
  line-height: 1.4;
}
.official-sheet .official-table th .badge-warn {
  color: #b91c1c;
  font-weight: 900;
}
.official-sheet .official-table th .badge-ok {
  color: #15803d;
  font-weight: 900;
}
.official-sheet .official-table th .badge-sub {
  font-size: 9.5px;
  font-weight: 400;
  color: #64748b;
}
.official-sheet .official-table td {
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.official-sheet .official-table .row-target {
  background: #fffbeb;
  font-weight: 900;
  color: #1a1d21;
  font-size: 13px;
  border-left: 4px solid #f59e0b;
}
.official-sheet .official-table .row-pledge {
  font-size: 11px;
  color: #1e293b;
  background: #fff;
}
.official-sheet .official-foot {
  font-size: 9.5px;
  color: #64748b;
  margin-top: 10px;
  line-height: 1.5;
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed #cbd5e1;
  padding-top: 6px;
}

.pao-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.88);
  padding: 16px;
}

.pao-card {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  background: #1e293b;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;
}

.pao-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pao-label {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  background: #334155;
  padding: 2px 8px;
  border-radius: 4px;
}

.pao-close {
  width: 36px;
  height: 36px;
  background: none;
  border: 0;
  color: #f1f5f9;
  cursor: pointer;
  border-radius: 50%;
}
.pao-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pao-complete-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  border-radius: 9999px;
  padding: 3px 12px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #34d399;
}

.pao-eyecatch {
  display: flex;
  justify-content: center;
  margin: 6px auto 12px;
}
.pao-eyecatch img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.pao-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.4;
  color: #fff;
}

.pao-benefits {
  list-style: none;
  padding: 8px 12px;
  margin: 0 0 14px;
  background: #0f172a;
  border-radius: 6px;
  text-align: left;
}
.pao-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 4px;
}
.pao-benefits li svg {
  color: #10b981;
}

.pao-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 8px;
  background: #f59e0b;
  color: #0f172a !important;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  border: 2px solid #b45309;
  box-shadow: 0 4px 0 #b45309;
  cursor: pointer;
}
.pao-cta:hover {
  background: #fbbf24;
  transform: translateY(2px);
}

.pao-dismiss {
  background: none;
  border: 0;
  color: #94a3b8;
  font-size: 12px;
  margin-top: 10px;
  cursor: pointer;
  text-decoration: underline;
}
.pao-dismiss:hover {
  color: #fff;
}

.pao-note {
  margin: 6px 0 0;
  font-size: 11px;
  color: #64748b;
}

.pao-inline-card {
  margin: 36px 0 24px;
  background: #0f172a;
  border: 2px solid #1e293b;
  border-radius: 12px;
  padding: 24px;
  color: #ffffff;
  border-left: 6px solid var(--yellow, #ffc400);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.pao-inline-card .pao-inline-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.pao-inline-card .pao-badge {
  display: inline-block;
  background: #334155;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  border: 1px solid #475569;
}
.pao-inline-card .pao-inline-title {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.4;
}
.pao-inline-card .pao-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pao-inline-card .pao-specs li {
  font-size: 13.5px;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.pao-inline-card .pao-specs li b {
  color: #fde047;
  font-weight: 700;
  white-space: nowrap;
}
.pao-inline-card .btn-cloudsign-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffc400;
  color: #0f172a;
  font-weight: 900;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  transition: all 0.15s ease;
  cursor: pointer;
}
.pao-inline-card .btn-cloudsign-cta:hover {
  background: #ffd54f;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #000;
}
.pao-inline-card .btn-cloudsign-cta:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}

.rakuten-motion-box {
  margin: 36px auto;
  max-width: 340px;
  text-align: center;
  box-sizing: border-box;
}
.rakuten-motion-box .ad-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--mute, #64748b);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-align: center;
  display: block;
}
.rakuten-motion-box .rakuten-motion-wrap {
  min-height: 250px;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.rakuten-motion-box .rakuten-motion-wrap iframe, .rakuten-motion-box .rakuten-motion-wrap script {
  margin: 0 auto !important;
  display: block !important;
}

@media print {
  .rakuten-motion-box,
  .rakuten-motion-wrap {
    display: none !important;
  }
}
.mobile-step-container {
  display: none;
}

@media screen and (max-width: 900px) {
  .tool-resizer, .split-controls {
    display: none !important;
  }
  .tbar {
    height: 52px;
    padding: 0 14px;
    gap: 10px;
  }
  .tbar h1 {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tbar .back {
    font-size: 13px;
    white-space: nowrap;
  }
  .tbar .saved, .tbar #btn-reset {
    display: none;
  }
  body.has-mobile-step .tool-split,
  body:has(.mobile-step-container) .tool-split {
    display: none !important;
  }
  .tool-split {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto;
    width: 100% !important;
  }
  .tool-split .tool-form {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 14px 100px !important;
    min-width: 0 !important;
    overflow-y: visible !important;
  }
  .tool-split .tool-resizer {
    display: none !important;
  }
  .tool-split .pv {
    display: none !important;
  }
  .prog {
    display: none;
  }
  .mobile-step-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 52px);
    background: var(--paper);
  }
  .m-body {
    flex: 1;
    padding: 20px;
  }
  .m-foot {
    position: sticky;
    bottom: 0;
    background: var(--white);
    border-top: 1.5px solid var(--line);
    padding: 12px 20px 24px;
    display: flex;
    gap: 10px;
    z-index: 50;
  }
  .sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    padding: 24px 20px;
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.25s ease;
  }
  .sheet.open {
    transform: translateY(0);
  }
  .sheet .sheet-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 12px 0 6px;
  }
  .sheet .sheet-btns .btn, .sheet .sheet-btns > button, .sheet .sheet-btns > a {
    width: 100% !important;
    min-height: 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
  }
  .dim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 29, 33, 0.5);
    z-index: 190;
  }
  .dim.open {
    display: block;
  }
  .outs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
  }
  .out-btn {
    height: 64px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid var(--ink);
    background: var(--white);
    cursor: pointer;
  }
  .out-btn.main {
    background: var(--yellow);
    box-shadow: var(--shadow-hard);
  }
  .sp-floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1.5px solid var(--line);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex;
    gap: 8px;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  }
  .sp-floating-bar .btn {
    flex: 1;
    height: 46px;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    white-space: nowrap;
  }
  .sp-floating-bar .btn-pv {
    background: var(--ink);
    color: var(--yellow);
    border: 1.5px solid var(--ink);
  }
  .sp-floating-bar .btn-pr {
    background: var(--yellow);
    color: var(--ink);
    border: 1.5px solid var(--ink);
  }
}
@media print {
  .tbar, .tool-form, .form-pane, .tool-edit-pane, .tool-resizer,
  .tool-resizer-handle, .split-controls, .ratio-presets, .pv-tool,
  .pv-bar, .mobile-step-container, .mobile-step-nav, .ft, .sheet,
  .dim, .bottombar, .pao-inline-card, .pao-card, .sp-floating-bar,
  .sp-pv-modal, .rakuten-motion-box, .rakuten-motion-wrap, header,
  footer, nav, .site-header, .site-footer, .instructor-series-bar,
  .instructor-nav-box, .no-print, .term-help-pop, .ruby-toggle-btn {
    display: none !important;
  }
  html, body {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  body .tool-split,
  body .tool-wrap,
  body .tool-workspace,
  body .pv-pane,
  body .tool-preview-pane,
  body.has-mobile-step .tool-split,
  body:has(.mobile-step-container) .tool-split {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }
  body .pv,
  body .tool-split .pv,
  body #pvContainer {
    display: block !important;
    background: #fff !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  .a4, .paper, [class*=paper-], .trainee-sheet, .exam-sheet,
  .mp-sheet, .entry-sheet, .interview-sheet, .poster-sheet,
  .official-sheet, #previewFrame, #printArea, #previewArea, [id*=paper] {
    display: block !important;
    margin: 0 auto !important;
    padding: 8mm 6mm !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
    background: #fff !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  @page {
    size: A4 portrait;
    margin: 6mm;
  }
}
