/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #f6f3ee;
  --panel: #ffffff;
  --ink: #1b1814;
  --ink-2: #4a443d;
  --muted: #8b837a;
  --line: #e7e1d8;
  --line-2: #f0ebe4;
  --accent: #e8590c;
  --accent-ink: #ffffff;
  --accent-soft: #fdeee4;
  --good: #1f8a4c;
  --good-soft: #e5f4ea;
  --warn: #b7791f;
  --warn-soft: #fbf1dd;
  --bad: #c0392b;
  --bad-soft: #fbe7e4;
  --info: #2f6fb3;
  --info-soft: #e6eff9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(27, 24, 20, 0.04), 0 4px 16px rgba(27, 24, 20, 0.04);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }

/* Shell */
.shell { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: -webkit-sticky; position: sticky; top: 0; height: 100vh; background: var(--bg); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 20px; font-size: 20px; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--serif); font-size: 19px; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.nav a:hover { background: var(--line-2); color: var(--ink); }
.nav a.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.nav .count { background: var(--accent); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 7px; line-height: 18px; }
.side-foot { margin-top: auto; padding: 10px; font-size: 12px; color: var(--muted); }
.main { padding: 28px 36px 60px; max-width: 1240px; width: 100%; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; display: inline-block; }
.crumb:hover { color: var(--ink); }

/* Surfaces */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card h2 { font-size: 15px; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.grid { display: grid; grid-gap: 16px; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mt { margin-top: 16px; }
.mt2 { margin-top: 28px; }

/* Stats */
.stat { padding: 16px 18px; }
.stat .label { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat .value { font-size: 26px; font-weight: 600; margin-top: 4px; letter-spacing: -0.02em; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.bar { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }

/* Controls */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); padding: 8px 14px; border-radius: 8px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #d6cec3; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: #000; }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--line-2); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field > small { color: var(--muted); font-size: 12px; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 9px 11px; outline: none; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(27,24,20,.06); }
.textarea { resize: vertical; min-height: 80px; line-height: 1.55; }

/* Chips / tags input */
.chips { display: flex; flex-wrap: wrap; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: var(--panel); min-height: 40px; }
.chips:focus-within { border-color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--line-2); border-radius: 6px; padding: 3px 8px; font-size: 13px; }
.chip button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); }
.chips input { border: 0; outline: none; flex: 1 1; min-width: 120px; padding: 3px; background: transparent; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.suggest button { border: 1px dashed var(--line); background: none; border-radius: 6px; font-size: 12px; padding: 2px 8px; color: var(--muted); cursor: pointer; }
.suggest button:hover { color: var(--ink); border-color: var(--muted); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.dot { width: 7px; height: 7px; border-radius: 99px; background: currentColor; display: inline-block; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fcfbf9; }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click:hover td { background: #fcfbf9; cursor: pointer; }
.num { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; text-align: right; }
.ell { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button, .tabs a { border: 0; background: none; padding: 10px 12px; cursor: pointer; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs .on { color: var(--ink); border-bottom-color: var(--ink); }

.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); font-family: var(--serif); font-weight: 400; font-size: 24px; margin-bottom: 6px; }
.notice { border: 1px solid var(--warn-soft); background: #fffaf0; color: #6b4a12; border-radius: var(--radius); padding: 12px 16px; font-size: 13px; }
.notice.bad { background: var(--bad-soft); color: var(--bad); border-color: #f3cfc9; }
.notice.good { background: var(--good-soft); color: var(--good); border-color: #cde9d6; }

/* Pipeline */
.pipe { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); grid-gap: 0; gap: 0; }
.pipe .step { padding: 18px 20px; border-right: 1px solid var(--line-2); }
.pipe .step:last-child { border-right: 0; }
.pipe .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; margin-right: 8px; }
.pipe h3 { font-size: 14px; display: flex; align-items: center; }
.pipe p { margin: 6px 0 12px; color: var(--muted); font-size: 13px; }
.log { font-size: 12px; color: var(--muted); margin-top: 8px; min-height: 18px; }

/* Editor */
.editor { display: grid; grid-template-columns: minmax(360px, 460px) 1fr; grid-gap: 20px; gap: 20px; align-items: start; }
.blocks { display: flex; flex-direction: column; gap: 8px; }
.block { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.block.sel { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27,24,20,.06); }
.block-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; }
.block-head .kind { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; width: 64px; }
.block-head .sum { flex: 1 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.block-head .tools { display: flex; gap: 2px; opacity: .4; }
.block:hover .tools, .block.sel .tools { opacity: 1; }
.icon-btn { border: 0; background: none; width: 26px; height: 26px; border-radius: 6px; cursor: pointer; color: var(--ink-2); display: grid; place-items: center; }
.icon-btn:hover { background: var(--line-2); }
.block-body { padding: 4px 12px 14px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line-2); }
.add-row { display: flex; flex-wrap: wrap; gap: 6px; }
.add-row button { border: 1px dashed var(--line); background: var(--panel); border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; color: var(--ink-2); }
.add-row button:hover { border-color: var(--ink-2); color: var(--ink); }
.preview-wrap { position: -webkit-sticky; position: sticky; top: 20px; }
.preview-frame { width: 100%; height: calc(100vh - 150px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.inbox-line { padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.inbox-line .from { font-weight: 600; }
.inbox-line .subj { font-weight: 500; }
.inbox-line .pre { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--panel); padding: 6px 12px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--ink); color: var(--bg); }

/* Replies */
.split { display: grid; grid-template-columns: 360px 1fr; min-height: 560px; }
.split .list { border-right: 1px solid var(--line-2); overflow-y: auto; max-height: 72vh; }
.msg { padding: 14px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.msg:hover { background: #fcfbf9; }
.msg.on { background: var(--accent-soft); }
.msg.unread .who::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 99px; background: var(--accent); margin-right: 7px; vertical-align: middle; }
.msg .who { font-weight: 600; }
.msg .s { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader { padding: 24px 28px; }
.reader pre { white-space: pre-wrap; font-family: var(--sans); font-size: 14px; line-height: 1.6; margin: 0; }

/* Login */
.center { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login { width: 100%; max-width: 380px; }

.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 99px; display: inline-block; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-foot { display: none; }
  .brand { padding-bottom: 4px; }
  .nav { display: flex; flex-wrap: wrap; }
  .main { padding: 20px 16px 48px; }
  .g3, .g4, .g6 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g2, .editor, .split, .pipe { grid-template-columns: 1fr; }
  .pipe .step { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .preview-frame { height: 70vh; }
}

