:root {
  --bg: #f4f6f9;
  --card: #fff;
  --text: #1a1a1a;
  --muted: #5a6570;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #dde3ea;
  --err: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.site-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-brand-text { min-width: 0; }

.site-series {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.site-series-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.site-operator {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer a,
.platform-footer-meta a {
  color: var(--accent);
  font-weight: 600;
}

.site-footer-wrap {
  margin-top: 8px;
}

.platform-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.platform-footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.platform-footer-text {
  min-width: 0;
}

.platform-footer-title {
  margin: 0 0 2px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.platform-footer-meta {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

.site-footer-wrap .platform-footer {
  margin-top: 0;
  padding-top: 16px;
}

.wizard-preview-actions {
  margin: 12px 0 8px;
}

.wizard-preview-actions .btn {
  display: inline-block;
}

.hero {
  text-align: center;
  margin-bottom: 24px;
}

.hero.compact { text-align: left; }

.eyebrow {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 8px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  line-height: 1.3;
}

.lead { color: var(--muted); margin: 0; }

.badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  background: #e8eef8;
  border-radius: 999px;
  font-size: 0.85rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 16px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.btn:hover { background: var(--accent-hover); }

.btn.secondary {
  background: #fff;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
}

.meta {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
  margin: 0;
}

.meta dt { color: var(--muted); margin: 0; }
.meta dd { margin: 0; }

.muted { color: var(--muted); }
.err { color: var(--err); }

.note {
  font-size: 0.85rem;
  color: var(--muted);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.steps li {
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8eef8;
  font-size: 0.85rem;
}

.steps li.done {
  background: var(--accent);
  color: #fff;
}

.steps li.current {
  background: #1e3a8a;
  color: #fff;
  font-weight: 600;
}

.wizard-steps li {
  font-size: 0.78rem;
  padding: 5px 10px;
}

.wizard-steps .step-num {
  font-weight: 700;
  margin-right: 2px;
}

.qa-intro,
.qa-notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: #f0f4fa;
  border-radius: 8px;
}

.cloud-tutorial .tutorial-lead {
  font-size: 1.05rem;
  margin: 0 0 20px;
}

.cloud-provider-field {
  margin-bottom: 20px;
}

.cloud-choice {
  display: block;
  margin: 8px 0;
}

.tutorial-step-box {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfd;
}

.tutorial-step-box h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.tutorial-substeps {
  margin: 12px 0 0;
  padding-left: 1.4em;
}

.tutorial-substeps li {
  margin-bottom: 10px;
}

.tutorial-note-box {
  margin: 20px 0;
  padding: 14px 16px;
  border-left: 4px solid #2563eb;
  background: #eef4ff;
}

.tutorial-prep-box {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid #c7d7f5;
  border-radius: 10px;
  background: #eef4ff;
}

.tutorial-prep-box h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.quantity-mode-note {
  margin: 4px 0 12px 1.8em;
  font-size: 0.92rem;
}

.quantity-prep-compact {
  margin: 16px 0 20px;
}

.quantity-prep-guide {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid #c7d7f5;
  border-radius: 10px;
  background: #f8fbff;
}

.quantity-prep-guide h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.quantity-prep-guide h4 {
  margin: 18px 0 8px;
  font-size: 0.98rem;
}

.quantity-prep-guide p {
  margin: 0 0 10px;
}

.mail-send-notice {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 10px;
  background: #ecfdf3;
  border: 1px solid #a7f3d0;
}

.mail-send-icon {
  font-size: 2rem;
  line-height: 1;
  animation: mail-fly 1.2s ease-in-out infinite;
}

.mail-send-text {
  margin: 0;
}

.mail-sending-msg {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff8e6;
  border: 1px solid #fde68a;
  animation: mail-pulse 1s ease-in-out infinite;
}

@keyframes mail-fly {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(12px); opacity: 0.75; }
}

@keyframes mail-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.tutorial-note-box p {
  margin: 0 0 8px;
}

.cloud-open-link {
  margin: 0 0 12px;
}

.external-cloud .cloud-iframe {
  min-height: 420px;
}

.compact-meta dt {
  min-width: 7em;
}

.bid-outline-public,
.bid-outline-preview {
  font-size: 0.92rem;
  line-height: 1.55;
}

.bid-outline-section h2 {
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.bid-outline-section h3 {
  font-size: 1rem;
  margin: 16px 0 8px;
  color: #1e3a8a;
}

.bid-outline-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
}

.bid-outline-columns > p,
.bid-outline-columns > h3 {
  flex: 1 1 48%;
  min-width: 260px;
}

.bid-outline-hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.bid-outline-preview {
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: #fafbfd;
  max-height: 480px;
  overflow: auto;
}

.bid-outline-action {
  text-align: center;
  margin: 24px 0;
}

body.cover-body {
  margin: 0;
  background: #f4f4f4;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS Mincho", serif;
  color: #000;
  line-height: 1.7;
}

body.cover-body .cover-page {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem 2rem;
}

body.cover-body .a3-cover {
  background: #fff;
  padding: 2.5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

body.cover-body .cover-main-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1.2rem;
  text-align: left;
  line-height: 1.5;
}

body.cover-body .cover-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

body.cover-body .cover-col h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.2rem 0 0.4rem;
}

body.cover-body .cover-col h3:first-child {
  margin-top: 0;
}

body.cover-body .cover-col p,
body.cover-body .cover-col li {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0.4rem 0;
}

body.cover-body .cover-col ul {
  padding-left: 1.2rem;
  margin: 0.4rem 0 0.8rem;
}

body.cover-body .cover-status {
  text-align: center;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
}

body.cover-body .cover-status-closed {
  background: #fee2e2;
  color: #991b1b;
}

body.cover-body .cover-status-draft {
  background: #fef3c7;
  color: #92400e;
}

body.cover-body .cover-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

body.cover-body .cover-actions a {
  padding: 0.6rem 1.4rem;
  border: 1px solid #000;
  text-decoration: none;
  color: #000;
  background: #fff;
  font-size: 0.9rem;
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
}

body.cover-body .cover-actions a:hover {
  background: #f8f8f8;
}

body.cover-body .cover-footer-block {
  margin: 1.5rem auto 0;
  padding: 15px 0 0;
  border-top: 1px solid #ddd;
  text-align: center;
}

body.cover-body .cover-footer-block .platform-footer {
  justify-content: center;
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

body.cover-body .cover-footer-org {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #444;
}

body.cover-body .bid-outline-heading {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.8rem;
  text-align: left;
  clear: both;
}

body.cover-body .bid-outline-public > .bid-outline-heading:first-child {
  margin-top: 0;
}

body.cover-body .bid-outline-hr {
  clear: both;
  width: 100%;
  border: none;
  border-top: 1px solid #ccc;
  margin: 1.5rem 0;
}

body.cover-body .bid-outline-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  width: 100%;
}

body.cover-body .bid-outline-public .cover-col-left,
body.cover-body .bid-outline-public .cover-col-right {
  min-width: 0;
}

body.cover-body .bid-outline-public .cover-col p strong {
  font-weight: 700;
}

body.cover-body .cover-back-link {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 0.85rem;
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
}

body.cover-body .cover-back-link.inline {
  text-align: left;
  margin: 0 0 1rem;
}

body.cover-body .cover-back-link a {
  color: #333;
}

body.cover-body .estimate-block-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.2rem 0 0.4rem;
}

body.cover-body .estimate-block-title:first-child {
  margin-top: 0;
}

body.cover-body .estimate-user-info {
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

body.cover-body .estimate-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
}

body.cover-body .estimate-bid-fields {
  margin-top: 0.35rem;
}

body.cover-body .estimate-bid-block {
  margin-bottom: 0.65rem;
}

body.cover-body .estimate-bid-block input {
  display: block;
  width: 100%;
  max-width: 16rem;
  margin-top: 0.25rem;
  font: inherit;
  font-weight: 400;
  padding: 0.3rem 0.4rem;
}

body.cover-body .estimate-bid-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0.55rem 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

body.cover-body .estimate-bid-row--metrics {
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.5rem;
}

body.cover-body .estimate-bid-metric {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-weight: 600;
  margin: 0;
}

body.cover-body .estimate-bid-metric input {
  width: 100%;
  font: inherit;
  font-weight: 400;
  padding: 0.3rem 0.35rem;
}

body.cover-body .estimate-field-label {
  font-weight: 600;
  white-space: nowrap;
}

body.cover-body .estimate-bid-input-narrow {
  width: 4.2rem;
  flex: 0 0 auto;
  font: inherit;
  font-weight: 400;
  padding: 0.3rem 0.35rem;
  text-align: center;
}

body.cover-body .estimate-field-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  flex: 1 1 8rem;
}

body.cover-body .estimate-form input[type="file"] {
  display: block;
  margin-top: 0.5rem;
  font: inherit;
  font-weight: 400;
}

body.cover-body .estimate-warn {
  color: #b42318;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
}

body.cover-body .estimate-submit-btn {
  padding: 0.6rem 1.4rem;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
}

body.cover-body .estimate-submit-btn:hover {
  background: #f8f8f8;
}

body.cover-body .bid-outline-preview .bid-outline-heading {
  font-size: 0.95rem;
}

body.cover-body .bid-outline-preview .cover-col p,
body.cover-body .bid-outline-preview .cover-col li {
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  body.cover-body .cover-cols {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  body.cover-body .estimate-bid-row--metrics {
    flex-wrap: wrap;
  }

  body.cover-body .estimate-bid-metric {
    flex: 1 1 100%;
  }

  body.cover-body .cover-page {
    margin: 1rem auto;
    padding: 0 0.5rem 1.5rem;
  }

  body.cover-body .a3-cover {
    padding: 1.5rem;
  }
}

@media print {
  body.cover-body .cover-page {
    display: none !important;
  }

  body.cover-body::before {
    content: "公募要領・見積要領は Web 上での確認用です。印刷は想定していません。";
    display: block;
    padding: 2rem;
    font-size: 1rem;
  }
}

.submission-templates {
  margin-top: 8px;
}

.submission-template-block {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.submission-template-block:last-child {
  margin-bottom: 0;
}

.submission-template-block h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

form.inline-upload {
  margin-top: 10px;
}

form.inline-upload .actions {
  margin-top: 8px;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.btn-link.danger {
  color: var(--err);
}

.submission-template-list .template-cat {
  font-weight: 600;
}

.tutorial-box {
  background: #f0f6ff;
  border: 1px solid #c5d8f5;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.tutorial-box h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.tutorial-box ul.plain {
  margin: 8px 0;
  padding-left: 1.2em;
}

.tutorial-box ol.plain {
  margin: 8px 0;
  padding-left: 1.4em;
}

.lister-deploy code,
.cloud-deploy code {
  font-size: 0.85em;
}

.warn-line {
  color: var(--err);
  font-weight: 600;
}

.cloud-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.cloud-iframe {
  width: 100%;
  height: 520px;
  border: none;
  display: block;
  background: #fafbfc;
}

@media (max-width: 640px) {
  .cloud-iframe { height: 360px; }
}

code {
  font-size: 0.9em;
  background: #eef2f7;
  padding: 2px 6px;
  border-radius: 4px;
}

.form label {
  display: block;
  margin-bottom: 14px;
  font-weight: 600;
}

.form label input[type="text"],
.form label input[type="email"],
.form label input[type="datetime-local"],
.form label input[type="file"],
.form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
}

.form textarea { resize: vertical; }

.form .check {
  font-weight: 400;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.form .actions { margin-top: 16px; }

.form button.btn {
  border: none;
  cursor: pointer;
  font: inherit;
}

.ok { color: #067647; }
.ok-box { border-color: #86efac; background: #f0fdf4; }

.file-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.file-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

form.inline { display: inline; margin: 0; }

.link-btn {
  background: none;
  border: none;
  color: var(--err);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.btn.danger {
  background: #b42318;
}

.btn.danger:hover {
  background: #912018;
}

.warn-box {
  border-color: #fecaca;
  background: #fef2f2;
}

.public-url-keep-notice {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 6px;
}

.public-url-keep-notice strong {
  color: #b45309;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-weight: 600;
}

.eval-weight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}

.eval-weight-label {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 10px;
  align-items: center;
  margin: 0;
}

.eval-weight-name {
  grid-column: 1 / -1;
  font-weight: 600;
  font-size: 0.9rem;
}

.eval-weight-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.eval-weight-input-wrap input {
  width: 4.5rem;
  font: inherit;
  padding: 0.3rem 0.4rem;
}

.eval-weight-unit {
  color: var(--muted);
  font-size: 0.9rem;
}

.eval-weight-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.eval-weight-label.eval-weight-inactive {
  opacity: 0.55;
}

.eval-weight-label.eval-weight-inactive .eval-weight-name,
.eval-weight-label.eval-weight-inactive .eval-weight-unit,
.eval-weight-label.eval-weight-inactive .eval-weight-hint {
  color: var(--muted);
}

.eval-weight-label.eval-weight-inactive input {
  background: #f3f4f6;
  color: var(--muted);
}

.eval-weight-examples {
  margin: 0 0 1rem;
  padding-left: 1.2em;
}

.eval-weight-examples li {
  margin: 0.25rem 0;
}

.eval-inactive-note {
  margin-top: 0.5rem;
}

@media (max-width: 720px) {
  .eval-weight-grid {
    grid-template-columns: 1fr;
  }
}

.eval-matrix th.eval-sub {
  font-size: 0.78rem;
  font-weight: 500;
}

.eval-matrix td.num,
.eval-matrix th.num {
  text-align: right;
  white-space: nowrap;
}

.eval-matrix td.eval-score {
  color: var(--muted);
  font-size: 0.85rem;
}

.eval-matrix td.eval-total {
  font-weight: 700;
}

.eval-matrix td.eval-best {
  background: #dbeafe;
}

.eval-sum-ng {
  color: #b42318;
}

.eval-formula-list dt {
  font-weight: 600;
  margin-top: 0.6rem;
}

.eval-formula-list dd {
  margin: 0.15rem 0 0;
}

.eval-winner {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: 2px solid #15803d;
  border-radius: 8px;
  background: #f0fdf4;
}

.eval-winner h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #15803d;
}

.eval-winner-lead {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.eval-winner-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
}

.eval-winner-meta > div {
  margin: 0;
}

.eval-winner-meta dt {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.eval-winner-meta dd {
  margin: 0;
  font-size: 1.05rem;
}

.eval-winner-company {
  font-weight: 700;
}

.eval-winner-bid {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  .eval-winner-meta {
    grid-template-columns: 1fr;
  }
}

.eval-caution {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
}

.storage-yours-path {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
  letter-spacing: 0.02em;
}

.storage-yours-lead {
  margin: 0 0 0.75rem;
}

.storage-retention-note {
  font-size: 0.88em;
}

.manage-countdown {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.82rem;
  color: #5a6570;
}

.manage-countdown-main {
  font-weight: 600;
  color: #1e40af;
}

.manage-countdown-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}

.manage-countdown-boardroom .manage-countdown-main {
  color: #15803d;
}

.manage-countdown-expired .manage-countdown-main,
.manage-countdown-expired {
  color: #b42318;
}

.storage-mode-field {
  margin-bottom: 1rem;
}

.storage-mode-choice {
  display: block;
  margin: 0.35rem 0;
}

.storage-mode-panel[hidden] {
  display: none !important;
}

.cloud-manage-table td.num {
  text-align: right;
}

.cloud-upload-box {
  margin-top: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.cloud-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  transition: border-color 0.15s, background 0.15s;
}

.cloud-dropzone:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.cloud-dropzone-active {
  border-color: #2563eb;
  background: #eff6ff;
}

.cloud-dropzone-lead {
  margin: 0 0 0.35rem;
}

.cloud-dropzone-hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
}

.cloud-upload-label input[type="file"] {
  display: block;
  margin-top: 0.35rem;
  font: inherit;
}

.btn.small {
  padding: 0.25rem 0.55rem;
  font-size: 0.82rem;
}

button.linkish {
  background: none;
  border: none;
  padding: 0;
  color: #2563eb;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 16px;
}

.fieldset legend {
  padding: 0 6px;
  font-weight: 600;
}

.building-form .building-block {
  margin-bottom: 14px;
}

.building-form .building-label {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.form-row.checks {
  gap: 12px 16px;
}

.form-row .spacer {
  margin-left: 8px;
}

.input-narrow {
  width: 5rem;
  max-width: 100%;
}

.input-grow {
  flex: 1 1 160px;
  min-width: 120px;
}

.input-unit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-unit input {
  flex: 1;
}

.input-unit > span {
  color: var(--muted);
  white-space: nowrap;
}

.draft-input::placeholder {
  color: #aab4be;
  opacity: 1;
}

.eligibility-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.eligibility-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 8px;
  margin-bottom: 14px;
}

.eligibility-item:last-child {
  margin-bottom: 0;
}

.eligibility-item.fixed {
  color: var(--text);
}

.eligibility-bullet {
  flex: 0 0 auto;
  line-height: 1.6;
}

.eligibility-text {
  line-height: 2.2;
}

.eligibility-grow {
  flex: 1 1 220px;
  min-width: 0;
}

.eligibility-grow .hint {
  margin: 4px 0 0;
  font-size: 0.82rem;
}

.eligibility-display {
  margin: 0;
  padding-left: 1.2em;
}

.eligibility-display li {
  margin-bottom: 8px;
}

.eligibility-display li:last-child {
  margin-bottom: 0;
}

.card h3 {
  margin: 20px 0 10px;
  font-size: 1rem;
}

.submission-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.submission-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 14px;
}

.submission-item:last-child {
  margin-bottom: 0;
}

.submission-item.custom-row {
  align-items: flex-start;
}

.submission-text {
  line-height: 2.2;
}

.submission-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
}

.submission-display {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.submission-display li {
  margin-bottom: 8px;
}

.submission-display li:last-child {
  margin-bottom: 0;
}

.disabled-block .check {
  opacity: 0.5;
}

.file-list.plain li {
  border: none;
  padding: 6px 0;
  display: list-item;
}

.file-list.plain {
  list-style: disc;
  padding-left: 1.2em;
}

.upload-queue {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.upload-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.upload-queue-item:last-child {
  border-bottom: none;
}

.upload-queue-name {
  font-size: 0.92rem;
  word-break: break-all;
}

.upload-queue-remove {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--err);
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 0.82rem;
  cursor: pointer;
}

.upload-queue-hint {
  margin-top: 4px;
}

.qa-list {
  margin-top: 6px;
  line-height: 1.35;
}

.qa-item {
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
}

.qa-item:last-child {
  border-bottom: none;
}

.qa-item .q {
  font-weight: 600;
  margin-bottom: 3px;
  line-height: 1.35;
}

.qa-item .a {
  margin-top: 4px;
  color: #333;
  line-height: 1.35;
}

.qa-item .a p {
  margin: 2px 0 0;
}

.qa-item .ans-line {
  margin-top: 4px;
  color: #333;
  line-height: 1.35;
}

.qa-item .file-list.plain {
  margin: 2px 0 0;
}

.qa-item .file-list.plain li {
  padding: 2px 0;
}

.tip-box {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f0f9ff;
  border-radius: 8px;
  border: 1px solid #bae6fd;
}

.help-box .help-item {
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

.help-box .help-item:first-of-type {
  border-top: none;
}

.help-box summary {
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0;
}

.help-box details[open] summary {
  margin-bottom: 8px;
}

.help-box details p {
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 400;
}

.kentetsu-box .kentetsu-label {
  font-weight: 600;
  margin: 0 0 8px;
}

.kentetsu-url {
  word-break: break-all;
  font-size: 1.05rem;
}

.kentetsu-url-block {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.kentetsu-draft {
  width: 100%;
  font: inherit;
  line-height: 1.6;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  resize: vertical;
  background: #fafbfc;
}

.copy-source {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
