:root {
  --ink: #19332f;
  --muted: #5d716a;
  --line: #dce6e1;
  --paper: #ffffff;
  --canvas: #f4f7f5;
  --nav: #132d2a;
  --accent: #147461;
  --accent-dark: #0b584a;
  --accent-soft: #e4f2ec;
  --danger: #9e342d;
  --radius: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #d39531; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.35; font-weight: 650; }
h1 { font-size: 29px; letter-spacing: -.7px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
ul { list-style: none; padding: 0; margin: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; padding: 10px 16px; z-index: 10; background: white; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 245px; background: var(--nav); color: #e0eae5; display: flex; flex-direction: column; padding: 32px 20px 20px; z-index: 2; }
.brand { color: #fff; display: inline-flex; align-items: center; gap: 12px; }
.brand:hover { color: #fff; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #c2e2ce; color: #163d32; font-size: 16px; font-weight: 800; letter-spacing: -1px; flex-shrink: 0; }
.brand-copy { font-size: 20px; line-height: 1.2; font-weight: 650; letter-spacing: -.6px; }
.brand-copy small { display: block; font-size: 10px; letter-spacing: 1.2px; color: #a9c0b7; font-weight: 400; margin-top: 7px; }
.nav-caption { font-size: 10px; letter-spacing: 1.8px; color: #9bb3aa; margin: 47px 15px 13px; }
.primary-nav { display: grid; gap: 7px; }
.primary-nav a { display: flex; align-items: center; gap: 14px; border-radius: 9px; padding: 12px 15px; color: #bfd0c8; font-size: 14px; }
.primary-nav a:hover { background: #203e37; color: #fff; }
.primary-nav a.active { background: #2d4d41; color: #e7f7eb; }
.sidebar { overflow-y: auto; overscroll-behavior: contain; }
.nav-section, .nav-group { min-width: 0; }
.nav-children { margin: 4px 0 5px 18px; padding-left: 10px; border-left: 1px solid #365047; display: grid; gap: 3px; }
.nav-children a { font-size: 12px; padding: 9px 10px; overflow-wrap: anywhere; }
.nav-group > summary { display: flex; align-items: center; gap: 14px; border-radius: 9px; padding: 12px 15px; color: #bfd0c8; font-size: 14px; cursor: pointer; list-style: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: "＋"; font-size: 12px; margin-left: auto; }
.nav-group[open] > summary::after { content: "－"; }
.nav-group > summary:hover { background: #203e37; color: #fff; }
.nav-group-active > summary { background: #2d4d41; color: #e7f7eb; }
.nav-planned { display: flex; align-items: center; gap: 14px; padding: 12px 15px; color: #9bb3aa; font-size: 14px; }
.nav-planned small { display: block; margin-top: 3px; font-size: 10px; }
.sidebar-personal { display: block; margin-top: 12px; color: #bfd0c8; border-radius: 6px; padding: 6px 0; font-size: 11px; }
.sidebar-personal:hover, .sidebar-personal.active { color: #e7f7eb; text-decoration: underline; }
.nav-icon { font-size: 23px; width: 21px; height: 25px; display: inline-grid; place-items: center; line-height: 1; }
.sidebar-stage { margin: auto 9px 28px; padding-top: 30px; display: flex; align-items: flex-start; gap: 9px; }
.stage-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #94c4a6; flex-shrink: 0; margin-top: 7px; }
.sidebar-stage strong { font-size: 11px; color: #c2d6cb; font-weight: 550; }
.sidebar-stage p { color: #98b0a7; font-size: 10px; margin-top: 3px; }
.sidebar-account { display: flex; align-items: center; gap: 9px; border-top: 1px solid #365047; padding-top: 20px; }
.account-avatar { background: #3b574b; border: 1px solid #537261; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #e5f1e8; font-size: 13px; }
.account-copy { flex: 1; min-width: 0; }
.account-copy strong { display: block; overflow-wrap: anywhere; color: #ebf2ee; font-size: 10px; line-height: 1.3; }
.account-copy span { display: block; color: #9fb8ac; font-size: 9px; margin-top: 4px; }
.logout-button { background: transparent; color: #cfdfd5; border: 1px solid #466458; border-radius: 6px; padding: 5px 8px; font-size: 10px; white-space: nowrap; }
.logout-button:hover { background: #2b493d; }
.main-content { max-width: 1600px; margin: 0 auto; padding: 44px 48px 24px; }
.has-sidebar .main-content { margin-left: 245px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.eyebrow { font-size: 10px; color: var(--muted); letter-spacing: 1.7px; font-weight: 600; margin-bottom: 9px; }
.page-description { color: var(--muted); font-size: 13px; margin-top: 10px; }
.environment-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: #4c6a5a; padding: 8px 12px; border: 1px solid #d7e6db; border-radius: 7px; white-space: nowrap; margin-top: 2px; background: #eff6ef; }
.environment-badge > span { width: 5px; height: 5px; border-radius: 50%; background: #5c936c; }
.welcome-card { background: #e9f1e7; border: 1px solid #d7e4d3; border-radius: var(--radius); padding: 28px 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.welcome-card h2 { font-size: 25px; font-weight: 600; letter-spacing: -.6px; }
.welcome-card > div > p:not(.eyebrow) { margin-top: 9px; color: #587361; font-size: 12px; }
.role-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.pill { display: inline-flex; align-items: center; font-size: 10px; line-height: 1.4; font-weight: 550; border-radius: 5px; padding: 5px 8px; white-space: nowrap; }
.pill-green { background: #d4e7d7; color: #315a41; }
.pill-neutral { background: #edf1ef; color: #596d62; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; border-radius: 8px; padding: 11px 17px; font-size: 12px; font-weight: 550; line-height: 1.5; border: 1px solid transparent; white-space: nowrap; }
.button-primary { background: var(--accent); color: white; border-color: var(--accent); }
.button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: white; }
.button-secondary { border-color: #cfddd4; color: #365e49; background: #fff; }
.button-secondary:hover { background: #eef6ef; border-color: #adc6b5; }
.button span { font-size: 17px; line-height: 1; }
.section-heading { display: flex; align-items: baseline; gap: 14px; margin: 30px 0 14px; }
.section-heading h2 { font-size: 15px; }
.section-heading p { color: var(--muted); font-size: 10px; }
.identity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.identity-card { position: relative; padding: 23px 22px 20px; }
.identity-card h3 { font-size: 13px; margin-bottom: 20px; }
.card-symbol { position: absolute; top: 19px; right: 20px; font-size: 10px; letter-spacing: 1px; color: #a2b4a7; }
.compact-details { display: grid; grid-template-columns: 45px minmax(0, 1fr); gap: 13px 10px; font-size: 11px; margin: 0; }
.compact-details dt { color: var(--muted); }
.compact-details dd { margin: 0; color: #294738; overflow-wrap: anywhere; }
.status-inline { display: flex; align-items: center; gap: 6px; }
.status-inline > span { background: #639a70; height: 5px; width: 5px; border-radius: 50%; }
.team-list { font-size: 12px; }
.team-list li + li { margin-top: 12px; }
.team-list span { display: block; font-size: 10px; color: var(--muted); letter-spacing: .5px; margin-top: 3px; }
.muted { color: var(--muted); }
.card-footnote { color: var(--muted); font-size: 10px; margin-top: 15px; }
.workspace-entry { display: flex; align-items: center; gap: 18px; padding: 23px 24px; }
.entry-icon { flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center; background: #edf4ed; color: #53775c; font-size: 32px; border-radius: 12px; }
.entry-copy { flex: 1; }
.entry-copy h3 { font-size: 15px; }
.entry-copy p { color: var(--muted); font-size: 11px; margin-top: 7px; }
.future-heading { margin-top: 30px; }
.future-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.future-card { border: 1px dashed #cfdcd4; border-radius: 10px; padding: 16px; background: #f7f9f7; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.future-card h3 { font-size: 11px; color: #677c6e; font-weight: 500; }
.future-card .pill { font-size: 8px; padding: 4px 6px; background: #e9eeea; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; font-size: 9px; color: #7c8c80; margin-top: 40px; padding-top: 18px; border-top: 1px solid #dee6df; }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 23px 25px; border-bottom: 1px solid var(--line); }
.card-header h2 { font-size: 16px; }
.card-header p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.table-scroll { overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
.customer-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 680px; }
.customer-table th { background: #f7f9f7; padding: 14px 21px; color: #6c7f72; font-size: 10px; font-weight: 550; border-bottom: 1px solid #e6ece7; white-space: nowrap; }
.customer-table td { padding: 20px 21px; font-size: 12px; vertical-align: middle; border-bottom: 1px solid #edf1ed; }
.customer-table tr:last-child td { border-bottom: 0; }
.customer-table tbody tr:hover { background: #fafcf9; }
.customer-name { font-weight: 600; color: #28533d; }
.customer-name:hover { text-decoration: underline; }
.record-id { display: block; color: #617764; font-size: 9px; letter-spacing: .3px; margin-top: 4px; }
.business-line { color: #56715c; background: #eff4ee; padding: 4px 7px; border-radius: 4px; font-size: 10px; white-space: nowrap; }
.cell-action { text-align: right; white-space: nowrap; }
.cell-action a { font-size: 11px; }
.cell-action a span { margin-left: 5px; }
.scope-note { display: flex; align-items: flex-start; gap: 8px; color: #6e8174; font-size: 11px; margin: 18px 3px 0; }
.help-icon { border: 1px solid #9bada0; border-radius: 50%; width: 15px; height: 15px; display: inline-grid; place-items: center; font-size: 10px; font-weight: 600; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.empty-cell { text-align: center; padding: 55px 20px !important; }
.empty-cell strong { display: block; font-size: 15px; font-weight: 550; margin-top: 12px; }
.empty-cell p { font-size: 11px; color: var(--muted); margin-top: 8px; }
.empty-symbol { display: inline-grid; place-items: center; color: #84a28b; font-size: 35px; background: #eff5ee; width: 62px; height: 62px; border-radius: 17px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; margin-bottom: 20px; }
.customer-profile { padding: 30px; }
.customer-profile-heading { display: flex; align-items: center; gap: 15px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.profile-avatar { display: grid; place-items: center; width: 55px; height: 55px; background: #e4f0e2; color: #527552; border-radius: 13px; font-size: 24px; }
.customer-profile-heading h2 { margin-top: 6px; font-size: 22px; }
.customer-profile-heading > .pill { margin-left: auto; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 45px; margin: 27px 0 2px; }
.detail-grid dt { color: var(--muted); font-size: 11px; margin-bottom: 7px; }
.detail-grid dd { font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.notice { padding: 17px 20px; color: #536a5c; border-radius: 10px; background: #eaf2e7; border: 1px solid #d9e6d4; font-size: 12px; }
.detail-notice { margin-top: 20px; }
.detail-notice h3 { font-size: 12px; margin-bottom: 5px; }
.detail-notice p { font-size: 11px; }
.message-stack { margin-bottom: 20px; }
.message-stack p + p { margin-top: 8px; }
.error-card { max-width: 650px; text-align: center; padding: 55px 35px; margin: 35px auto; }
.error-symbol { display: grid; place-items: center; margin: 0 auto 22px; width: 60px; height: 60px; color: #7b9678; background: #edf3e8; border: 1px solid #dce7d3; border-radius: 50%; font-size: 25px; }
.error-card h2 { font-size: 25px; margin-top: 10px; }
.error-card > p:not(.eyebrow) { color: var(--muted); margin-top: 14px; font-size: 13px; }
.error-card .button { margin-top: 28px; }
.is-guest .main-content { padding: 0; max-width: none; }
.is-guest .error-card { margin: 10vh auto; width: calc(100% - 40px); }
.login-layout { display: grid; grid-template-columns: minmax(360px, .94fr) minmax(480px, 1.06fr); min-height: 100vh; background: #fcfdfb; }
.login-story { background: #173d32; color: #edf5e9; padding: 42px 9.5%; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login-story::before, .login-story::after { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; border: 1px solid #b7d0ad19; bottom: -260px; right: -230px; pointer-events: none; }
.login-story::after { width: 620px; height: 620px; bottom: -330px; right: -300px; }
.login-brand .brand-mark { background: #c5dfb9; }
.login-brand .brand-copy small { color: #b5cbb7; }
.login-story-content { margin: auto 0; padding: 65px 0 80px; position: relative; z-index: 1; }
.story-label { color: #acc8a9; letter-spacing: 2px; font-size: 11px; }
.login-story h1 { font-size: clamp(34px, 3.5vw, 55px); line-height: 1.4; letter-spacing: -1.6px; font-weight: 500; margin-top: 21px; }
.login-story-content > p { color: #b3cbb6; font-size: 12px; line-height: 1.9; margin-top: 27px; }
.story-rule { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 10px; color: #b5cdb6; margin-top: 37px; }
.story-rule span { width: 4px; height: 4px; border-radius: 50%; background: #8db18b; }
.story-rule span:not(:first-child) { margin-left: 8px; }
.login-story-footer { color: #9ab79d; font-size: 9px; position: relative; z-index: 1; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 60px 50px; }
.login-form-wrap { width: 100%; max-width: 350px; }
.login-form-wrap > .pill { background: #edf3e9; color: #607859; font-size: 9px; letter-spacing: .6px; }
.login-form-wrap h2 { font-size: 28px; margin-top: 24px; letter-spacing: -.6px; }
.login-intro { color: var(--muted); font-size: 12px; margin-top: 10px; }
.login-form { margin-top: 30px; }
.form-field { margin-top: 20px; }
.form-field label { display: block; color: #334f3c; font-size: 12px; font-weight: 550; margin-bottom: 9px; }
.form-field input { width: 100%; border: 1px solid #cfdbd0; background: white; padding: 11px 12px; border-radius: 7px; color: var(--ink); font-size: 14px; min-height: 45px; }
.form-field input:focus { border-color: var(--accent); }
.login-submit { width: 100%; justify-content: space-between; padding: 13px 17px; margin-top: 26px; font-size: 13px; }
.login-help { margin-top: 24px; display: flex; gap: 8px; color: #7d8c7b; font-size: 10px; line-height: 1.8; }
.login-help .help-icon { border-color: #b2bfae; margin-top: 3px; }
.login-environment { color: #748b72; display: flex; align-items: center; gap: 7px; font-size: 10px; margin-top: 46px; }
.login-environment .stage-dot { margin-top: 0; width: 5px; height: 5px; background: #8cae80; }
.form-alert { padding: 12px 14px; margin-top: 22px; background: #fbefec; border: 1px solid #ebd0c9; border-radius: 7px; color: var(--danger); font-size: 12px; }
.form-alert p + p { margin-top: 6px; }
.field-error { margin-top: 7px; color: var(--danger); font-size: 11px; }
@media (min-width: 1500px) { .has-sidebar .main-content { padding-left: 65px; padding-right: 65px; } }
@media (max-width: 1200px) {
  .sidebar { width: 220px; padding-left: 16px; padding-right: 16px; }
  .has-sidebar .main-content { margin-left: 220px; padding: 34px 30px 22px; }
  .page-header { flex-direction: column; gap: 13px; }
  .environment-badge { margin: 0; }
  .identity-grid { gap: 12px; }
  .identity-card { padding: 20px 17px; }
  .future-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .sidebar { position: static; width: auto; padding: 17px 22px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 9px; font-size: 13px; }
  .brand-copy { font-size: 18px; }
  .brand-copy small { font-size: 8px; margin-top: 5px; }
  .nav-caption, .sidebar-stage { display: none; }
  .primary-nav { display: flex; grid-column: 1 / -1; grid-row: 2; gap: 9px; }
  .primary-nav { align-items: flex-start; }
  .primary-nav a { padding: 7px 12px; font-size: 11px; }
  .sidebar { overflow: visible; }
  .nav-section, .nav-group { flex: 0 1 auto; }
  .nav-group { flex-basis: 100%; }
  .nav-group > summary, .nav-planned { padding: 7px 12px; font-size: 11px; gap: 8px; }
  .nav-children { margin-left: 12px; }
  .nav-children a { font-size: 11px; padding: 8px; }
  .nav-group .nav-children { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-personal { grid-column: 1 / -1; margin: 0; justify-self: start; }
  .nav-icon { font-size: 18px; width: 18px; height: 20px; }
  .sidebar-account { padding: 0; border: 0; gap: 8px; }
  .sidebar-account .account-copy { max-width: 160px; }
  .account-avatar { display: none; }
  .account-copy strong { font-size: 9px; }
  .account-copy span { font-size: 8px; }
  .has-sidebar .main-content { margin: 0; padding: 27px 23px 21px; }
  .page-header { margin-bottom: 23px; }
  h1 { font-size: 25px; }
  .welcome-card { padding: 24px; }
  .welcome-card h2 { font-size: 23px; }
  .login-layout { grid-template-columns: minmax(280px, .9fr) minmax(370px, 1.1fr); }
  .login-story { padding: 35px 30px; }
  .login-panel { padding: 45px 35px; }
  .login-story h1 { font-size: 35px; }
}
@media (max-width: 650px) {
  .identity-grid { grid-template-columns: 1fr; }
  .identity-card { padding: 21px; }
  .identity-card h3 { margin-bottom: 15px; }
  .welcome-card { flex-direction: column; align-items: flex-start; gap: 20px; }
  .welcome-card .button { width: 100%; }
  .workspace-entry { flex-wrap: wrap; padding: 20px; gap: 13px; }
  .entry-copy { min-width: calc(100% - 65px); }
  .workspace-entry > .button { width: 100%; margin-top: 7px; }
  .workspace-entry > .pill { margin-left: 61px; }
  .section-heading { display: block; margin-top: 25px; }
  .section-heading p { margin-top: 5px; }
  .future-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .future-card { padding: 13px; gap: 5px; }
  .future-card h3 { font-size: 10px; }
  .page-footer { flex-direction: column; gap: 4px; margin-top: 28px; }
  .card-header { padding: 20px; }
  .detail-grid { grid-template-columns: 1fr; gap: 22px; }
  .customer-profile { padding: 23px; }
  .customer-profile-heading { flex-wrap: wrap; gap: 12px; }
  .customer-profile-heading h2 { font-size: 19px; }
  .profile-avatar { width: 43px; height: 43px; font-size: 20px; }
  .customer-profile-heading > .pill { margin-left: 0; }
  .login-layout { display: block; }
  .login-story { padding: 25px 27px 28px; }
  .login-story-content { padding: 28px 0 0; }
  .login-story h1 { font-size: 25px; line-height: 1.5; margin-top: 10px; letter-spacing: -.5px; }
  .login-story h1 br { display: none; }
  .login-story-content > p { margin-top: 14px; font-size: 10px; }
  .story-label { font-size: 9px; }
  .story-rule, .login-story-footer { display: none; }
  .login-panel { padding: 35px 28px 40px; }
  .login-form-wrap { max-width: 420px; }
  .login-form-wrap h2 { font-size: 25px; margin-top: 17px; }
  .login-form { margin-top: 24px; }
  .login-environment { margin-top: 30px; }
  .error-card { padding: 40px 24px; }
}
@media (prefers-reduced-motion: no-preference) { a, button { transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease; } }

/* Stage A: ordinary customer work, structured forms and original timelines. */
button, input, select, textarea { font: inherit; }
select, textarea { color: var(--ink); }
.workspace-entry-spaced { margin-top: 15px; }
.stage-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.stage-toolbar > p { max-width: 650px; font-size: 12px; }
.button-group { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.button-small { padding: 8px 12px; font-size: 11px; }
.badge-warning { background: #f8edcf; color: #74511c; }
.badge-danger { background: #f8e2df; color: #8b342b; }
.badge-info { background: #e6eef6; color: #3e617d; }
.context-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 19px; margin-bottom: 18px; padding: 13px 17px; background: #eaf1e9; border: 1px solid #d8e3d6; border-radius: 9px; font-size: 12px; }
.context-strip span { color: var(--muted); font-size: 11px; }
.form-panel { max-width: 1000px; }
.form-panel .card-header { gap: 15px; }
.data-form { padding: 5px 26px 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.form-grid .form-field:has(textarea), .form-field-full { grid-column: 1 / -1; }
.data-form .form-field { min-width: 0; margin-top: 23px; }
.form-field select, .form-field textarea, .data-form input:not([type="checkbox"]):not([type="radio"]), .data-form select, .data-form textarea { width: 100%; min-width: 0; border: 1px solid #cfdbd0; background: white; padding: 11px 12px; border-radius: 7px; font-size: 13px; min-height: 45px; }
.form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 125px; line-height: 1.7; }
.form-field input[type="file"] { padding: 9px; background: #f8faf7; }
.form-field input[type="file"]::file-selector-button { border: 0; border-radius: 5px; padding: 6px 10px; margin-right: 12px; background: #e6efe4; color: #365c42; }
.checkbox-field { display: flex; flex-direction: column; align-items: flex-start; }
.checkbox-field input[type="checkbox"] { appearance: auto; width: 19px; height: 19px; min-height: 0; accent-color: var(--accent); }
.help-text { color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 7px; }
.help-text ul { list-style: disc; padding-left: 18px; }
.has-error input, .has-error select, .has-error textarea { border-color: #bd6b5d; }
.required-mark { color: #9b563b; font-weight: 600; }
.errorlist { margin: 8px 0; color: var(--danger); font-size: 12px; }
.errorlist li + li { margin-top: 5px; }
.form-alert .errorlist { margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 23px; margin-top: 28px; }
.profile-actions { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.compact-profile { gap: 20px 30px; }
.workspace-tabs { display: flex; flex-wrap: wrap; gap: 5px; border-bottom: 1px solid var(--line); padding: 18px 0 12px; margin: 0 0 22px; }
.workspace-tabs a { color: #527061; padding: 7px 13px; border-radius: 7px; font-size: 12px; background: #edf2ed; }
.workspace-tabs a:hover { background: #dfece0; }
.workspace-section { margin-top: 22px; scroll-margin-top: 25px; }
.workspace-section .card-header { gap: 18px; flex-wrap: wrap; }
.card-body { padding: 23px 25px; }
.record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.record-card { min-width: 0; padding: 20px; background: #fcfdfb; border: 1px solid #e1e9df; border-radius: 10px; }
.record-card h3 { color: #254a37; font-size: 14px; overflow-wrap: anywhere; }
.record-card h4 { color: #4f6d57; font-size: 11px; margin: 0 0 5px; font-weight: 550; }
.record-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.record-heading .record-tags { margin-top: 0; justify-content: flex-end; }
.record-subtitle { color: var(--muted); font-size: 11px; margin-top: 6px; overflow-wrap: anywhere; }
.record-details { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 9px 12px; margin: 16px 0 0; font-size: 12px; }
.record-details dt { color: var(--muted); }
.record-details dd { margin: 0; overflow-wrap: anywhere; }
.record-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 10px; }
.record-actions { margin-top: 18px; font-size: 11px; }
.record-actions .button { font-size: 11px; }
.stack-list { display: grid; gap: 15px; }
.text-block { margin-top: 16px; }
.text-block h4 { margin: 0 0 6px; color: var(--muted); font-size: 11px; font-weight: 550; }
.text-block p { font-size: 12px; }
.preformatted { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.code-text { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; }
.channel-identifier { margin-top: 13px; }
.empty-state { grid-column: 1 / -1; padding: 30px 20px; color: #69806b; text-align: center; }
.empty-state strong { font-size: 14px; font-weight: 550; display: block; }
.empty-state p { margin-top: 7px; font-size: 11px; }
.notice-warning { color: #72562d; background: #fbf5e5; border-color: #eadfbd; }
.notice-neutral { color: #56705c; background: #edf3eb; border-color: #dbe7d6; }
.notice h3 { font-size: 13px; margin-bottom: 6px; }
.notice p { font-size: 11px; }
.workspace-notice { margin-top: 20px; }
.inline-notice { padding: 11px 14px; margin-top: 15px; background: #eff4eb; color: #58724d; border: 1px solid #e0e9d9; border-radius: 7px; font-size: 11px; }
.inline-notice p + p { margin-top: 6px; }
.inline-links { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 10px; font-size: 11px; }
.timeline { margin: 0; padding: 0 0 0 18px; list-style: none; }
.timeline-item { position: relative; padding: 0 0 27px 25px; border-left: 1px solid #d5e2d6; }
.timeline-item::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #90b49b; box-shadow: 0 0 0 4px #f2f6ef; }
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 15px; color: var(--muted); font-size: 10px; margin-bottom: 10px; }
.compact-timeline h3 { font-size: 13px; font-weight: 550; }
.compact-timeline .preformatted { margin-top: 9px; font-size: 12px; }
.message-content { padding: 17px 19px; background: #f2f6f0; border: 1px solid #e0e9dc; border-radius: 0 10px 10px 10px; font-size: 13px; }
.timeline-outbound .message-content { background: #edf4f1; border-color: #dbe8df; }
.message-provenance { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; color: #718575; font-size: 9px; margin-top: 10px; overflow-wrap: anywhere; }
.conversation-summary .record-actions { margin-top: 18px; }
.inquiry-table { min-width: 720px; }
.inquiry-table td { vertical-align: top; }
.table-description { margin-top: 10px; max-width: 400px; color: #5e7664; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 850px) {
  .primary-nav { flex-wrap: wrap; }
  .stage-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .stage-toolbar .button-group { width: 100%; }
  .record-grid { grid-template-columns: 1fr; }
  .form-grid { gap: 0; }
}
@media (max-width: 650px) {
  .data-form { padding: 0 20px 23px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-panel .card-header, .card-header { align-items: flex-start; }
  .form-panel .card-header > .pill { margin-top: 5px; }
  .card-body { padding: 20px; }
  .record-card { padding: 17px; }
  .record-heading { flex-wrap: wrap; gap: 10px; }
  .record-heading .record-tags { justify-content: flex-start; }
  .workspace-tabs { gap: 5px; padding-top: 15px; }
  .workspace-tabs a { font-size: 11px; padding: 6px 10px; }
  .context-strip { align-items: flex-start; flex-direction: column; gap: 4px; }
  .timeline { padding-left: 6px; }
  .timeline-item { padding-left: 18px; }
  .message-content { padding: 14px; font-size: 12px; }
  .message-provenance { flex-direction: column; align-items: flex-start; gap: 4px; }
  .stage-toolbar .button-group .button { flex: 1; }
  .record-details { grid-template-columns: 38px minmax(0, 1fr); }
}
