:root {
  --platform-bg: #f4f5f2;
  --panel: #ffffff;
  --panel-muted: #f7f8f6;
  --nav: #141917;
  --nav-soft: #202724;
  --focus: #7e947d;
}

.platform-body { min-height: 100vh; background: var(--platform-bg); overflow-x: hidden; }
.platform-loading { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 18px; background: #f4f5f2; }
.platform-loading i { width: 34px; height: 34px; border: 2px solid #daddd9; border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
.platform-loading p { color: #78807c; font-size: 11px; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, .9fr) 1.1fr; background: #f7f7f4; }
.login-screen[hidden], .platform-shell[hidden], .platform-loading[hidden] { display: none !important; }
.login-brand { min-height: 100vh; padding: 48px clamp(36px, 5vw, 78px); display: flex; flex-direction: column; justify-content: space-between; color: white; background: radial-gradient(circle at 75% 18%, rgba(134,158,132,.45), transparent 28%), linear-gradient(145deg, #101513, #26322d); }
.brand.inverse .brand-mark, .login-brand .brand-mark { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.login-message { max-width: 560px; padding: 80px 0; }
.login-message h1 { margin-bottom: 26px; font-family: Georgia,serif; font-size: clamp(54px, 6vw, 88px); line-height: .98; letter-spacing: -.05em; font-weight: 400; }
.login-message > p:not(.eyebrow) { max-width: 430px; color: #b9c2be; font-size: 16px; line-height: 1.7; }
.login-brand > small { color: #87938e; font-family: Georgia,serif; font-style: italic; }
.login-form-wrap { display: grid; place-items: center; padding: 50px 24px; }
.login-form { width: min(430px, 100%); }
.login-title { margin-bottom: 42px; }
.login-title .brand-mark.mobile { display: none; margin-bottom: 32px; }
.login-title > p { margin-bottom: 8px; color: var(--focus); font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.login-title h2 { margin: 0 0 10px; font-family: Georgia,serif; font-size: 38px; font-weight: 400; letter-spacing: -.035em; }
.login-title > span:not(.brand-mark) { color: #747c78; font-size: 13px; line-height: 1.6; }
.login-form label { display: block; margin-bottom: 18px; color: #454d49; font-size: 11px; font-weight: 700; }
.login-form input { width: 100%; margin-top: 8px; padding: 17px 16px; border: 1px solid #dcdfdb; border-radius: 14px; background: white; outline: 0; transition: .2s; }
.login-form input:focus { border-color: var(--focus); box-shadow: 0 0 0 4px rgba(126,148,125,.12); }
.login-form .button { width: 100%; margin-top: 8px; }
.login-error { min-height: 20px; margin: 16px 0; color: var(--danger); font-size: 11px; text-align: center; }
.back-home { display: block; margin-top: 28px; color: #78807c; font-size: 11px; text-align: center; }

.platform-shell { min-height: 100vh; display: grid; grid-template-columns: 274px minmax(0, 1fr); }
.sidebar { height: 100vh; padding: 28px 20px 20px; position: sticky; top: 0; display: flex; flex-direction: column; color: white; background: var(--nav); z-index: 30; }
.sidebar-top { padding: 0 8px; display: flex; justify-content: space-between; align-items: center; }
.sidebar .brand { font-size: 15px; }
.sidebar .brand-mark { width: 36px; height: 36px; border-radius: 11px; background: #28312d; }
.sidebar-close { display: none; border: 0; background: transparent; color: white; font-size: 26px; }
.workspace-label { margin: 32px 8px 20px; padding: 14px 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.035); }
.workspace-label small { display: block; margin-bottom: 4px; color: #82908a; font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.workspace-label b { font-size: 11px; font-weight: 650; }
.platform-nav { padding: 4px 0 18px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; scrollbar-width: thin; }
.platform-nav a { min-height: 43px; padding: 0 13px; display: flex; align-items: center; gap: 12px; border-radius: 11px; color: #9ca8a3; font-size: 11px; font-weight: 610; transition: .18s; }
.platform-nav a:hover { color: white; background: rgba(255,255,255,.05); }
.platform-nav a.active { color: white; background: var(--nav-soft); box-shadow: inset 2px 0 0 #91a78f; }
.nav-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.055); color: #a6b2ad; font-size: 9px; font-weight: 750; }
.platform-nav a.active .nav-icon { background: rgba(145,167,143,.16); color: #b9c9b7; }
.nav-divider { height: 1px; margin: 12px 10px; background: rgba(255,255,255,.08); }
.sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.user-chip { padding: 8px; display: flex; align-items: center; gap: 10px; }
.user-chip > span, .avatar-button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#a8b9a6,#728871); color: white; font-size: 10px; font-weight: 750; }
.user-chip b { display: block; font-size: 10px; }
.user-chip small { display: block; margin-top: 3px; color: #7f8d87; font-size: 8px; }
.sidebar-footer > button { width: 100%; padding: 10px 8px; border: 0; background: transparent; color: #77847e; font-size: 9px; text-align: left; }
.sidebar-footer > button:hover { color: white; }

.platform-main { min-width: 0; }
.platform-header { min-height: 104px; padding: 25px clamp(24px, 4vw, 54px); position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; background: rgba(244,245,242,.88); backdrop-filter: blur(22px); border-bottom: 1px solid rgba(20,25,23,.06); }
.platform-header > div:nth-child(2) { flex: 1; }
.platform-header p { margin-bottom: 5px; color: #89918d; font-size: 9px; letter-spacing: .09em; }
.platform-header h1 { margin: 0; font-family: Georgia,serif; font-size: 30px; font-weight: 400; letter-spacing: -.03em; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.icon-button, .avatar-button, .sidebar-open { border: 0; }
.icon-button { width: 40px; height: 40px; border-radius: 12px; background: white; color: #5f6864; box-shadow: 0 4px 18px rgba(30,35,33,.06); }
.avatar-button { background: linear-gradient(145deg,#91a68e,#687b67); }
.sidebar-open { display: none; width: 40px; height: 40px; padding: 11px; border-radius: 11px; background: white; }
.sidebar-open span { display: block; height: 1.5px; margin: 5px 0; background: var(--ink); }
.platform-content { padding: 28px clamp(20px, 4vw, 54px) 70px; }

.view-toolbar { min-height: 54px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.view-toolbar p { margin: 0; color: #77807b; font-size: 12px; }
.toolbar-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.toolbar-actions .button { min-height: 42px; padding: 0 16px; font-size: 10px; }
.search-field { position: relative; width: min(340px, 100%); }
.search-field input { width: 100%; height: 42px; padding: 0 15px 0 38px; border: 1px solid #e1e3e0; border-radius: 12px; outline: 0; background: white; font-size: 11px; }
.search-field::before { content: "⌕"; position: absolute; left: 14px; top: 9px; color: #8a928e; font-size: 18px; }
.search-field input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(126,148,125,.1); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.metric-card { min-height: 146px; padding: 22px; position: relative; border-radius: 21px; background: var(--panel); border: 1px solid rgba(25,30,28,.045); box-shadow: 0 10px 30px rgba(25,30,28,.035); }
.metric-card.accent { color: white; background: linear-gradient(145deg,#17201d,#304039); }
.metric-card small { display: block; color: #7f8883; font-size: 9px; font-weight: 650; letter-spacing: .04em; }
.metric-card.accent small { color: #aebbb5; }
.metric-card strong { display: block; margin-top: 26px; font-family: Georgia,serif; font-size: 36px; font-weight: 400; letter-spacing: -.04em; }
.metric-card p { margin: 5px 0 0; color: #969d99; font-size: 9px; }
.metric-icon { position: absolute; right: 18px; top: 18px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #f1f3ef; color: #7c8f7b; font-size: 9px; font-weight: 750; }
.metric-card.accent .metric-icon { background: rgba(255,255,255,.09); }

.dashboard-grid { margin-top: 16px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; }
.panel { padding: 23px; border-radius: 21px; background: var(--panel); border: 1px solid rgba(25,30,28,.05); box-shadow: 0 10px 30px rgba(25,30,28,.025); }
.panel-header { margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.panel-header h2 { margin: 0; font-family: Georgia,serif; font-size: 20px; font-weight: 400; }
.panel-header a, .panel-header button { border: 0; background: transparent; color: var(--focus); font-size: 9px; font-weight: 700; }
.activity-list, .appointment-list { display: flex; flex-direction: column; }
.list-row { min-height: 60px; padding: 12px 0; display: flex; align-items: center; gap: 12px; border-top: 1px solid #eef0ed; }
.list-row:first-child { border-top: 0; }
.list-row-icon { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: #f0f3ef; color: #71856f; font-size: 9px; font-weight: 750; }
.list-row > div:nth-child(2) { min-width: 0; flex: 1; }
.list-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }
.list-row small { display: block; margin-top: 4px; color: #929995; font-size: 8.5px; }
.list-row time { color: #7b847f; font-size: 9px; white-space: nowrap; }
.empty-state { min-height: 220px; padding: 35px; display: grid; place-items: center; align-content: center; text-align: center; color: #88908c; }
.empty-state i { width: 50px; height: 50px; margin-bottom: 15px; display: grid; place-items: center; border-radius: 17px; background: #f0f2ef; font-style: normal; font-size: 16px; }
.empty-state h3 { margin: 0 0 7px; color: #444c48; font-family: Georgia,serif; font-size: 20px; font-weight: 400; }
.empty-state p { max-width: 390px; margin: 0; font-size: 10px; line-height: 1.6; }

.data-panel { overflow: hidden; border-radius: 20px; background: white; border: 1px solid rgba(25,30,28,.05); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 13px 17px; background: #f8f9f7; color: #838b87; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; text-align: left; }
.data-table td { padding: 16px 17px; border-top: 1px solid #eef0ed; color: #58615d; font-size: 10px; vertical-align: middle; }
.data-table td strong { display: block; color: #202622; font-size: 10.5px; }
.data-table td small { display: block; margin-top: 3px; color: #969d99; font-size: 8px; }
.data-table tr:hover td { background: #fbfcfa; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.row-button { min-height: 31px; padding: 0 10px; border: 1px solid #e5e7e4; border-radius: 9px; background: white; color: #5f6864; font-size: 8.5px; font-weight: 650; }
.row-button:hover { border-color: #b8c3b5; color: #3f5140; }
.row-button.danger { border-color: #ead7d7; background: #fffafa; color: #9b5151; }
.row-button.danger:hover { border-color: #cfa9a9; background: #f9eeee; color: #7f3939; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: #f0f2ef; color: #68716c; font-size: 8px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.sent, .status.in_progress, .status.waiting_customer { background: #eaf0f3; color: #607f92; }
.status.accepted, .status.paid, .status.completed, .status.active { background: #eaf2e9; color: #5d8061; }
.status.overdue, .status.high, .status.cancelled { background: #f6eaea; color: #a05252; }
.status.open, .status.planned, .status.draft, .status.new { background: #f2efe6; color: #8a764d; }
.status.closed, .status.archived, .status.rejected { background: #eeefed; color: #808783; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { padding: 5px 7px; border-radius: 7px; background: #eff2ee; color: #677964; font-size: 7.5px; }

.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.entity-card { min-height: 210px; padding: 22px; position: relative; border-radius: 20px; background: white; border: 1px solid rgba(25,30,28,.05); box-shadow: 0 10px 25px rgba(25,30,28,.025); }
.entity-card > small { color: #88918c; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.entity-card h3 { margin: 18px 0 7px; font-family: Georgia,serif; font-size: 23px; font-weight: 400; }
.entity-card p { color: #79817d; font-size: 9px; line-height: 1.55; }
.entity-card .card-meta { position: absolute; inset: auto 22px 20px; display: flex; justify-content: space-between; align-items: center; }
.entity-card .card-meta button { border: 0; background: transparent; color: var(--focus); font-size: 9px; font-weight: 700; }

.detail-hero { margin-bottom: 16px; padding: 30px; border-radius: 24px; display: flex; justify-content: space-between; gap: 20px; background: linear-gradient(135deg,#18201d,#35443e); color: white; }
.detail-hero small { color: #9eaaa5; font-size: 9px; }
.detail-hero h2 { margin: 8px 0; font-family: Georgia,serif; font-size: 32px; font-weight: 400; }
.detail-hero p { margin: 0; color: #b9c2be; font-size: 10px; }
.detail-hero .button { align-self: center; min-height: 42px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.definition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.definition-grid div { min-width: 0; }
.definition-grid small { display: block; margin-bottom: 5px; color: #969d99; font-size: 8px; }
.definition-grid b, .definition-grid span { display: block; color: #343c38; font-size: 10px; overflow-wrap: anywhere; }

.modal { width: min(800px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: 24px; background: transparent; box-shadow: 0 35px 100px rgba(13,17,15,.28); }
.modal::backdrop { background: rgba(11,15,13,.58); backdrop-filter: blur(5px); }
.modal-frame { max-height: calc(100vh - 28px); display: flex; flex-direction: column; background: #f8f9f7; }
.modal-frame > header { min-height: 88px; padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e7e9e6; background: white; }
.modal-frame > header p { margin: 0 0 5px; color: var(--focus); font-size: 8px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.modal-frame > header h2 { margin: 0; font-family: Georgia,serif; font-size: 24px; font-weight: 400; }
.modal-frame > header button { border: 0; background: transparent; color: #7c8580; font-size: 25px; }
.modal-content { padding: 25px 26px; overflow-y: auto; }
.modal-frame > footer { padding: 16px 26px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid #e4e6e3; background: white; }
.modal-frame > footer .button { min-height: 42px; font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-field { display: block; min-width: 0; color: #4d5551; font-size: 9px; font-weight: 700; }
.form-field > span { display: block; margin-bottom: 7px; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 12px 13px; border: 1px solid #dfe2de; border-radius: 11px; outline: 0; background: white; color: #222824; font-size: 10px; font-weight: 450; }
.form-field input, .form-field select { height: 43px; }
.form-field textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(126,148,125,.10); }
.form-section { grid-column: 1 / -1; margin: 10px 0 -2px; padding-top: 17px; border-top: 1px solid #e4e6e3; color: #7e8782; font-size: 8px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.checkbox-field { height: 43px; padding: 0 13px; display: flex; align-items: center; gap: 9px; border: 1px solid #dfe2de; border-radius: 11px; background: white; }
.checkbox-field input { width: auto; height: auto; margin: 0; }
.item-editor { grid-column: 1/-1; }
.item-editor-head { margin-bottom: 9px; display: flex; justify-content: space-between; align-items: center; }
.item-editor-head b { font-size: 9px; }
.item-editor-head button { padding: 7px 10px; border: 1px solid #dfe2de; border-radius: 8px; background: white; color: var(--focus); font-size: 8px; font-weight: 700; }
.item-row { margin-bottom: 8px; padding: 12px; display: grid; grid-template-columns: 1.8fr .6fr .6fr .8fr 30px; gap: 8px; align-items: end; border-radius: 13px; background: white; border: 1px solid #e5e7e4; }
.item-row .form-field span { font-size: 7px; }
.item-row input, .item-row select { height: 38px; padding: 9px; font-size: 9px; }
.remove-item { width: 30px; height: 38px; border: 0; border-radius: 9px; background: #f7ecec; color: #a55b5b; }
.modal-note { grid-column: 1/-1; padding: 12px 14px; border-radius: 11px; background: #edf2ec; color: #687b66; font-size: 9px; line-height: 1.5; }

.timeline { display: flex; flex-direction: column; }
.timeline-item { padding: 16px 0 16px 24px; position: relative; border-left: 1px solid #dfe3de; }
.timeline-item::before { content: ""; position: absolute; left: -4px; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: var(--focus); }
.timeline-item b { font-size: 10px; }
.timeline-item p { margin: 6px 0; color: #68716c; font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
.timeline-item small { color: #969d99; font-size: 8px; }
.support-original { margin-bottom: 10px; padding: 16px; border-radius: 14px; background: #f2f4f1; white-space: pre-wrap; font-size: 10px; line-height: 1.6; }

.website-toolbar { margin-bottom: 18px; padding: 24px 26px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-radius: 21px; background: linear-gradient(135deg,#18201d,#35443e); color: white; }
.website-toolbar h2 { margin: 0 0 7px; font-family: Georgia,serif; font-size: 26px; font-weight: 400; }
.website-toolbar p { margin: 0; color: #bac4bf; font-size: 10px; line-height: 1.6; }
.website-toolbar .button { flex: 0 0 auto; min-height: 42px; }
.editor-section { margin-bottom: 12px; overflow: hidden; border: 1px solid rgba(25,30,28,.07); border-radius: 18px; background: white; }
.editor-section summary { min-height: 72px; padding: 17px 52px 17px 20px; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; list-style: none; }
.editor-section summary::-webkit-details-marker { display: none; }
.editor-section summary::after { content: "+"; margin-left: auto; position: absolute; right: 24px; color: var(--focus); font-size: 18px; }
.editor-section[open] summary::after { content: "−"; }
.editor-section summary span { font-family: Georgia,serif; font-size: 20px; }
.editor-section summary small { color: #8c9490; font-size: 9px; }
.editor-section > .form-grid { padding: 22px; border-top: 1px solid #eceeeb; }
.website-image-preview { padding: 12px; display: flex; align-items: center; gap: 14px; border: 1px solid #e3e6e2; border-radius: 13px; background: #f7f8f6; }
.website-image-preview img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; }
.website-image-preview div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.website-image-preview b { font-size: 10px; }
.website-image-preview small { color: #89918d; font-size: 8.5px; }
.sticky-save { padding: 16px 0; position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; background: linear-gradient(transparent,#f4f5f2 35%); }
.trash-notice { margin-bottom: 18px; padding: 20px 22px; border: 1px solid #d9e2d7; border-radius: 17px; background: #edf3eb; color: #566a54; }
.trash-notice b { display: block; margin-bottom: 6px; color: #30412f; font-family: Georgia,serif; font-size: 18px; font-weight: 400; }
.trash-notice p { margin: 0; font-size: 10px; line-height: 1.65; }
.entity-card .card-meta .row-actions { align-items: center; }
.entity-card .card-meta .row-button.danger { padding: 0 7px; border: 1px solid #ead7d7; background: #fffafa; color: #9b5151; }

.portal-welcome { margin-bottom: 16px; padding: 34px; border-radius: 25px; background: linear-gradient(145deg,#dfe8dd,#c6d4c3); overflow: hidden; position: relative; }
.portal-welcome::after { content: ""; position: absolute; width: 230px; height: 230px; right: -45px; top: -80px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.13); }
.portal-welcome small { color: #637262; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.portal-welcome h2 { margin: 10px 0 8px; font-family: Georgia,serif; font-size: 34px; font-weight: 400; }
.portal-welcome p { margin: 0; color: #637162; font-size: 10px; }

.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 110; display: flex; flex-direction: column; gap: 9px; }
.toast { width: min(350px, calc(100vw - 44px)); padding: 14px 16px; border-radius: 13px; background: #18201d; color: white; box-shadow: 0 18px 50px rgba(15,19,17,.25); font-size: 10px; animation: toast-in .25s ease; }
.toast.error { background: #7f3939; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .card-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-title .brand-mark.mobile { display: grid; }
  .platform-shell { display: block; }
  .sidebar { width: 278px; position: fixed; left: 0; top: 0; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 30px 0 70px rgba(11,15,13,.25); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close, .sidebar-open { display: block; }
  .platform-header { min-height: 86px; padding: 17px 20px; }
  .platform-header h1 { font-size: 25px; }
  .platform-content { padding: 20px 16px 60px; }
  .detail-grid { grid-template-columns: 1fr; }
  .data-panel { overflow-x: auto; }
  .data-table { min-width: 720px; }
}

@media (max-width: 580px) {
  .login-form-wrap { padding: 34px 20px; }
  .login-title h2 { font-size: 32px; }
  .metric-grid, .card-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 128px; }
  .view-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-actions .button { flex: 1; }
  .detail-hero { padding: 24px; flex-direction: column; }
  .detail-hero .button { align-self: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide, .form-section, .item-editor, .modal-note { grid-column: 1; }
  .item-row { grid-template-columns: 1fr 1fr; }
  .item-row > .form-field:first-child { grid-column: 1 / -1; }
  .remove-item { align-self: end; }
  .modal-content { padding: 20px 18px; }
  .modal-frame > header, .modal-frame > footer { padding-left: 18px; padding-right: 18px; }
  .modal-frame > footer .button { flex: 1; }
  .definition-grid { grid-template-columns: 1fr; }
  .website-toolbar { align-items: flex-start; flex-direction: column; }
  .editor-section > .form-grid { padding: 18px; }
  .website-image-preview { align-items: flex-start; flex-direction: column; }
}
