/* hidden 属性を付けた要素は、個別の display 指定 (grid など) があっても必ず隠す */
[hidden] { display: none !important; }

:root {
  --bg: #f4f1ea;
  --panel: #fffdf9;
  --line: #e6e0d4;
  --line-strong: #cfc6b5;
  --text: #22252b;
  --muted: #6f6a60;
  --accent: #26324f;
  --shu: #c8372d;
  --gold: #b48a2c;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --ng: #c62828;
  --ng-bg: #fdecec;
  --warn: #b26a00;
  --warn-bg: #fff4e0;
  --info: #5c6f8a;
  --info-bg: #eef2f7;
  --ok: #2e7d4f;
  --ok-bg: #eaf5ee;
  --radius: 8px;
  font-size: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    linear-gradient(rgba(38, 50, 79, .035) 1px, transparent 1px) 0 0 / 100% 28px,
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  line-height: 1.55;
}

h1, h2, h3 { margin: 0; font-weight: 600; }
h2 { font-size: 15px; }
a { color: inherit; }
.muted { color: var(--muted); font-size: 12px; }

/* ---------------------------------------------------------------- ボタン */
.btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  border-radius: 6px;
  padding: 7px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn:hover { border-color: var(--accent); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #18213a; }
.btn-ghost { background: transparent; }
.btn-small { padding: 4px 10px; font-size: 12px; }
.btn-wide { width: 100%; justify-content: center; padding: 11px 14px; font-size: 14px; }

/* ---------------------------------------------------------------- 上部 */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.top-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.brand { font-family: var(--mincho); font-weight: 700; font-size: 20px; letter-spacing: .08em; }
.top { border-bottom: 3px double var(--line-strong); }
h2 { font-family: var(--mincho); font-size: 16px; letter-spacing: .04em; }
.sub { color: var(--muted); font-size: 12px; }
.top-right { display: flex; align-items: center; gap: 12px; }
.me { font-size: 12px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; }

.summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 24px 0;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { font-size: 22px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.stat-note { color: var(--muted); font-size: 11px; margin-top: 2px; }
.stat.ng .stat-value { color: var(--ng); }
.stat.warn .stat-value { color: var(--warn); }

/* ---------------------------------------------------------------- 3列 */
.layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.6fr) minmax(300px, 1.1fr);
  gap: 16px;
  padding: 16px 24px;
  align-items: start;
}
.col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
  min-width: 0;
}
.col-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.col-lead { color: var(--muted); font-size: 12px; margin: 0 0 10px; }
.count { font-size: 12px; color: var(--muted); }
.legend { font-size: 11px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
.dot.ng { background: var(--ng); }
.dot.warn { background: var(--warn); }
.dot.info { background: var(--info); }
.dot.ok { background: var(--ok); }

.tag {
  display: inline-block;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.tag.ng { color: var(--ng); background: var(--ng-bg); border-color: transparent; }
.tag.warn { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.tag.info { color: var(--info); background: var(--info-bg); border-color: transparent; }
.tag.ok { color: var(--ok); background: var(--ok-bg); border-color: transparent; }

/* ---------------------------------------------------------------- 判断待ち */
.inbox { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.inbox li {
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 6px;
  padding: 9px 11px;
}
.inbox li.ng { border-left-color: var(--ng); }
.inbox li.warn { border-left-color: var(--warn); }
.inbox li.info { border-left-color: var(--info); }
.inbox-kind { font-size: 11px; color: var(--muted); }
.inbox-title { font-weight: 600; margin: 1px 0 2px; }
.inbox-meta { font-size: 12px; color: var(--muted); }
.inbox-actions { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.empty { color: var(--muted); font-size: 13px; padding: 14px 4px; text-align: center; }

/* ---------------------------------------------------------------- 工藤くん */
.dept { margin-top: 12px; }
.dept:first-child { margin-top: 0; }
.dept-name { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; letter-spacing: .03em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.card {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  background: var(--panel);
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.card:hover { border-color: var(--accent); }
.card.ng { box-shadow: inset 3px 0 0 var(--ng); }
.card.warn { box-shadow: inset 3px 0 0 var(--warn); }
.card-head { display: flex; align-items: center; gap: 7px; }
.card-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-line { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-problem { font-size: 12px; }
.card-problem.ng { color: var(--ng); }
.card-problem.warn { color: var(--warn); }
.card-problem.info { color: var(--info); }
.card.notbuilt { cursor: default; border-style: dashed; background: transparent; }
.card.notbuilt:hover { border-color: var(--line); }

/* ---------------------------------------------------------------- 所見 */
.insight-summary { font-size: 14px; margin: 4px 0 10px; }
.insight-meta { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.finding { border-top: 1px solid var(--line); padding: 10px 0; }
.finding:first-of-type { border-top: 0; }
.finding-head { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.finding-title { font-weight: 600; }
.finding-kudo { font-size: 12px; color: var(--muted); }
.finding-comment { margin: 4px 0 0; }
.finding-next { margin: 4px 0 0; font-size: 12px; }
.finding-ev { margin: 6px 0 0; padding-left: 16px; font-size: 12px; color: var(--muted); }
.finding-actions { margin-top: 7px; display: flex; gap: 6px; flex-wrap: wrap; }
.obs { margin: 12px 0 0; padding: 10px 12px; background: var(--bg); border-radius: 6px; font-size: 13px; }
.obs h3 { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.obs ul { margin: 0; padding-left: 18px; }
.more { margin-top: 8px; }
details summary { cursor: pointer; color: var(--muted); font-size: 12px; }

/* ---------------------------------------------------------------- 履歴 */
.history { margin: 0 24px 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.table td.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- 詳細 (右から出る) */
.drawer, .modal { position: fixed; inset: 0; z-index: 20; }
.drawer-backdrop, .modal-backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .32); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(560px, 100%);
  background: var(--panel);
  padding: 18px 20px 28px;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0, 0, 0, .12);
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.drawer h3 { font-size: 13px; margin: 18px 0 6px; color: var(--muted); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 4px 10px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.checks { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.checks li { display: flex; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.checks .ck { width: 48px; flex: none; font-weight: 600; }
.checks .ck.ok { color: var(--ok); }
.checks .ck.ng { color: var(--ng); }
.action-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.action-row .note { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- 確認 */
.modal-panel {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, calc(100% - 32px));
  background: var(--panel);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
}
.modal-panel h2 { font-size: 16px; margin-bottom: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.field textarea { font: inherit; font-size: 13px; color: var(--text); padding: 8px; border: 1px solid var(--line-strong); border-radius: 6px; resize: vertical; }
.warnbox { background: var(--warn-bg); color: #6b4000; padding: 8px 10px; border-radius: 6px; font-size: 12px; margin-top: 10px; }
.error { color: var(--ng); font-size: 12px; margin: 8px 0 0; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; z-index: 30;
  max-width: calc(100% - 32px);
}

/* ---------------------------------------------------------------- ログイン */
body.login { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login-box { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px 26px; }
.login-kicker { color: var(--muted); font-size: 12px; margin: 0 0 4px; }
.login-box h1 { font-size: 22px; margin-bottom: 10px; }
.login-lead { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.login-note { color: var(--muted); font-size: 11px; margin: 12px 0 0; text-align: center; }

/* ---------------------------------------------------------------- 狭い画面 */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(260px, 1fr) minmax(0, 1.6fr); }
  .col-insight { grid-column: 1 / -1; }
  .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .top { padding: 12px 16px; flex-wrap: wrap; }
  .sub { display: none; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 16px 0; }
  .layout { grid-template-columns: 1fr; padding: 12px 16px; }
  .history { margin: 0 16px 24px; }
  .kv { grid-template-columns: 110px 1fr; }
}


/* ================================================================ 遊びの部分 */

/* ---- 朝礼 (部長の似顔絵と吹き出し) */
.chorei {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 16px 24px 0;
  padding: 14px 18px;
  background: var(--accent);
  color: #f4f1ea;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.chorei::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 18px solid rgba(255, 255, 255, .04);
  pointer-events: none;
}
.chorei-face { width: 104px; height: 104px; background: #f4f1ea; border-radius: 50%; overflow: hidden; border: 3px solid #f4f1ea; }
.chorei-face svg { width: 100%; height: 100%; display: block; }
.mood-smile svg { animation: nod 4s ease-in-out infinite; transform-origin: 50% 90%; }
.mood-sweat .sweat { animation: drip 1.6s ease-in infinite; }
.mood-sweat .sweat.s2 { animation-delay: .7s; }
@keyframes nod { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-3deg); } 96% { transform: rotate(2deg); } }
@keyframes drip { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
.chorei-bubble {
  background: #fffdf9;
  color: var(--text);
  border-radius: 12px;
  padding: 12px 16px;
  position: relative;
}
.chorei-bubble::before {
  content: "";
  position: absolute;
  left: -10px; top: 26px;
  border: 10px solid transparent;
  border-right-color: #fffdf9;
  border-left: 0;
}
.chorei-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.chorei-label { font-family: var(--mincho); font-weight: 700; color: var(--shu); letter-spacing: .2em; }
.chorei-date { font-size: 12px; color: var(--muted); }
.chorei-text { margin: 0; font-size: 14px; }
.chorei-quote { margin: 6px 0 0; font-family: var(--mincho); font-size: 13px; color: var(--muted); }

/* ---- 今月のMVP (表彰の盾) */
.plaque {
  min-width: 180px;
  text-align: center;
  padding: 10px 16px 12px;
  border-radius: 10px;
  background: linear-gradient(160deg, #e9d79e, #c9a24a 55%, #a98330);
  color: #3b2c0a;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45), 0 2px 0 rgba(0, 0, 0, .15);
}
.plaque-kicker { font-family: var(--mincho); font-weight: 700; letter-spacing: .25em; font-size: 12px; }
.plaque-role { font-size: 11px; margin-top: 4px; opacity: .8; }
.plaque-name { font-family: var(--mincho); font-weight: 700; font-size: 15px; }
.plaque-note { font-size: 11px; margin-top: 2px; }

/* ---- 社員証カード */
.card { padding-top: 0; overflow: hidden; position: relative; }
.card-badge {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 -11px 4px;
  padding: 4px 11px;
  background: repeating-linear-gradient(135deg, #efe9dc 0 6px, #f6f1e6 6px 12px);
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
}
.card-no { font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.card-title { font-family: var(--mincho); color: var(--accent); font-weight: 600; font-size: 11px; }
.card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.att {
  font-size: 11px;
  padding: 0 7px;
  border-radius: 3px;
  border: 1px solid currentColor;
  line-height: 18px;
  white-space: nowrap;
}
.att.ok { color: var(--ok); }
.att.warn { color: var(--warn); }
.att.ng { color: #fff; background: var(--ng); border-color: var(--ng); }
.att.window { color: #7b6a4f; border-style: dashed; }
.att.vacant { color: var(--muted); border-style: dotted; }
.att.mvp-tag { color: #6b4e10; background: #f3e3b0; border-color: #d6b45c; }
.card.mvp { box-shadow: 0 0 0 2px #d6b45c; }
.card.mvp::after {
  content: "MVP";
  position: absolute;
  top: 8px; right: -26px;
  transform: rotate(45deg);
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 1px 28px;
}
.card.notbuilt .card-badge { background: transparent; }
.dept-name { font-family: var(--mincho); font-size: 13px; color: var(--accent); border-left: 3px solid var(--accent); padding-left: 7px; }
.drawer-role { margin-top: 0; }

/* ---- 判子 */
.hanko {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--shu);
  border-radius: 50%;
  color: var(--shu);
  font-family: var(--mincho);
  font-weight: 700;
  line-height: 1.05;
  transform: rotate(-8deg);
  background: rgba(255, 255, 255, .5);
}
.hanko-top { border-bottom: 1px solid var(--shu); padding: 0 2px; }
.hanko-name { padding: 1px 0; }
.hanko-date { border-top: 1px solid var(--shu); padding: 0 2px; font-family: inherit; }
.hanko-tiny { width: 38px; height: 38px; font-size: 8px; }
.hanko-tiny .hanko-name { font-size: 10px; }
.hanko-small { width: 56px; height: 56px; font-size: 10px; }
.hanko-small .hanko-name { font-size: 13px; }
.hanko-big { width: 190px; height: 190px; font-size: 26px; border-width: 6px; }
.hanko-big .hanko-name { font-size: 44px; padding: 6px 0; }
.hanko-big .hanko-top, .hanko-big .hanko-date { border-width: 3px; padding: 2px 14px; }
.hanko-overlay { position: fixed; inset: 0; display: grid; place-items: center; z-index: 40; pointer-events: none; }
.hanko-overlay.pressing .hanko { animation: press .55s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes press {
  0% { transform: scale(2.4) rotate(-20deg); opacity: 0; }
  60% { transform: scale(.92) rotate(-8deg); opacity: 1; }
  100% { transform: scale(1) rotate(-8deg); opacity: .92; }
}
.stamp-cell { width: 52px; }

/* ---- 稟議書 */
.ringi { border-top: 6px solid var(--accent); }
.ringi-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.ringi-kind { font-family: var(--mincho); font-weight: 700; letter-spacing: .4em; color: var(--accent); }
.ringi-no { font-size: 11px; color: var(--muted); }
.ringi-stamps { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.stamp-box { width: 96px; border: 1px solid var(--line-strong); text-align: center; background: #fff; }
.stamp-label { font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line-strong); padding: 2px 0; }
.stamp-box .hanko { margin: 8px 0; }
.stamp-empty { height: 72px; display: grid; place-items: center; font-size: 11px; color: var(--line-strong); }

@media (max-width: 760px) {
  .chorei { grid-template-columns: 72px minmax(0, 1fr); margin: 12px 16px 0; padding: 12px; gap: 12px; }
  .chorei-face { width: 68px; height: 68px; }
  .plaque { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .mood-smile svg, .mood-sweat .sweat, .hanko-overlay.pressing .hanko { animation: none; }
}

/* ---- 部長に話しかける */
.talk {
  margin: 16px 24px 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 14px;
}
.talk-log {
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 2px;
}
.msg { display: flex; gap: 10px; align-items: flex-end; }
.msg-user { justify-content: flex-end; }
.msg-bubble { max-width: min(720px, 82%); padding: 9px 13px; border-radius: 14px; white-space: pre-wrap; font-size: 13.5px; }
.msg-user .msg-bubble { background: var(--accent); color: #f4f1ea; border-bottom-right-radius: 4px; }
.msg-bucho .msg-bubble { background: #f1ece1; border-bottom-left-radius: 4px; }
.msg-error .msg-bubble { background: var(--ng-bg); color: var(--ng); }
.talk-face { width: 36px; height: 36px; flex: none; border-radius: 50%; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.talk-face svg { width: 100%; height: 100%; display: block; }
.msg-mentions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.msg-proposals { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; white-space: normal; }
.proposal { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: var(--panel); border: 1px dashed var(--line-strong); border-radius: 8px; padding: 8px 10px; }
.chip {
  font: inherit; font-size: 12px; padding: 3px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--accent);
}
.chip:hover { border-color: var(--accent); }
.talk-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.talk-input { display: flex; gap: 8px; align-items: stretch; }
.talk-input textarea { flex: 1; font: inherit; font-size: 13.5px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; resize: vertical; background: #fff; }
.thinking { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
@media (max-width: 760px) {
  .talk { margin: 12px 16px 0; }
  .talk-input { flex-direction: column; }
  .msg-bubble { max-width: 88%; }
}
.talk .col-head { flex-wrap: wrap; justify-content: flex-start; column-gap: 14px; }
.col-head h2 { white-space: nowrap; }

/* ---- 取り次ぎ */
.param-fields { display: grid; gap: 8px; margin: 12px 0; padding: 12px; background: #fbf8f1; border: 1px dashed var(--line-strong); border-radius: 8px; }
.param-fields .field { margin: 0; }
.param-fields input[type="text"], .param-fields input[type="number"], .param-fields select, .param-fields textarea { width: 100%; box-sizing: border-box; }
.proposal-params { font-size: 13px; margin-top: 2px; color: var(--text); background: #f6f1e6; border-radius: 6px; padding: 2px 8px; display: inline-block; word-break: break-all; }
.param-fields input, .param-fields select { font: inherit; font-size: 13px; color: var(--text); padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; }
.param-fields input[type="checkbox"] { width: auto; align-self: flex-start; }
