:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Hiragino Kaku Gothic ProN',
    'Noto Sans JP',
    Meiryo,
    sans-serif;
  color: #25342f;
  background: #f6f7f9;
  font-size: 13px;
  --green: #174c42;
  --muted: #7d8785;
  --line: #e7ebe9;
  --soft: #edf4ef;
  --orange: #b97639;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button {
  border: 1px solid #dce2de;
  background: white;
  color: #35443f;
  border-radius: 6px;
  padding: 10px 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: 0.15s;
}
button:hover {
  background: #f1f5f2;
  border-color: #a9bab2;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button.primary,
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button.primary:hover {
  background: #226354;
}
.ghost {
  background: transparent;
  border-color: transparent;
}
.small {
  font-size: 11px;
  padding: 6px 10px;
}
.danger {
  color: #b34f4f;
}
.muted {
  color: var(--muted);
}
.positive {
  color: #317b58;
}
.mono {
  font-variant-numeric: tabular-nums;
}
.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  flex-shrink: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -1px;
}
.logo img {
  width: 31px;
  height: 31px;
}
.logo span {
  color: var(--green);
}
.sidebar {
  width: 222px;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 17px 18px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.sidebar .logo {
  padding-left: 13px;
}
.workspace {
  border: 1px solid var(--line);
  margin: 31px 3px 22px;
  padding: 11px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}
.workspace b {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
}
.workspace small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.workspace-icon {
  background: #f2f3ed;
  padding: 8px;
  border-radius: 4px;
}
.nav-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #9aaca4;
  font-size: 9px;
  font-weight: 650;
  padding: 13px 14px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin: 3px 0;
  border-radius: 5px;
  color: #707c76;
  font-size: 12px;
  font-weight: 550;
}
.nav-item:hover {
  background: #f6f8f6;
}
.nav-item.active {
  color: var(--green);
  background: #eaf1ec;
  font-weight: 700;
}
.nav-item .count {
  margin-left: auto;
  font-size: 10px;
  background: #dbe7dd;
  padding: 2px 6px;
  border-radius: 4px;
}
.side-bottom {
  margin-top: auto;
}
.help-box {
  background: #f7f8f5;
  margin: 18px 4px;
  padding: 14px;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.8;
}
.help-box b {
  font-size: 11px;
}
.help-box a {
  display: block;
  margin-top: 6px;
  color: var(--green);
}
.profile {
  border-top: 1px solid var(--line);
  padding: 17px 7px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eee9e0;
  color: #756b59;
  font-weight: 700;
  flex-shrink: 0;
}
.profile b {
  font-size: 11px;
  display: block;
}
.profile small {
  font-size: 9px;
  color: var(--muted);
}
.profile button {
  margin-left: auto;
  padding: 4px;
}
.main {
  margin-left: 222px;
  min-height: 100vh;
}
.topbar {
  height: 71px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 37px;
  gap: 20px;
}
.breadcrumb {
  color: #8d9691;
  font-size: 11px;
}
.breadcrumb b {
  color: #46554d;
  font-weight: 500;
  margin-left: 14px;
}
.top-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8c958f;
}
.search-box input {
  border: 0;
  background: none;
  width: 180px;
  font-size: 11px;
  padding: 6px;
}
.key {
  font-size: 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 4px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ca9951;
}
.content {
  max-width: 1530px;
  margin: auto;
  padding: 30px 37px 60px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  gap: 20px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 650;
  color: #7f9087;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.page-heading h1 {
  font-size: 25px;
  letter-spacing: -0.8px;
  margin: 0 0 8px;
  font-weight: 650;
}
.page-heading p {
  font-size: 11px;
  color: #8a948f;
  margin: 0;
  line-height: 1.8;
}
.heading-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.date-select {
  font-size: 11px;
  background: white;
  border: 1px solid var(--line);
  padding: 9px 13px;
  border-radius: 5px;
}
.demo-banner {
  font-size: 10px;
  color: #7f8b80;
  margin: -10px 0 18px;
  display: flex;
  justify-content: space-between;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 23px 0;
  margin-bottom: 22px;
}
.kpi {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.kpi:last-child {
  border: 0;
}
.kpi-label {
  color: #7c8980;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kpi-value {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 15px 0 10px;
  white-space: nowrap;
}
.kpi-value .currency {
  font-size: 17px;
  margin-right: 4px;
  font-weight: 400;
  color: #7b867e;
}
.kpi-foot {
  font-size: 9px;
  color: #8d9991;
  display: flex;
  gap: 7px;
}
.kpi-foot .positive {
  background: #eef6ee;
  padding: 2px 4px;
  border-radius: 3px;
}
.revenue-strip {
  border: 1px solid #dce8dd;
  background: #edf4ed;
  border-radius: 7px;
  padding: 15px 21px;
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 27px;
}
.spark {
  background: #dcebdd;
  color: #4b7356;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
}
.revenue-strip b {
  font-size: 12px;
  font-weight: 600;
}
.revenue-strip p {
  font-size: 10px;
  color: #788d7a;
  margin: 5px 0 0;
}
.revenue-strip .strip-value {
  margin-left: auto;
  font-size: 25px;
  color: #2f6040;
  letter-spacing: -1px;
}
.revenue-strip .strip-value small {
  font-size: 11px;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.64fr) minmax(280px, 1fr);
  gap: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 22px 17px;
}
.panel-head h2 {
  font-size: 14px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
}
.panel-head p {
  color: #8d9790;
  font-size: 10px;
  margin: 7px 0 0;
}
.panel-body {
  padding: 0 22px 22px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  background: #edf4ee;
  color: #50705a;
  font-size: 9px;
  padding: 4px 7px;
  font-weight: 550;
  white-space: nowrap;
}
.pill.orange {
  background: #faf1e5;
  color: #b5844e;
}
.pill.red {
  background: #f9ebea;
  color: #b67065;
}
.pill.blue {
  background: #eaf1f8;
  color: #5980a6;
}
.pill.gray {
  background: #f1f3f4;
  color: #818b8d;
}
.ai-label {
  font-size: 9px;
  letter-spacing: 0.7px;
  color: #7d917c;
  border: 1px solid #e4eadf;
  padding: 3px 6px;
  border-radius: 3px;
}
.task {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid #eef1ef;
  align-items: center;
}
.task-icon {
  width: 34px;
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f7f2e8;
  color: #a88046;
  border-radius: 6px;
  flex-shrink: 0;
}
.task:nth-child(2n) .task-icon {
  background: #edf2ee;
  color: #688674;
}
.task h3 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
}
.task p {
  font-size: 9px;
  color: #97a097;
  margin: 0;
  line-height: 1.6;
}
.task-main {
  flex: 1;
  min-width: 0;
}
.task-value {
  font-size: 13px;
  color: #608164;
  white-space: nowrap;
  font-weight: 600;
}
.task-value small {
  font-size: 8px;
  color: #a0aaa1;
  display: block;
  text-align: right;
  margin-bottom: 5px;
  font-weight: 400;
}
.text-link {
  font-size: 10px;
  color: #74897b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.task button {
  border: 0;
  background: none;
  padding: 6px;
  color: #a9b5ac;
}
.chart {
  height: 175px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 20px 8px 24px;
  position: relative;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 41px,
    #f0f2f0 42px,
    #f0f2f0 43px
  );
}
.bar-group {
  height: 100%;
  width: 10%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  position: relative;
}
.bar {
  width: 14px;
  border-radius: 3px 3px 0 0;
  background: #315f4c;
  min-height: 2px;
}
.bar.light {
  background: #ccdccc;
}
.bar-group span {
  position: absolute;
  bottom: -20px;
  font-size: 9px;
  color: #8f9a92;
  white-space: nowrap;
}
.legend {
  font-size: 9px;
  color: #8b968f;
  display: flex;
  gap: 13px;
}
.legend i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #315f4c;
  margin-right: 5px;
  border-radius: 1px;
}
.legend i.light {
  background: #ccdccc;
}
.chart-total {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 10px;
  color: #8b978c;
}
.chart-total strong {
  font-size: 16px;
  color: #354b3b;
  font-weight: 550;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
  font-size: 11px;
}
th {
  color: #8d9991;
  font-size: 9px;
  font-weight: 500;
  background: #fafbf9;
  padding: 12px 21px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 21px;
  border-bottom: 1px solid #eff2ee;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafcf9;
}
td strong {
  font-size: 11px;
  font-weight: 600;
}
td small {
  display: block;
  color: #98a298;
  font-size: 9px;
  margin-top: 5px;
}
.table-name {
  cursor: pointer;
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.small-avatar {
  display: inline-flex;
  width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0ece3;
  color: #887b65;
  font-size: 9px;
  margin-right: 6px;
}
.mini-company {
  display: flex;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid #edf0ec;
  gap: 11px;
}
.company-mark {
  width: 31px;
  height: 31px;
  background: #f2f0eb;
  border: 1px solid #ebe8e2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 650;
  color: #918673;
  border-radius: 5px;
}
.mini-company h3 {
  font-size: 11px;
  font-weight: 600;
  margin: 0 0 5px;
}
.mini-company p {
  font-size: 9px;
  color: #9aa299;
  margin: 0;
}
.mini-company > a:last-child {
  margin-left: auto;
}
.bottom-foot {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #a3ada5;
  padding-top: 4px;
}
.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px;
  overflow-x: auto;
}
.tabs a,
.tabs button {
  border: 0;
  border-radius: 0;
  padding: 12px 2px;
  font-size: 11px;
  background: transparent;
  white-space: nowrap;
  color: #88958c;
}
.tabs .active {
  border-bottom: 2px solid var(--green);
  color: var(--green);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toolbar input {
  flex: 1;
  min-width: 160px;
}
.toolbar select {
  width: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: #6b7b70;
}
.field.full {
  grid-column: 1/-1;
}
input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dfe5df;
  border-radius: 5px;
  background: #fff;
  color: #2d4135;
}
textarea {
  min-height: 105px;
  resize: vertical;
  line-height: 1.8;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #9fbca8;
  outline-offset: 1px;
}
input[type='checkbox'] {
  width: auto;
  accent-color: var(--green);
}
.form-section {
  font-size: 13px;
  font-weight: 650;
  margin: 23px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 24px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.summary-line strong {
  font-size: 15px;
  font-weight: 600;
}
.price-total {
  padding: 20px;
  background: #eff5ef;
  margin-top: 20px;
  border-radius: 6px;
}
.price-total strong {
  font-size: 30px;
  display: block;
  margin-top: 8px;
  letter-spacing: -1px;
}
.callout {
  padding: 15px 17px;
  background: #f3f6f1;
  border-left: 3px solid #9cb295;
  font-size: 11px;
  line-height: 1.9;
  margin: 16px 0;
  color: #65775e;
}
.callout.warning {
  background: #fbf4e9;
  border-color: #c49b57;
  color: #927441;
}
.callout.error {
  background: #fff0ed;
  border-color: #c77865;
  color: #a25846;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.entity-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 23px;
}
.entity-card:hover {
  border-color: #aec2b4;
}
.entity-card h2 {
  font-size: 16px;
  margin: 15px 0 7px;
}
.entity-card p {
  font-size: 11px;
  color: #86968b;
}
.entity-stats {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 17px;
}
.entity-stats b {
  display: block;
  font-size: 18px;
  margin-top: 6px;
  font-weight: 550;
}
.entity-stats small {
  font-size: 9px;
  color: #8d9c91;
}
.entity-card .avatar {
  width: 44px;
  height: 44px;
  font-size: 17px;
}
.empty {
  text-align: center;
  padding: 50px 22px;
  color: #8c9c90;
  font-size: 12px;
  line-height: 2;
}
.empty h3 {
  color: #475d4c;
  font-size: 17px;
  font-weight: 500;
}
.empty button {
  margin-top: 15px;
}
.readable {
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 2;
  color: #4e6253;
}
.ai-output {
  background: #f5f8f3;
  border: 1px solid #dde6d9;
  padding: 20px;
  border-radius: 6px;
  margin: 20px 0;
}
.ai-output h3 {
  font-size: 13px;
}
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.link-list a {
  font-size: 10px;
  padding: 7px 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #4d7356;
}
.chat-area {
  max-width: 900px;
  margin: auto;
}
.chat-welcome {
  padding: 45px;
  text-align: center;
}
.chat-welcome h2 {
  font-size: 25px;
  font-weight: 550;
}
.suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 30px auto;
  max-width: 650px;
}
.suggestions button {
  justify-content: flex-start;
  font-size: 11px;
  font-weight: 400;
  padding: 17px;
}
.message {
  padding: 20px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 18px;
  line-height: 1.9;
}
.message.user {
  margin-left: 15%;
  background: #edf3ed;
}
.message.assistant {
  margin-right: 5%;
}
.message small {
  display: block;
  color: #8ca08d;
  margin-bottom: 10px;
}
.chat-form {
  display: flex;
  gap: 10px;
  position: sticky;
  bottom: 15px;
  background: #f6f7f9;
  padding: 15px 0;
}
.chat-form input {
  padding: 16px;
}
.onboarding {
  max-width: 800px;
  margin: auto;
}
.steps {
  display: flex;
  justify-content: space-between;
  margin: 25px 0 35px;
  gap: 8px;
}
.step {
  flex: 1;
  border-top: 3px solid #dce5dc;
  padding-top: 12px;
  font-size: 10px;
  color: #8a9c8b;
}
.step.active {
  border-color: var(--green);
  color: var(--green);
}
.settings-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 25px;
}
.settings-nav a {
  display: block;
  padding: 13px 15px;
  color: #7c8e80;
  font-size: 12px;
  border-radius: 5px;
}
.settings-nav a.active {
  background: #e8f0e9;
  color: var(--green);
}
.settings-content {
  max-width: 850px;
}
.settings-content .panel-body {
  padding-top: 20px;
}
.audit {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.audit details {
  margin-top: 8px;
  color: #8a998b;
}
.audit pre {
  font-size: 10px;
  white-space: pre-wrap;
  max-height: 200px;
  overflow: auto;
}
.mobile-menu {
  display: none;
}
.mobile-bottom {
  display: none;
}
dialog {
  border: 1px solid #dfe6de;
  border-radius: 10px;
  padding: 28px;
  max-width: 760px;
  width: calc(100% - 32px);
  max-height: 90vh;
  box-shadow: 0 20px 70px #152f2530;
}
dialog::backdrop {
  background: #152a2566;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.dialog-head h2 {
  font-size: 20px;
  margin: 0;
}
.dialog-head button {
  padding: 6px;
  border: 0;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #203f30;
  color: white;
  padding: 14px 22px;
  z-index: 100;
  border-radius: 7px;
  box-shadow: 0 8px 30px #0002;
  display: none;
  font-size: 12px;
  max-width: 90vw;
}
#toast.show {
  display: block;
}
.initial {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 36px;
  font-weight: 700;
}
.initial span {
  font-size: 12px;
  color: #8b9e8e;
  margin-top: 20px;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.auth-story {
  background: #173f34;
  color: white;
  padding: 65px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-story .logo span {
  color: white;
}
.auth-story h1 {
  font-size: 43px;
  line-height: 1.7;
  font-weight: 500;
  letter-spacing: -1px;
}
.auth-story p {
  color: #b0c3b5;
  line-height: 2.1;
  max-width: 400px;
  font-size: 13px;
}
.auth-main {
  padding: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-inner {
  width: 100%;
  max-width: 360px;
}
.auth-inner h2 {
  font-size: 25px;
  font-weight: 550;
}
.auth-inner p {
  color: #8e9c91;
  font-size: 12px;
  line-height: 1.9;
}
.auth-inner form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 30px 0 20px;
}
.auth-inner .primary {
  padding: 13px;
}
.auth-inner .divider {
  text-align: center;
  position: relative;
  margin: 23px 0;
  color: #a0aba0;
  font-size: 10px;
}
.auth-inner .full-button {
  width: 100%;
}
.error-text {
  font-size: 11px;
  color: #ac5e4d;
  white-space: pre-wrap;
}
.landing {
  background: #fcfcf9;
}
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 6vw;
  border-bottom: 1px solid #e7ebe2;
}
.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 12px;
}
.hero {
  padding: 95px 8vw 100px;
  max-width: 1450px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero .eyebrow {
  color: #769879;
  font-size: 11px;
}
.hero h1 {
  font-size: clamp(30px, 4vw, 57px);
  line-height: 1.7;
  font-weight: 550;
  letter-spacing: -2px;
  margin: 24px 0;
}
.hero p {
  font-size: 14px;
  color: #82917f;
  line-height: 2.1;
}
.hero button {
  margin-top: 20px;
  padding: 15px 24px;
}
.hero-visual {
  padding: 32px;
  background: white;
  box-shadow: 0 25px 70px #324d3110;
  border: 1px solid #e4eadd;
  border-radius: 8px;
  transform: rotate(-2deg);
}
.hero-visual h3 {
  font-size: 14px;
}
.hero-visual .hero-price {
  font-size: 40px;
  margin: 24px 0 8px;
  color: #315d3b;
}
.landing-section {
  padding: 75px 8vw;
  max-width: 1450px;
  margin: auto;
}
.landing-section h2 {
  font-size: 32px;
  font-weight: 550;
  line-height: 1.7;
  letter-spacing: -1px;
  margin-top: 10px;
}
.landing-section > p {
  font-size: 13px;
  color: #8a9987;
  line-height: 2;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 45px;
}
.feature {
  padding: 30px 0;
  border-top: 1px solid #cddac9;
}
.feature .number {
  font-size: 11px;
  color: #8fa184;
  letter-spacing: 2px;
}
.feature h3 {
  font-size: 19px;
  font-weight: 550;
}
.feature p {
  color: #879880;
  font-size: 12px;
  line-height: 2;
}
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 40px;
}
.plan {
  background: white;
  border: 1px solid var(--line);
  padding: 25px;
  border-radius: 7px;
  position: relative;
}
.plan.featured {
  border: 2px solid #467752;
}
.plan h3 {
  font-size: 19px;
  font-weight: 550;
}
.plan .price {
  font-size: 26px;
  margin: 24px 0;
}
.plan small {
  font-size: 10px;
  color: #8a9884;
}
.plan ul {
  list-style: none;
  padding: 0;
  font-size: 11px;
  line-height: 2.7;
  color: #788b73;
}
.plan a {
  display: flex;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
}
.faq {
  max-width: 850px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq summary {
  cursor: pointer;
  font-size: 14px;
}
.faq p {
  color: #88957f;
  font-size: 12px;
  line-height: 2;
}
.landing-footer {
  border-top: 1px solid var(--line);
  padding: 30px 8vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9ba491;
  font-size: 10px;
}
.print-document {
  background: white;
  padding: 40px;
  max-width: 850px;
  margin: auto;
}
.print-document h1 {
  font-size: 30px;
}
.print-document .bill-total {
  font-size: 30px;
  border-bottom: 2px solid #174c42;
  padding: 20px 0;
  margin: 35px 0;
}
.scroll-area {
  max-height: 440px;
  overflow: auto;
}
.file-list a {
  display: block;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
}
.table-wrap input {
  width: 120px;
}
.compact {
  max-width: 680px;
}
@media (min-width: 1550px) {
  .content {
    padding-top: 40px;
  }
  .kpi-value {
    font-size: 35px;
  }
  .task {
    padding: 20px 0;
  }
  .chart {
    height: 200px;
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 195px;
    padding-inline: 12px;
  }
  .main {
    margin-left: 195px;
  }
  .content {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .kpi {
    padding: 0 16px;
  }
  .kpi-value {
    font-size: 24px;
  }
  .grid-main {
    grid-template-columns: 1.4fr 1fr;
    gap: 17px;
  }
  .task-value {
    font-size: 11px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: 30px;
  }
  .pricing {
    grid-template-columns: 1fr 1fr;
  }
  .panel-head {
    padding: 18px;
  }
  .panel-body {
    padding: 0 18px 18px;
  }
  .search-box input {
    width: 130px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 180px;
  }
  .main {
    margin-left: 180px;
  }
  .grid-main {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 24px;
  }
  .kpi:nth-child(2) {
    border: 0;
  }
  .kpi-value {
    font-size: 29px;
  }
  .heading-actions .date-select {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
  }
  .search-box {
    display: none;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-nav {
    display: flex;
    overflow: auto;
  }
  .settings-nav a {
    white-space: nowrap;
  }
  .auth-story {
    padding: 35px;
  }
  .auth-story h1 {
    font-size: 30px;
  }
  .auth-main {
    padding: 30px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    max-width: 500px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .landing-nav-links > a {
    display: none;
  }
  .hero h1 {
    font-size: 44px;
  }
  .revenue-strip .strip-value {
    font-size: 22px;
  }
}
@media (max-width: 600px) {
  .sidebar {
    display: none;
    width: 240px;
    box-shadow: 0 0 0 100vw #142a2555;
  }
  .sidebar.open {
    display: flex;
  }
  .main {
    margin-left: 0;
  }
  .topbar {
    height: 58px;
    padding: 0 18px;
  }
  .mobile-menu {
    display: inline-flex;
    padding: 5px;
    background: transparent;
    border: 0;
  }
  .breadcrumb {
    display: flex;
    align-items: center;
    font-size: 10px;
  }
  .breadcrumb b {
    margin-left: 5px;
  }
  .content {
    padding: 23px 17px 90px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .page-heading p {
    font-size: 10px;
    max-width: 220px;
  }
  .heading-actions button {
    font-size: 10px;
    padding: 9px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .kpi-grid {
    padding: 20px 0;
    row-gap: 25px;
  }
  .kpi {
    padding: 0 16px;
  }
  .kpi-value {
    font-size: 26px;
  }
  .kpi-label {
    font-size: 10px;
  }
  .kpi-foot {
    font-size: 8px;
  }
  .revenue-strip {
    padding: 14px 12px;
    gap: 9px;
    flex-wrap: wrap;
  }
  .revenue-strip b {
    font-size: 10px;
  }
  .revenue-strip p {
    font-size: 9px;
    max-width: 235px;
  }
  .revenue-strip .strip-value {
    font-size: 22px;
    margin-left: 43px;
  }
  .spark {
    width: 28px;
    height: 28px;
  }
  .panel-head h2 {
    font-size: 13px;
  }
  .task-value {
    font-size: 10px;
  }
  .task h3 {
    font-size: 10px;
  }
  .task p {
    font-size: 8px;
  }
  .task {
    gap: 8px;
  }
  .task-icon {
    width: 28px;
    height: 28px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .mobile-bottom {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #ffffffed;
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    justify-content: space-around;
    z-index: 25;
    padding: 9px 5px max(8px, env(safe-area-inset-bottom));
  }
  .mobile-bottom a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 8px;
    color: #839285;
  }
  .mobile-bottom a.active {
    color: var(--green);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .demo-banner {
    font-size: 8px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 24px;
    min-height: 170px;
  }
  .auth-story h1 {
    font-size: 23px;
    margin: 20px 0;
  }
  .auth-story p,
  .auth-story > small {
    display: none;
  }
  .auth-main {
    padding: 25px;
  }
  .landing-nav {
    padding: 20px;
  }
  .landing-nav .logo {
    font-size: 21px;
  }
  .landing-nav-links {
    gap: 10px;
  }
  .hero {
    padding: 55px 25px;
  }
  .hero h1 {
    font-size: 35px;
  }
  .hero p {
    font-size: 12px;
  }
  .hero-visual {
    padding: 23px;
  }
  .landing-section {
    padding: 45px 25px;
  }
  .landing-section h2 {
    font-size: 26px;
  }
  .pricing {
    grid-template-columns: 1fr;
  }
  .landing-footer {
    padding: 25px;
    gap: 20px;
  }
  .chat-welcome {
    padding: 15px 0;
  }
  .chat-welcome h2 {
    font-size: 22px;
  }
  .suggestions {
    grid-template-columns: 1fr;
  }
  .suggestions button {
    font-size: 11px;
  }
  .message {
    padding: 15px;
  }
  .steps {
    flex-wrap: wrap;
  }
  .step {
    min-width: 28%;
  }
  .bottom-foot {
    font-size: 8px;
  }
  .settings-nav a {
    font-size: 10px;
    padding: 10px;
  }
  .detail-grid {
    gap: 0;
  }
  .summary-line {
    font-size: 10px;
  }
  .chat-form {
    bottom: 60px;
  }
  #toast {
    bottom: 80px;
  }
  td {
    padding: 14px;
  }
  th {
    padding: 12px 14px;
  }
  .print-document {
    padding: 20px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .mobile-bottom,
  .heading-actions,
  button,
  .demo-banner {
    display: none !important;
  }
  .main {
    margin: 0;
  }
  .content {
    padding: 0;
  }
  .print-document {
    padding: 20px;
  }
  .panel {
    break-inside: avoid;
  }
  body {
    background: white;
  }
}

.grid-main > div,
.detail-grid > div,
.settings-content {
  min-width: 0;
}
.panel {
  min-width: 0;
}
.sidebar {
  overflow-y: auto;
}
.settings-content .pricing {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 600px) {
  .grid-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .task-main {
    min-width: 0;
  }
  .settings-content .pricing {
    grid-template-columns: 1fr;
  }
  .task p {
    overflow-wrap: anywhere;
  }
  .task h3 {
    overflow-wrap: anywhere;
  }
  .task-value {
    max-width: 85px;
  }
  .kpi-value {
    font-size: clamp(20px, 6.5vw, 26px);
  }
}

/* 業務の状況（件数・回収）。カードを増やさず罫線で区切る */
.ops-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: -8px 0 22px;
}
.ops-item {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ops-item:last-child {
  border-right: 0;
}
.ops-item small {
  color: var(--muted);
  font-size: 10.5px;
}
.ops-item b {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ops-item:hover b {
  color: var(--green);
  text-decoration: underline;
}
.negative {
  color: #a4462f;
}
.score {
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  margin-left: auto;
  padding: 0 8px;
}
.score-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}
.score-line b {
  font-size: 26px;
  color: var(--green);
}
.reasons {
  list-style: none;
  padding: 0;
  margin: 12px 0 6px;
  border-top: 1px solid var(--line);
}
.reasons li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
}
.reasons li span {
  color: var(--green);
  font-weight: 600;
  min-width: 30px;
}
.small {
  font-size: 11px;
}
.attributed {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  background: white;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 22px;
}
.attributed small {
  color: var(--muted);
  font-size: 11px;
}
.attributed strong {
  display: block;
  font-size: 34px;
  letter-spacing: -1px;
  margin: 10px 0;
  color: var(--green);
}
.attributed p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
  margin: 0;
}
.option {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.option small {
  color: var(--muted);
  display: block;
  margin-top: -4px;
}
.option.warn small {
  color: #a4462f;
}
.option.warn small::before {
  content: '⚠ ';
}
.chart.small {
  height: 110px;
}
.chart.small .bar-group {
  width: 7%;
}
.chart.small .bar {
  width: 10px;
}
.notice-table select {
  min-width: 0;
  width: 100%;
}
@media (max-width: 1180px) {
  .ops-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ops-item:nth-child(4n) {
    border-right: 0;
  }
}
@media (max-width: 600px) {
  .ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-item:nth-child(2n) {
    border-right: 0;
  }
  .attributed {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .attributed strong {
    font-size: 28px;
  }
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: white;
  border: 1px solid #d5dbd8;
  border-radius: 5px;
  padding: 11px 16px;
  font-weight: 600;
}
.google-button:hover {
  background: #f6f7f9;
}
