:root {
  --paper:#fffefa;
  --base:#faf9f6;
  --sidebar:#f2efe8;
  --ink:#302b26;
  --muted:#847b70;
  --line:#e5e0d6;
  --brown:#66513c;
  --deep:#42372c;
  --serif:'Cormorant Garamond',Georgia,serif;
  --sans:'DM Sans',system-ui,sans-serif;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--base);
  font-synthesis:none
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  min-height:100vh;
  font-size:16px
}

button,input,select,textarea {
  font:inherit;
  color:inherit
}

button,a {
  touch-action:manipulation
}

button {
  cursor:pointer
}

button:disabled {
  opacity:.4;
  cursor:default
}

a {
  color:inherit;
  text-decoration:none
}

img {
  display:block;
  max-width:100%
}

h1,h2,h3,p {
  margin:0
}

h1,h2,h3 {
  font-family:var(--serif);
  font-weight:500;
  line-height:1.05;
  letter-spacing:-.035em
}

h1 {
  font-size:clamp(40px,4.4vw,68px)
}

h2 {
  font-size:36px
}

h3 {
  font-size:28px
}

h1 em,h2 em {
  color:#927b61;
  font-weight:400
}

p {
  line-height:1.65
}

small {
  font-size:13px
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:2px solid #9b7753;
  outline-offset:3px
}

input:not([type=checkbox]):not([type=file]),textarea,select {
  width:100%;
  min-width:0;
  background:#fffefa;
  border:1px solid #ded8cd;
  border-radius:5px;
  padding:11px 12px;
  font-size:14px;
  line-height:1.5;
  transition:border-color .15s
}

input:hover,textarea:hover,select:hover {
  border-color:#bdac95
}

textarea {
  resize:vertical
}

select {
  appearance:none;
  padding-right:30px;
  background-image:linear-gradient(45deg,transparent 50%,#87755d 50%),linear-gradient(135deg,#87755d 50%,transparent 50%);
  background-size:4px 4px;
  background-repeat:no-repeat;
  background-position:calc(100% - 15px) 50%,calc(100% - 11px) 50%
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:42px;
  border:1px solid #d8cfc1;
  background:#fffefa;
  border-radius:5px;
  padding:10px 17px;
  font-size:14px;
  font-weight:500;
  line-height:1.3;
  white-space:nowrap;
  transition:background .15s,box-shadow .15s
}

.btn.primary {
  background:#514535;
  border-color:#514535;
  color:#fffaf1;
  box-shadow:0 2px 3px #312b2010
}

.btn.primary:hover {
  background:#6a5842
}

.btn.secondary:hover {
  background:#f0eade;
  border-color:#b9a991
}

.btn.text {
  border-color:transparent;
  background:transparent;
  padding:6px 2px;
  color:#796349;
  min-height:36px
}

.btn.text:hover {
  text-decoration:underline;
  text-underline-offset:4px
}

.btn.icon-only {
  border:0;
  background:transparent;
  width:36px;
  min-height:36px;
  padding:5px
}

.btn.icon-only:hover {
  background:#eae4d8
}

.btn.danger {
  color:#a3503d
}

.ui-icon {
  font-family:system-ui,sans-serif;
  font-size:19px;
  line-height:1;
  display:inline-block
}

.brand {
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  width:max-content;
  max-width:100%;
  text-align:center
}

.brand span {
  font:500 28px/1.1 var(--serif);
  letter-spacing:-.04em
}

.brand small {
  font:400 8px/1.7 var(--sans);
  letter-spacing:.43em;
  padding-left:.43em;
  margin-top:6px
}

.workspace {
  display:grid;
  grid-template-columns:214px minmax(0,1fr);
  min-height:100vh
}

.sidebar {
  background:var(--sidebar);
  border-right:1px solid var(--line);
  padding:38px 20px 20px;
  display:flex;
  flex-direction:column;
  position:sticky;
  top:0;
  height:100vh
}

.sidebar .brand {
  margin:2px auto 56px
}

.nav-caption {
  font-size:9px;
  letter-spacing:.17em;
  color:#a39a8c;
  margin:0 12px 15px;
  font-weight:500
}

.sidebar nav {
  display:flex;
  flex-direction:column;
  gap:5px
}

.nav-item {
  padding:13px 13px;
  min-height:46px;
  border:0;
  background:transparent;
  border-radius:5px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  text-align:left;
  font-size:14px;
  color:#83776a
}

.nav-item:hover {
  background:#eae4d8;
  color:var(--ink)
}

.nav-item.active {
  background:#e5ddcf;
  color:#4f422f;
  font-weight:600
}

.nav-item small {
  font-size:11px;
  display:grid;
  place-items:center;
  background:#f7f4ee;
  min-width:22px;
  height:22px;
  border-radius:4px;
  color:#7b6b56
}

.sidebar-footer {
  margin-top:auto;
  display:flex;
  align-items:center;
  gap:10px;
  border-top:1px solid #e2dbcf;
  padding:21px 0 0;
  min-width:0
}

.profile-avatar {
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  background:#d8ccb8;
  border-radius:50%;
  font:500 11px var(--sans);
  flex-shrink:0
}

.sidebar-footer strong {
  font-size:12px;
  font-weight:500;
  display:block;
  max-width:105px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.sidebar-footer small {
  font-size:10px;
  color:#9a8e80
}

.sidebar-footer a {
  margin-left:auto;
  color:#93816b;
  font-size:20px
}

.workspace-main {
  min-width:0
}

.topbar {
  height:64px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 42px;
  background:#fcfbf8
}

.breadcrumb {
  display:flex;
  align-items:center;
  gap:14px;
  font-size:12px;
  color:#9b9184;
  min-width:0
}

.breadcrumb strong {
  color:#695c4d;
  font-weight:500;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.topbar-brand {
  font:italic 16px var(--serif);
  color:#aa9b88
}

.mobile-only {
  display:none
}

.dashboard {
  padding:47px 44px 22px;
  max-width:1600px;
  margin:auto
}

.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  margin-bottom:36px
}

.page-heading>.btn {
  align-self:flex-start;
  margin-top:29px
}

.eyebrow {
  font-size:10px;
  letter-spacing:.17em;
  font-weight:500;
  color:#a18e76;
  line-height:1.5;
  margin-bottom:14px
}

.subtitle {
  color:#8c8174;
  font-size:14px;
  margin-top:15px
}

.overview {
  display:grid;
  grid-template-columns:1fr 1fr 1.25fr 1.35fr;
  margin:37px 0 40px;
  padding:23px 0;
  border-top:1px solid #e1dacd;
  border-bottom:1px solid #e1dacd
}

.overview-stat {
  padding:0 26px;
  border-right:1px solid var(--line)
}

.overview-stat:first-child {
  padding-left:0
}

.overview-stat>span,.overview-note>span {
  font-size:12px;
  color:#948777;
  display:block
}

.overview-stat strong {
  font-family:var(--serif);
  font-size:47px;
  line-height:1.2;
  font-weight:500;
  letter-spacing:-.03em;
  display:block;
  margin-top:7px
}

.overview-stat strong.money {
  font-size:35px;
  padding-top:6px
}

.overview-note {
  padding-left:29px
}

.overview-note>span {
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:9px;
  margin:3px 0 9px
}

.overview-note p {
  font:italic 21px/1.25 var(--serif);
  color:#9a866d
}

.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin:0 0 23px
}

.section-title {
  display:flex;
  align-items:center;
  gap:12px
}

.section-title h2 {
  font-size:31px;
  white-space:nowrap
}

.section-title>span {
  font:500 11px var(--sans);
  color:#8a7a64;
  border:1px solid #dfd5c5;
  border-radius:30px;
  padding:3px 7px
}

.list-tools {
  display:flex;
  align-items:center;
  gap:11px
}

.search {
  display:flex;
  gap:6px;
  align-items:center;
  border:1px solid #e1dcd2;
  background:#fffefa;
  border-radius:5px;
  padding:0 10px
}

.search .ui-icon {
  color:#a09483
}

.search input#search {
  border:0;
  background:transparent;
  padding:10px 0;
  width:194px;
  font-size:12px
}

.list-tools select {
  font-size:12px;
  width:142px;
  padding-top:10px;
  padding-bottom:10px
}

.list-tools .btn {
  font-size:12px
}

.proposal-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:23px
}

.proposal-card {
  border:1px solid #e7dfd2;
  border-radius:8px;
  background:#fffefa;
  overflow:hidden;
  transition:box-shadow .2s,transform .2s
}

.proposal-card:hover {
  box-shadow:0 10px 28px #4d3d2720;
  transform:translateY(-3px)
}

.proposal-cover {
  border:0;
  padding:0;
  width:100%;
  height:220px;
  position:relative;
  overflow:hidden;
  display:block;
  background:#e4d8c4;
  text-align:left
}

.proposal-cover>img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s
}

.proposal-cover:hover>img {
  transform:scale(1.035)
}

.cover-badge {
  position:absolute;
  top:14px;
  left:14px
}

.badge {
  display:inline-flex;
  align-items:center;
  min-height:23px;
  padding:4px 8px;
  border-radius:3px;
  font-size:10px;
  line-height:1;
  font-weight:500;
  color:#776b58;
  background:#efeadf;
  white-space:nowrap
}

.badge.green {
  color:#54705a;
  background:#e6eee1
}

.badge.amber {
  color:#94733d;
  background:#f4ecd4
}

.badge.blue {
  color:#58727b;
  background:#e6eff0
}

.cover-badge .badge {
  background:#fffaf0e8;
  backdrop-filter:blur(8px)
}

.proposal-cover.typographic {
  background:linear-gradient(130deg,#e1d4be,#ebe3d5 65%,#d7c6ac);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  border-bottom:1px solid #d9c9af
}

.cover-monogram {
  font:300 94px/1 var(--serif);
  color:#9d8a6d;
  letter-spacing:-.12em;
  padding-right:.12em
}

.cover-type {
  margin-top:9px;
  font:italic 17px var(--serif);
  color:#85735c
}

.card-body {
  padding:20px 20px 15px
}

.card-type {
  font-size:9px;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:#a18f76
}

.card-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:8px 0 4px
}

.card-title>button:first-child {
  padding:0;
  border:0;
  text-align:left;
  background:transparent
}

.card-title h3 {
  font-size:30px;
  overflow-wrap:anywhere
}

.card-body>p {
  font-size:12px;
  color:#a49785
}

.card-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid #eee7dc;
  margin-top:20px;
  padding-top:14px;
  gap:9px
}

.card-bottom strong {
  font-size:13px;
  font-weight:500;
  color:#6c5940
}

.card-bottom>span {
  font-size:10px;
  color:#aa9c89
}

.create-card {
  border:1px dashed #d3c7b4;
  border-radius:8px;
  padding:36px 20px;
  background:#f7f4ec;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:360px;
  text-align:center;
  color:#86775e
}

.create-card:hover {
  background:#eee8dc
}

.create-symbol {
  border:1px solid #d3c7b4;
  border-radius:50%;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  font-size:23px;
  margin-bottom:20px
}

.create-card h3 {
  font-size:28px
}

.create-card p {
  font-size:12px;
  line-height:1.65;
  color:#a2947d;
  margin:12px 0 24px
}

.create-card>span:last-child {
  font-size:12px;
  text-decoration:underline;
  text-underline-offset:5px
}

.workspace-footer {
  display:flex;
  justify-content:space-between;
  gap:10px;
  border-top:1px solid var(--line);
  margin-top:48px;
  padding:18px 0 0;
  font-size:10px;
  color:#b1a38f
}

.empty-note {
  color:var(--muted);
  font-size:14px;
  padding:16px 0
}

.model-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px
}

.model-card {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fffefa;
  padding:25px;
  min-height:260px;
  transition:border-color .15s
}

.model-card:hover {
  border-color:#a18b6a;
  background:#f7f1e5
}

.model-mark {
  font:italic 58px var(--serif);
  color:#b39c79;
  margin-bottom:24px
}

.model-card h3 {
  font-size:29px
}

.model-card p {
  color:#9b8c75;
  font-size:13px;
  margin:10px 0 24px
}

.model-bottom {
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  margin-top:auto;
  padding-top:15px;
  border-top:1px solid var(--line)
}

.editor-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:24px 28px 22px;
  background:#fcfbf8
}

.editor-project {
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0
}

.editor-project h1 {
  font-size:33px;
  line-height:1.1
}

.editor-project .eyebrow {
  font-size:9px;
  margin-bottom:5px
}

.back-project {
  width:28px;
  height:36px;
  background:none;
  border:0;
  padding:0;
  color:#a09078
}

.back-project .ui-icon {
  font-size:29px
}

.editor-header-actions {
  display:flex;
  align-items:center;
  gap:9px
}

.save-status {
  font-size:11px;
  color:#9c9785;
  margin-right:7px;
  white-space:nowrap
}

.save-status.has-error {
  color:#a34e3a
}

.editor-tabs {
  display:flex;
  gap:29px;
  padding:0 30px;
  border-bottom:1px solid #e2dacf;
  background:#fcfbf8
}

.editor-tabs button {
  font-size:13px;
  padding:0 0 16px;
  border:0;
  border-bottom:2px solid transparent;
  background:none;
  color:#9b8a74
}

.editor-tabs button.active {
  color:#665139;
  border-color:#7d6344;
  font-weight:500
}

.save-error {
  padding:11px 25px;
  background:#fbe9dc;
  color:#8d4a2b;
  font-size:13px
}

.save-error[hidden] {
  display:none
}

.save-error .btn {
  margin-left:12px
}

.page-editor {
  display:grid;
  grid-template-columns:184px minmax(250px,1fr) 286px;
  align-items:start;
  min-height:calc(100vh - 210px)
}

.page-outline {
  padding:24px 12px;
  border-right:1px solid var(--line);
  align-self:stretch;
  background:#f8f6f1
}

.outline-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 9px 18px
}

.outline-heading strong {
  font-size:13px;
  font-weight:500
}

.outline-heading>span {
  font-size:11px;
  color:#aa9a81
}

.outline-list {
  display:flex;
  flex-direction:column;
  gap:5px
}

.outline-page {
  display:flex;
  gap:10px;
  align-items:center;
  background:none;
  border:1px solid transparent;
  padding:10px 8px;
  border-radius:5px;
  min-height:60px;
  min-width:0;
  text-align:left
}

.outline-page:hover {
  background:#eee8dc
}

.outline-page.selected {
  background:#eae1d0;
  border-color:#dbccb5
}

.outline-number {
  font:500 11px var(--sans);
  width:25px;
  height:32px;
  display:grid;
  place-items:center;
  border:1px solid #d3c5af;
  background:#fdfaf3;
  border-radius:2px;
  color:#9c8465;
  flex-shrink:0
}

.outline-label {
  font-size:12px;
  font-weight:500;
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.outline-label small {
  display:block;
  color:#aa967a;
  font-size:10px;
  font-weight:400;
  margin-top:5px
}

.disabled-page {
  opacity:.48
}

.btn.outline-add {
  width:100%;
  border:1px dashed #cdbda5;
  color:#8c775a;
  font-size:12px;
  margin-top:16px;
  background:transparent;
  padding:9px 4px
}

.editor-canvas {
  background:radial-gradient(ellipse at 50% 20%,#f0ece4,#e5dfd3);
  padding:23px clamp(14px,2.8vw,40px) 20px;
  align-self:stretch;
  min-width:0;
  min-height:700px
}

.canvas-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:9px;
  color:#a1947e;
  letter-spacing:.1em;
  margin-bottom:23px;
  gap:10px
}

.canvas-top>span:last-child {
  letter-spacing:0
}

.page-preview {
  box-shadow:0 9px 22px #5f492731,0 1px 3px #5f492721;
  width:100%;
  max-width:490px;
  margin:0 auto;
  background:#fffaf0;
  overflow:hidden;
  pointer-events:none;
  border-radius:2px
}

.page-preview .folio-page {
  width:100%;
  height:auto;
  min-height:600px;
  max-height:none;
  border-radius:0!important;
  font-size:14px
}

.page-preview .folio-page h1 {
  font-size:48px
}

.page-preview .folio-page h2 {
  font-size:40px
}

.canvas-controls {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:18px;
  margin-top:20px;
  color:#927e60;
  font-size:11px
}

.canvas-controls .btn {
  border:1px solid #d4c7b3;
  background:#eee7da;
  border-radius:50%;
  width:30px;
  min-height:30px
}

.canvas-controls .ui-icon {
  font-size:23px
}

.inspector {
  padding:24px 22px;
  background:#fcfbf7;
  border-left:1px solid var(--line);
  align-self:stretch;
  min-width:0
}

.inspector-heading {
  margin-bottom:24px
}

.inspector-heading h2 {
  font-size:27px;
  margin-bottom:7px
}

.inspector-heading>span {
  font-size:8px;
  letter-spacing:.15em;
  color:#b09c7e
}

.field {
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-bottom:18px;
  min-width:0
}

.field>span,.field-label {
  font-size:12px;
  color:#7c6a52;
  font-weight:500
}

.field-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 18px
}

.inspector .field>span {
  font-size:11px
}

.inspector input:not([type=checkbox]),.inspector textarea,.inspector select {
  font-size:12px;
  padding:9px 10px;
  background:#fffefa
}

.inspector textarea {
  line-height:1.7
}

.image-picker {
  margin-bottom:18px
}

.image-picker .field-label {
  display:block;
  margin-bottom:7px
}

.image-select {
  display:block;
  width:100%;
  height:130px;
  padding:0;
  border:1px dashed #cdbb9d;
  border-radius:5px;
  background:#f1e9db;
  overflow:hidden;
  text-align:center;
  color:#9e8969;
  font-size:12px
}

.image-select img {
  height:100%;
  width:100%;
  object-fit:cover
}

.image-select>span {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px
}

.image-picker>div {
  display:flex;
  justify-content:space-between
}

.image-picker .btn {
  font-size:11px
}

.gallery-edit {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-bottom:10px
}

.gallery-edit>div {
  position:relative;
  width:58px;
  height:52px
}

.gallery-edit img {
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:3px
}

.btn.mini-remove {
  position:absolute;
  right:2px;
  top:2px;
  border:0;
  background:#fff9efdd;
  border-radius:50%;
  width:19px;
  min-height:19px;
  padding:0;
  font-size:15px
}

.page-options {
  border-top:1px solid var(--line);
  padding-top:23px;
  margin-top:23px
}

.page-options>.btn.text {
  font-size:11px;
  margin-right:9px
}

.page-move {
  display:flex;
  gap:8px;
  margin-top:15px
}

.page-move .btn {
  font-size:11px;
  flex:1;
  min-height:33px
}

.switch-field {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:#8c795d
}

.switch-field input {
  accent-color:#756045
}

.helper {
  font-size:13px;
  line-height:1.7;
  color:#95866f;
  margin-bottom:17px
}

.inspector .helper {
  font-size:12px
}

.document-editor {
  display:grid;
  grid-template-columns:minmax(0,700px) minmax(190px,280px);
  gap:60px;
  padding:40px;
  max-width:1200px;
  margin:auto
}

.form-section {
  border:1px solid var(--line);
  background:#fffefa;
  border-radius:6px;
  padding:30px
}

.form-section h2 {
  margin-bottom:28px
}

.form-section .eyebrow {
  margin-bottom:14px
}

.context-note {
  align-self:start;
  margin-top:18px;
  padding-left:25px;
  border-left:1px solid #d8c5a7
}

.context-note>span {
  font-size:9px;
  letter-spacing:.15em;
  color:#a5906f
}

.context-note h3 {
  font-size:32px;
  line-height:1.15;
  margin:16px 0;
  color:#8a7051
}

.context-note p {
  font-size:13px;
  color:#a28f73;
  margin-bottom:12px
}

.budget-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 250px;
  gap:30px;
  padding:35px 30px
}

.budget-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-bottom:26px
}

.budget-heading h2 {
  font-size:36px
}

.budget-heading .eyebrow {
  margin-bottom:9px
}

.budget-heading .btn {
  font-size:12px
}

.budget-table {
  margin-bottom:15px
}

.budget-head,.budget-row {
  display:grid;
  grid-template-columns:minmax(140px,1.7fr) minmax(55px,.55fr) minmax(80px,.7fr) minmax(75px,.8fr) minmax(75px,.75fr) 25px;
  gap:8px;
  align-items:center;
  margin-bottom:10px
}

.budget-head {
  font-size:10px;
  color:#9e8c72;
  padding:0 8px
}

.budget-row {
  background:#fffefa;
  border:1px solid var(--line);
  border-radius:5px;
  padding:9px 8px
}

.budget-row input,.budget-row select {
  padding:8px 6px!important;
  font-size:12px!important;
  min-width:0
}

.budget-row>strong {
  font-size:12px;
  font-weight:500;
  text-align:right;
  white-space:nowrap
}

.budget-row .btn {
  padding:0;
  width:24px
}

.investment-summary {
  align-self:start;
  background:#eee6d8;
  border:1px solid #dfd0b9;
  border-radius:7px;
  padding:25px 22px
}

.investment-summary .eyebrow {
  font-size:9px
}

.investment-summary h3 {
  font-size:38px;
  white-space:nowrap;
  margin:9px 0 29px
}

.investment-summary>div {
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  margin:14px 0
}

.investment-summary>div strong {
  font-weight:500
}

.installment-note {
  font-size:12px;
  color:#8f7757;
  border-top:1px solid #d8c8b0;
  padding-top:12px
}

.cash-total {
  border-top:1px solid #d8c8b0;
  padding-top:15px
}

.summary-note {
  font-size:11px;
  color:#9c896c;
  margin-top:24px;
  line-height:1.8
}

.payment-section {
  margin-top:28px
}

.payment-section h2 {
  font-size:28px
}

.settings-form {
  max-width:850px
}

.settings-form .form-section {
  margin-bottom:22px
}

.price-categories {
  display:grid;
  gap:28px
}

.price-section {
  background:#fffefa;
  border:1px solid var(--line);
  border-radius:7px;
  padding:25px 28px
}

.price-section h2 {
  font-size:30px;
  margin-bottom:18px
}

.price-package {
  display:grid;
  grid-template-columns:240px 1fr;
  gap:30px;
  border-top:1px solid var(--line);
  padding:18px 0
}

.price-line {
  display:flex;
  align-items:center;
  gap:12px;
  margin:8px 0
}

.price-line>input {
  flex:1
}

.price-line>label {
  display:flex;
  align-items:center;
  gap:7px;
  width:145px;
  font-size:12px;
  color:#a18d70
}

.price-line .unit {
  font-size:12px;
  color:#ab997e;
  min-width:75px
}

.asset-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px
}

.asset-card {
  padding:0;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fffefa;
  overflow:hidden;
  text-align:left
}

.asset-card:hover {
  border-color:#ad9875
}

.asset-card img {
  width:100%;
  height:230px;
  object-fit:cover
}

.asset-card>span {
  display:block;
  padding:14px 16px;
  font-size:12px;
  color:#8c795b
}

.asset-full {
  max-height:70vh;
  object-fit:contain;
  margin:auto
}

.upload-drop {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:15px;
  padding:30px 16px;
  border:1px dashed #c9b38f;
  background:#f9f5ed;
  margin-bottom:15px;
  border-radius:5px
}

.upload-drop>.ui-icon {
  font-size:40px
}

.upload-drop strong {
  font-size:15px;
  font-weight:500
}

.upload-drop small {
  font-size:12px;
  color:#a08c6d
}

.upload-drop input {
  font-size:12px;
  max-width:100%
}

dialog {
  width:560px;
  max-width:calc(100vw - 30px);
  max-height:90vh;
  border:1px solid #e0d4c1;
  border-radius:9px;
  padding:28px;
  background:#fffefa;
  color:var(--ink);
  box-shadow:0 20px 80px #30231944
}

dialog.wide {
  width:860px
}

dialog::backdrop {
  background:#30291e7d;
  backdrop-filter:blur(3px)
}

.modal-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:20px
}

.modal-head h2 {
  font-size:34px
}

.dialog-intro {
  font-size:14px;
  color:#948065;
  margin-bottom:20px
}

.modal-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-top:24px
}

.modal-actions .btn {
  font-size:13px
}

.picker {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px
}

.picker img {
  height:140px
}

.picker .asset-card span {
  font-size:11px;
  padding:10px
}

.action-list {
  display:flex;
  flex-direction:column;
  gap:10px
}

.action-list>.btn {
  justify-content:flex-start
}

.page-type-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px
}

.btn.page-type {
  justify-content:flex-start;
  padding:17px
}

.publish-summary {
  display:flex;
  justify-content:space-between;
  gap:12px;
  background:#efe6d6;
  padding:18px;
  border-radius:4px
}

.publish-summary span {
  font-size:14px
}

.publish-summary strong {
  font-size:14px
}

.publication-success {
  width:49px;
  height:49px;
  border:1px solid #b4c1a3;
  color:#718264;
  border-radius:50%;
  display:grid;
  place-items:center;
  margin:0 0 20px;
  font-size:24px
}

.version-list {
  display:flex;
  flex-direction:column;
  gap:16px
}

.version-list article {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:15px;
  border-bottom:1px solid var(--line);
  padding-bottom:17px
}

.version-list article>div:first-child>strong {
  display:inline-block;
  font-size:14px;
  margin-right:10px
}

.version-list article p {
  font-size:12px;
  color:#a38e70;
  margin-top:6px
}

.version-list article>div:last-child {
  display:flex;
  flex-direction:column;
  gap:5px
}

.version-list article .btn {
  font-size:12px
}

.version-list .accepted-detail {
  color:#68835b
}

#toast {
  position:fixed;
  z-index:1000;
  bottom:22px;
  left:50%;
  transform:translate(-50%,16px);
  opacity:0;
  background:#4d4030;
  color:#fffaf0;
  box-shadow:0 6px 20px #2b211c33;
  border-radius:6px;
  padding:13px 20px;
  font-size:13px;
  line-height:1.5;
  max-width:calc(100vw - 32px);
  width:max-content;
  pointer-events:none;
  transition:opacity .2s,transform .2s
}

#toast.visible {
  opacity:1;
  transform:translate(-50%,0)
}

.initial {
  padding:20vh;
  text-align:center;
  color:#9c896a
}

.error-page {
  max-width:700px;
  margin:10vh auto;
  padding:25px
}

.error-page .brand {
  margin-bottom:70px
}

.error-page p {
  margin:25px 0;
  color:#958065
}

.login {
  min-height:100vh;
  display:grid;
  grid-template-columns:1.15fr 1fr
}

.login-image {
  position:relative;
  background:#897252;
  overflow:hidden
}

.login-image>img {
  width:100%;
  height:100%;
  position:absolute;
  object-fit:cover
}

.login-image::after {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,#0000 20%,#20181099)
}

.login-image>div {
  position:absolute;
  z-index:1;
  bottom:12%;
  left:10%;
  right:10%;
  color:#fffaf0
}

.login-image h1 {
  font-size:clamp(50px,5.7vw,90px)
}

.login-image h1 em {
  color:#e5d0ad
}

.login-image .eyebrow {
  color:#e4d5bb
}

.login-content {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:65px 14% 30px;
  background:#faf8f2
}

.login-content>.brand {
  margin-bottom:auto
}

.login-content>div {
  padding:70px 0
}

.login-content h2 {
  font-size:53px;
  line-height:1.05
}

.login-content p:not(.eyebrow) {
  font-size:14px;
  color:#9a8668;
  margin:22px 0 28px
}

.login-content .btn {
  min-width:230px
}

.login-content small {
  display:block;
  margin-top:15px;
  font-size:11px;
  color:#b09c7c
}

.login-content>footer {
  margin-top:auto;
  font-size:8px;
  letter-spacing:.15em;
  color:#ad9979
}

.login-content p.login-warning {
  background:#f0e1cb;
  border-radius:4px;
  padding:10px;
  font-size:12px
}

@media(min-width:1600px) {
  .page-editor {
    grid-template-columns:208px minmax(0,1fr) 320px
  }

  .page-preview {
    max-width:560px
  }

  .editor-canvas {
    padding-left:50px;
    padding-right:50px
  }

  .page-preview .folio-page {
    min-height:730px
  }

}

@media(max-width:1250px) {
  .workspace {
    grid-template-columns:180px minmax(0,1fr)
  }

  .sidebar {
    padding-left:13px;
    padding-right:13px
  }

  .sidebar .brand span {
    font-size:24px
  }

  .dashboard {
    padding:35px 28px 20px
  }

  .overview-note {
    display:none
  }

  .overview {
    grid-template-columns:1fr 1fr 1.25fr
  }

  .overview-stat:nth-child(3) {
    border:0
  }

  .proposal-cover {
    height:190px
  }

  .list-tools {
    flex-wrap:wrap;
    justify-content:flex-end
  }

  .section-heading {
    align-items:flex-start
  }

  .page-editor {
    grid-template-columns:150px minmax(240px,1fr) 250px
  }

  .editor-canvas {
    padding:22px 18px
  }

  .inspector {
    padding:22px 16px
  }

  .editor-header {
    padding:23px 22px
  }

  .editor-header-actions {
    gap:6px
  }

  .editor-header .btn {
    font-size:12px;
    padding:9px 12px
  }

  .save-status {
    font-size:10px
  }

  .editor-project h1 {
    font-size:30px
  }

  .budget-layout {
    grid-template-columns:minmax(0,1fr);
    padding:28px
  }

  .investment-summary {
    max-width:500px
  }

  .budget-head,.budget-row {
    grid-template-columns:minmax(160px,1.7fr) 75px 90px 100px 100px 25px
  }

  .document-editor {
    gap:30px;
    padding:30px
  }

  .price-package {
    grid-template-columns:200px 1fr
  }

}

@media(max-width:1040px) {
  .workspace {
    grid-template-columns:158px minmax(0,1fr)
  }

  .sidebar .brand span {
    font-size:21px
  }

  .sidebar {
    padding:35px 10px 20px
  }

  .sidebar .brand small {
    font-size:7px
  }

  .nav-caption {
    font-size:8px
  }

  .nav-item {
    font-size:13px;
    padding:12px 10px
  }

  .sidebar-footer {
    gap:5px
  }

  .profile-avatar {
    width:28px;
    height:28px
  }

  .sidebar-footer strong {
    font-size:10px;
    max-width:75px
  }

  .sidebar-footer small {
    font-size:9px
  }

  .proposal-grid {
    gap:15px
  }

  .card-body {
    padding:16px 13px
  }

  .card-title h3 {
    font-size:26px
  }

  .card-bottom {
    flex-wrap:wrap;
    gap:7px
  }

  .page-editor {
    grid-template-columns:130px minmax(220px,1fr) 230px
  }

  .outline-page {
    padding:8px 5px;
    gap:6px
  }

  .outline-label {
    font-size:10px
  }

  .outline-label small {
    font-size:9px
  }

  .outline-number {
    width:20px;
    font-size:9px
  }

  .editor-header {
    flex-wrap:wrap
  }

  .editor-header-actions {
    margin-left:auto
  }

  .page-preview .folio-page {
    min-height:480px
  }

  .section-heading {
    flex-wrap:wrap
  }

  .list-tools {
    width:100%;
    justify-content:flex-start
  }

  .model-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

  .budget-table {
    overflow-x:auto;
    padding-bottom:5px
  }

  .budget-head,.budget-row {
    min-width:680px
  }

  .document-editor {
    grid-template-columns:minmax(0,1fr)
  }

  .context-note {
    margin:0
  }

  .asset-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

  .price-package {
    grid-template-columns:minmax(0,1fr);
    gap:0
  }

  .price-package>.field {
    max-width:350px
  }

}

@media(max-width:800px) {
  .workspace {
    display:block
  }

  .sidebar {
    display:none;
    position:fixed;
    inset:56px auto 0 0;
    width:220px;
    z-index:50;
    height:auto;
    box-shadow:20px 0 40px #342b2529
  }

  .workspace.mobile-nav .sidebar {
    display:flex
  }

  .sidebar .brand span {
    font-size:28px
  }

  .sidebar-footer strong {
    font-size:12px;
    max-width:120px
  }

  .mobile-only {
    display:inline-flex
  }

  .topbar {
    height:56px;
    padding:0 16px;
    gap:14px;
    justify-content:flex-start
  }

  .topbar-brand {
    margin-left:auto
  }

  .breadcrumb {
    font-size:11px;
    gap:9px
  }

  .dashboard {
    padding:30px 22px 18px
  }

  .page-heading {
    gap:20px
  }

  .page-heading>.btn {
    font-size:12px;
    padding:10px 12px
  }

  .page-heading h1 {
    font-size:46px
  }

  .proposal-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

  .create-card {
    min-height:310px
  }

  .proposal-cover {
    height:205px
  }

  .overview {
    margin:28px 0 32px
  }

  .overview-stat {
    padding:0 16px
  }

  .overview-stat>span {
    font-size:10px
  }

  .overview-stat strong {
    font-size:40px
  }

  .overview-stat strong.money {
    font-size:28px
  }

  .page-editor {
    grid-template-columns:135px minmax(0,1fr)
  }

  .inspector {
    grid-column:1/-1;
    border-left:0;
    border-top:1px solid var(--line);
    padding:25px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 20px
  }

  .inspector-heading,.page-options {
    grid-column:1/-1
  }

  .inspector .field {
    margin-bottom:18px
  }

  .inspector .image-select {
    height:180px
  }

  .inspector .page-options {
    max-width:600px
  }

  .editor-canvas {
    min-height:560px;
    padding:25px
  }

  .page-preview {
    max-width:360px
  }

  .page-preview .folio-page {
    min-height:490px
  }

  .page-outline {
    min-height:560px
  }

  .editor-tabs {
    gap:22px;
    overflow:auto;
    padding:0 24px
  }

  .editor-tabs button {
    white-space:nowrap;
    font-size:12px
  }

  .editor-header {
    padding:23px
  }

  .editor-header-actions {
    margin-left:0;
    width:100%;
    justify-content:flex-end
  }

  .save-status {
    margin-right:auto
  }

  .document-editor {
    padding:24px
  }

  .form-section {
    padding:22px
  }

  .budget-layout {
    padding:24px
  }

  .login-content {
    padding:40px 9% 25px
  }

  .login-content h2 {
    font-size:43px
  }

  .login-image h1 {
    font-size:55px
  }

  .login-content .btn {
    min-width:190px
  }

}

@media(max-width:520px) {
  .dashboard {
    padding:27px 17px 18px
  }

  .page-heading {
    display:block;
    margin-bottom:24px
  }

  .page-heading h1 {
    font-size:43px
  }

  .page-heading>.btn {
    margin-top:21px
  }

  .subtitle {
    font-size:13px
  }

  .eyebrow {
    font-size:9px
  }

  .overview {
    grid-template-columns:1fr 1fr;
    padding:17px 0;
    margin:25px 0 30px;
    row-gap:18px
  }

  .overview-stat {
    padding:0 16px
  }

  .overview-stat:nth-child(2) {
    border:0
  }

  .overview-stat:nth-child(3) {
    grid-column:1/-1;
    padding:15px 0 0;
    border-top:1px solid var(--line)
  }

  .overview-stat:nth-child(3)>span {
    display:inline
  }

  .overview-stat strong.money {
    display:inline;
    margin-left:17px;
    font-size:29px
  }

  .overview-stat strong {
    font-size:36px
  }

  .proposal-grid {
    grid-template-columns:minmax(0,1fr)
  }

  .proposal-cover {
    height:240px
  }

  .card-body {
    padding:22px
  }

  .card-title h3 {
    font-size:33px
  }

  .card-bottom {
    font-size:12px
  }

  .card-bottom strong {
    font-size:14px
  }

  .create-card {
    min-height:245px
  }

  .section-title h2 {
    font-size:29px
  }

  .list-tools {
    gap:8px
  }

  .list-tools .search {
    flex:1;
    min-width:100%
  }

  .search input#search {
    width:100%;
    font-size:14px
  }

  .list-tools select {
    flex:1
  }

  .topbar-brand {
    display:none
  }

  .editor-project h1 {
    font-size:31px
  }

  .editor-project .badge {
    font-size:9px
  }

  .editor-header {
    padding:22px 16px 18px
  }

  .editor-tabs {
    padding:0 16px;
    gap:21px
  }

  .page-editor {
    display:flex;
    flex-direction:column
  }

  .page-outline {
    width:100%;
    padding:14px 16px;
    border-right:0;
    border-bottom:1px solid var(--line);
    min-height:0
  }

  .outline-heading {
    display:none
  }

  .outline-list {
    flex-direction:row;
    overflow:auto;
    gap:8px;
    padding-bottom:5px
  }

  .outline-page {
    min-width:130px;
    padding:8px;
    min-height:50px
  }

  .outline-label {
    font-size:11px
  }

  .outline-label small {
    font-size:9px
  }

  .outline-number {
    width:20px
  }

  .btn.outline-add {
    width:auto;
    min-height:32px;
    padding:6px 12px;
    margin-top:8px;
    font-size:11px
  }

  .editor-canvas {
    width:100%;
    padding:17px 27px;
    min-height:0
  }

  .canvas-top {
    margin-bottom:14px
  }

  .page-preview {
    max-width:330px
  }

  .inspector {
    width:100%;
    display:block;
    padding:27px 23px
  }

  .inspector .field>span {
    font-size:13px
  }

  .inspector input:not([type=checkbox]),.inspector textarea,.inspector select {
    font-size:15px
  }

  .inspector .image-select {
    height:200px
  }

  .field-grid {
    grid-template-columns:minmax(0,1fr);
    gap:0
  }

  .budget-layout {
    padding:24px 16px
  }

  .budget-heading {
    flex-wrap:wrap
  }

  .budget-heading h2 {
    font-size:35px
  }

  .investment-summary {
    max-width:100%
  }

  .model-grid {
    grid-template-columns:1fr
  }

  .model-card {
    min-height:220px
  }

  .asset-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px
  }

  .asset-card img {
    height:160px
  }

  .asset-card>span {
    font-size:11px;
    padding:10px
  }

  .price-section {
    padding:20px 17px
  }

  .price-line {
    flex-wrap:wrap;
    gap:8px
  }

  .price-line>input {
    flex:0 0 100%
  }

  .price-line>label {
    flex:1
  }

  .workspace-footer {
    font-size:8px
  }

  .document-editor {
    padding:24px 16px
  }

  .form-section h2 {
    font-size:33px
  }

  .context-note {
    margin:10px 7px
  }

  .form-section {
    padding:22px 18px
  }

  dialog {
    padding:22px 18px
  }

  .modal-head h2 {
    font-size:30px
  }

  .modal-actions {
    flex-wrap:wrap
  }

  .modal-actions .btn {
    white-space:normal
  }

  .picker img {
    height:120px
  }

  .page-type-grid {
    gap:8px
  }

  .btn.page-type {
    padding:12px;
    font-size:12px
  }

  .login {
    display:flex;
    flex-direction:column
  }

  .login-image {
    height:280px
  }

  .login-image>div {
    bottom:14%;
    left:8%
  }

  .login-image h1 {
    font-size:47px
  }

  .login-image .eyebrow {
    font-size:8px
  }

  .login-content {
    padding:30px 8%
  }

  .login-content>.brand {
    display:none
  }

  .login-content>div {
    padding:0 0 38px
  }

  .login-content h2 {
    font-size:45px
  }

  .login-content .btn {
    width:100%;
    min-height:47px
  }

  .login-content>footer {
    font-size:8px
  }

  .version-list article {
    flex-wrap:wrap
  }

  .version-list article>div:last-child {
    flex-direction:row
  }

  .card-type {
    font-size:10px
  }

}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration:.01ms!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important
  }

}
