:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #243c3a;
  background: #eef2f8;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 10% 5%, #fdf7f0 0, transparent 55%), radial-gradient(ellipse at 95% 30%, #e3e9fb 0, transparent 60%), linear-gradient(160deg, #f4f7fc, #e7eff2); }
a { color: inherit; }
select, input, textarea, button { font: inherit; }
button { white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid #477cba; outline-offset: 3px; }
.app-header { max-width: 1100px; margin: 24px auto 0; padding: 15px 22px; display: flex; align-items: center; gap: 22px; background: #ffffff80; border: 1px solid #ffffffc9; border-radius: 23px; box-shadow: 0 8px 30px #64749008, inset 0 1px 0 #fff; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 14px; font-weight: 650; }
.brand-icon { display: grid; place-items: center; width: 34px; height: 34px; background: linear-gradient(150deg, #75998d, #315a50); color: #fff; border-radius: 10px; font: 23px Georgia, serif; box-shadow: inset 0 1px 0 #ffffff70; }
.company-picker { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.company-picker[hidden], .profile-controls[hidden] { display: none; }
.company-picker label { font-size: 12px; color: #647572; }
select { min-height: 44px; max-width: 100%; padding: 10px 34px 10px 13px; border: 1px solid #ffffffba; background: #ffffff75; color: #29463e; border-radius: 12px; font-size: 13px; }
.demo-pill { padding: 8px 12px; border-radius: 30px; font-size: 10px; color: #6c756f; background: #e8eeea; white-space: nowrap; }
.profile-controls { display: flex; align-items: center; gap: 9px; padding-left: 3px; border-left: 1px solid #dfe6e2; }
.profile-controls span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: #647572; }
.profile-controls button { min-height: 40px; padding: 8px 11px; border: 0; border-radius: 10px; color: #3c6159; background: #edf2ef; cursor: pointer; }
main { max-width: 920px; margin: auto; padding: 58px 40px 42px; min-height: 590px; outline: none; }
.home-heading { text-align: center; margin-bottom: 46px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; color: #6f817e; font-size: 10px; font-weight: 600; margin: 0 0 13px; }
h1 { font-size: clamp(27px, 3vw, 37px); font-weight: 600; letter-spacing: -1.2px; margin: 0 0 12px; }
.home-heading > p:last-child, .detail-heading > p:last-child { font-size: 14px; color: #71827d; margin: 0; line-height: 1.6; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px 40px; max-width: 620px; margin: auto; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px; border-radius: 22px; text-decoration: none; transition: transform .18s; }
.tile:hover { transform: translateY(-4px); }
.tile:active { transform: scale(.98); }
.tile-icon { position: relative; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 27px; color: #fff; box-shadow: 0 12px 19px #44516c17, 0 3px 5px #44516c12, inset 0 1px 1px #ffffffa6, inset 0 -2px 4px #0000000c; overflow: hidden; }
.tile-icon::before { content: ''; position: absolute; inset: 0; background: linear-gradient(150deg, #ffffff35, transparent 55%); pointer-events: none; }
.tile-icon svg { width: 49px; height: 49px; position: relative; filter: drop-shadow(0 2px 1px #00000010); }
.green { background: linear-gradient(155deg, #84c9a3, #459677); }
.blue { background: linear-gradient(155deg, #86b8f0, #527fcc); }
.purple { background: linear-gradient(155deg, #c1a5ed, #9472c7); }
.amber { background: linear-gradient(155deg, #f2cd80, #d8a14c); }
.teal { background: linear-gradient(155deg, #7dcacb, #409ca4); }
.rose { background: linear-gradient(155deg, #e8a6ac, #c77788); }
.tile-label { font-size: 14px; font-weight: 550; text-align: center; line-height: 1.4; }
.tile-status { font-size: 9px; color: #697a76; margin-top: -9px; }
footer { max-width: 1100px; margin: auto; padding: 18px 40px 30px; text-align: center; font-size: 10px; color: #6f7c76; line-height: 1.7; }
footer p { margin: 3px 0; }
footer a { display: inline-block; padding: 6px; }
.back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 13px; text-decoration: none; margin-bottom: 26px; }
.detail-heading { margin-bottom: 30px; }
.panel { background: #fff; border: 1px solid #e4e9e7; border-radius: 22px; overflow: hidden; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 24px; border-bottom: 1px solid #edf0ed; }
h2 { font-size: 18px; font-weight: 600; margin: 0; }
h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.task-list { list-style: none; padding: 0; margin: 0; }
.task-list li { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 24px; border-bottom: 1px solid #edf0ed; }
.task-list li:last-child { border-bottom: 0; }
.task-list p { font-size: 12px; color: #71817a; margin: 0; line-height: 1.6; }
.status { display: inline-block; background: #f0f3ef; color: #677d6a; border-radius: 7px; font-size: 10px; padding: 6px 9px; white-space: nowrap; }
.today { background: #f5ecd9; color: #8b6d3b; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.metrics article { padding: 24px; border: 1px solid #e4e9e7; background: white; border-radius: 20px; }
.metrics p { font-size: 12px; line-height: 1.6; margin: 0 0 13px; color: #6c7f73; }
.metrics strong { font-size: 36px; font-weight: 500; }
.empty { text-align: center; padding: 55px 30px; }
.empty h2 { margin: 22px 0 15px; }
.empty p { max-width: 480px; margin: 10px auto; color: #6c7f75; font-size: 14px; line-height: 1.8; }
.empty p.muted { font-size: 12px; }
.loading { padding: 45px; text-align: center; color: #6c7f75; font-size: 13px; }
.login-shell { min-height: 500px; display: grid; place-items: center; }
.login-card { width: min(100%, 410px); padding: 40px; border: 1px solid #ffffffcf; border-radius: 28px; background: #ffffffb8; box-shadow: 0 24px 70px #51657e18; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.login-mark { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 25px; border-radius: 15px; color: white; background: linear-gradient(150deg, #75998d, #315a50); font: 33px Georgia, serif; }
.login-copy { margin: 0 0 28px; color: #71827d; font-size: 14px; line-height: 1.65; }
.login-card form { display: grid; gap: 9px; }
.login-card label { margin-top: 8px; color: #596f69; font-size: 12px; font-weight: 600; }
.login-card input { min-height: 48px; width: 100%; padding: 11px 13px; border: 1px solid #dce4e1; border-radius: 12px; color: #243c3a; background: #fff; }
.form-error { min-height: 20px; margin: 4px 0 0; color: #a34e4e; font-size: 12px; line-height: 1.5; }
.primary-button { min-height: 49px; margin-top: 4px; border: 0; border-radius: 13px; color: white; background: linear-gradient(150deg, #668d81, #315a50); font-weight: 650; cursor: pointer; box-shadow: 0 8px 18px #315a5025; }
.primary-button { padding: 12px 18px; }
button:disabled { cursor: wait; opacity: .65; }
.task-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 18px 20px; border: 1px solid #ffffffc7; border-radius: 20px; background: #ffffff75; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.task-toolbar > div { display: flex; align-items: baseline; gap: 8px; }
.task-toolbar strong { font-size: 30px; font-weight: 550; }
.task-toolbar span, .role-note { color: #6a7c76; font-size: 12px; }
.task-create { width: auto; min-width: 145px; margin: 0; padding: 12px 17px; }
.task-editor { margin-bottom: 18px; }
.task-editor[hidden] { display: none; }
.task-editor .panel-heading > div { min-width: 0; }
.task-editor .eyebrow { margin-bottom: 7px; }
.task-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 24px; }
.task-field { display: grid; gap: 7px; color: #596f69; font-size: 12px; font-weight: 600; }
.task-field-wide { grid-column: 1 / -1; }
.fine-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; border-radius: 14px; background: #f3f6f5; }
.fine-settings label { display: grid; gap: 6px; color: #60736d; font-size: 10px; font-weight: 650; }
.engraving-care { margin-bottom: 18px; overflow: hidden; border: 1px solid #e4e9e7; border-radius: 22px; background: #fff; }
.engraving-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 20px; }
.engraving-product-card { overflow: hidden; border: 1px solid #e2e8e6; border-radius: 19px; background: #fff; box-shadow: 0 8px 24px #526a6808; }
.engraving-product-image, .engraving-product-placeholder { display: grid; width: 100%; aspect-ratio: 4 / 3; place-items: center; object-fit: contain; background: #f3f6f5; }
.engraving-product-placeholder { color: #8a5757; font-size: 12px; font-weight: 650; }
.engraving-product-body { padding: 16px; }
.engraving-product-body .panel-heading { align-items: start; padding: 0 0 13px; border: 0; }
.care-score { flex: 0 0 auto; padding: 6px 8px; border-radius: 9px; font-size: 11px; font-weight: 750; }
.care-score.complete { color: #256d45; background: #e3f4e9; }
.care-score.incomplete { color: #9d3534; background: #fbe7e6; }
.care-checks { display: grid; gap: 7px; margin-bottom: 14px; }
.care-check { padding: 7px 9px; border-radius: 9px; font-size: 10px; font-weight: 700; }
.care-check.ready { color: #256d45; background: #e3f4e9; }
.care-check.missing { color: #9d3534; background: #fbe7e6; }
.task-field input, .task-field textarea, .task-field select { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #dce4e1; border-radius: 12px; color: #243c3a; background: #fff; font-weight: 400; }
.task-field textarea { resize: vertical; line-height: 1.5; }
.task-form-actions { display: flex; justify-content: flex-end; }
.task-form-actions .primary-button { width: auto; min-width: 180px; padding: 0 18px; }
.quiet-button, .archive-button { min-height: 40px; padding: 8px 12px; border: 0; border-radius: 10px; cursor: pointer; }
.quiet-button { color: #365f88; background: #edf3fa; }
.archive-button { color: #8a5757; background: #f8eeee; }
.task-board { display: grid; gap: 14px; }
.task-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 22px; border: 1px solid #e2e8e6; border-radius: 20px; background: #fff; box-shadow: 0 8px 24px #526a6808; }
.task-card.task-done { opacity: .72; }
.task-card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.task-card-title h2 { min-width: 0; overflow-wrap: anywhere; }
.task-card-main > p { margin: 0 0 14px; color: #61746e; font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.task-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: #77857f; font-size: 10px; }
.task-card-actions { display: flex; flex-wrap: wrap; align-items: end; justify-content: flex-end; gap: 8px; max-width: 330px; }
.task-card-actions label { display: grid; gap: 5px; color: #6c7d77; font-size: 10px; }
.task-card-actions select { min-width: 120px; }
.priority { flex: 0 0 auto; padding: 5px 8px; border-radius: 8px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.priority-low { color: #527361; background: #edf5ef; }
.priority-normal { color: #526e91; background: #edf2f8; }
.priority-high { color: #97563f; background: #f9ede7; }
.task-empty { border-style: dashed; }
.contact-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 18px 20px; border: 1px solid #ffffffc7; border-radius: 20px; background: #ffffff75; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.contact-toolbar form { flex: 1; max-width: 570px; }
.contact-toolbar form > label { display: block; margin-bottom: 7px; color: #596f69; font-size: 11px; font-weight: 650; }
.contact-toolbar form > div { display: flex; gap: 8px; }
.contact-toolbar input { min-width: 0; flex: 1; min-height: 44px; padding: 10px 13px; border: 1px solid #dce4e1; border-radius: 12px; color: #243c3a; background: #fff; }
.result-count { margin: 0 0 11px; color: #70817b; font-size: 11px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 15px; padding: 20px; border: 1px solid #e2e8e6; border-radius: 20px; background: #fff; box-shadow: 0 8px 24px #526a6808; }
.contact-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; background: linear-gradient(155deg, #c1a5ed, #9472c7); font-size: 18px; font-weight: 700; }
.contact-content { min-width: 0; }
.contact-content h2 { overflow-wrap: anywhere; }
.contact-organization { margin: 5px 0 14px; color: #697b75; font-size: 12px; }
.contact-content dl { display: grid; gap: 8px; margin: 14px 0; }
.contact-content dl div { min-width: 0; }
.contact-content dt { color: #82908b; font-size: 9px; text-transform: uppercase; letter-spacing: .6px; }
.contact-content dd { margin: 2px 0 0; color: #405650; font-size: 12px; overflow-wrap: anywhere; }
.contact-notes { margin: 14px 0 0; padding-top: 13px; border-top: 1px solid #edf0ed; color: #61746e; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.order-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; color: #526963; font-size: 11px; }
.order-summary { border-left: 5px solid #d6a438; }
.order-summary.is-open { border-left-color: #c94b49; }
.order-summary.is-done { border-left-color: #3f9963; }
.order-state.done, .order-step.done { color: #256d45; background: #e3f4e9; }
.order-state.open, .order-step.open { color: #9d3534; background: #fbe7e6; }
.order-state.progress { color: #8a6417; background: #fff2ce; }
.order-step { padding: 7px 9px; border-radius: 10px; font-weight: 700; }
.single-order-workbench { grid-column: 1 / -1; }
.order-hero { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: center; margin: 18px 0; padding: 18px; border-radius: 18px; background: #f6f8f7; }
.order-product-photo, .order-product-placeholder { width: 180px; height: 180px; border-radius: 16px; object-fit: contain; background: #fff; }
.order-product-placeholder { display: grid; place-items: center; padding: 16px; color: #71817c; font-size: 11px; text-align: center; }
.order-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.order-facts article { padding: 16px; border-radius: 14px; background: #f6f8f7; }
.order-facts p { margin: 5px 0; line-height: 1.5; }
.work-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 18px 0; }
.work-button { display: grid; min-height: 68px; place-items: center; padding: 14px; border: 0; border-radius: 16px; color: #fff; background: #356e63; font: inherit; font-weight: 750; text-align: center; text-decoration: none; cursor: pointer; }
.work-button.done { background: #2e8653; }
.work-button:disabled { color: #7c8783; background: #e4e9e7; cursor: not-allowed; }
.work-actions .quiet-button, .work-actions button { min-height: 68px; padding: 14px; border-radius: 16px; font-weight: 750; }
.export-button { display: inline-grid; place-items: center; padding: 0 18px; text-decoration: none; }
.accounting-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.accounting-table-wrap { overflow-x: auto; }
.accounting-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.accounting-table th, .accounting-table td { padding: 13px 14px; border-bottom: 1px solid #e7ecea; text-align: left; white-space: nowrap; }
.accounting-table th { color: #526a62; background: #f4f7f6; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.accounting-table td:nth-last-child(-n+3), .accounting-table th:nth-last-child(-n+3) { text-align: right; }
.placeholder-icon { display: block; color: #7c968c; margin-bottom: 18px; }
.placeholder-icon svg { width: 44px; height: 44px; }
.skip { position: fixed; top: -100px; background: white; color: #163c34; padding: 10px; z-index: 10; }
.skip:focus { top: 10px; left: 10px; }
@media (max-width: 760px) {
  .app-header { margin: 16px 16px 0; padding: 14px 15px; flex-wrap: wrap; gap: 12px; border-radius: 22px; }
  .brand { flex: 1; }
  .company-picker { order: 3; width: 100%; margin: 0; }
  .company-picker select { flex: 1; min-width: 0; }
  .profile-controls { margin-left: auto; border: 0; }
  .profile-controls span { display: none; }
  main { padding: 38px 22px 35px; min-height: 0; }
  .home-heading { text-align: center; margin-bottom: 35px; }
  .home-heading h1 { font-size: 26px; }
  .home-heading > p:last-child { font-size: 12px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 10px; }
  .tile { padding: 0; gap: 11px; }
  .tile-icon { width: 80px; height: 80px; border-radius: 21px; }
  .tile-icon svg { width: 35px; height: 35px; }
  .tile-label { font-size: 11px; }
  footer { padding: 15px 24px 25px; }
  .task-list li { padding: 20px; flex-wrap: wrap; }
  .metrics { gap: 9px; }
  .metrics article { padding: 15px 10px; }
  .metrics p { font-size: 10px; min-height: 32px; }
  .metrics strong { font-size: 28px; }
  .login-shell { min-height: 430px; }
  .login-card { padding: 30px 24px; }
  .task-toolbar { padding: 15px; }
  .task-toolbar strong { font-size: 26px; }
  .task-create { min-width: 0; }
  .task-form { grid-template-columns: 1fr; padding: 20px; }
  .task-field-wide { grid-column: auto; }
  .task-card { grid-template-columns: 1fr; padding: 19px; }
  .task-card-actions { max-width: none; justify-content: flex-start; }
  .task-card-actions label { flex: 1 1 130px; }
  .task-card-actions select { width: 100%; }
  .contact-toolbar { align-items: stretch; flex-direction: column; padding: 15px; }
  .contact-toolbar form { max-width: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .engraving-product-grid { grid-template-columns: 1fr; padding: 14px; }
  .order-hero, .order-facts, .work-actions { grid-template-columns: 1fr; }
  .order-product-photo, .order-product-placeholder { width: 100%; height: 220px; }
}
@media (max-width: 360px) {
  .app-header { margin: 12px 12px 0; padding: 12px; }
  .brand { font-size: 12px; gap: 7px; }
  .demo-pill { font-size: 8px; padding: 7px; }
  main { padding-left: 15px; padding-right: 15px; }
  .tile-icon { width: 72px; height: 72px; border-radius: 19px; }
  .tile-label { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }
 .engraving-preview { margin: 1rem 0; padding: 1.25rem; border: 1px dashed rgba(15, 23, 42, .25); border-radius: 1rem; background: #fff; text-align: center; }
 .engraving-preview strong { display: block; font-family: Georgia, serif; font-size: 1.25rem; line-height: 1.4; }
 .engraving-canvas { position: relative; width: min(100%, 240px); aspect-ratio: 1110 / 1478; margin: 1rem auto .6rem; overflow: hidden; border-radius: .8rem; background: #f3ead9; box-shadow: inset 0 0 0 1px rgba(94, 64, 35, .15); }
 .engraving-canvas img { display: block; width: 100%; height: 100%; object-fit: contain; }
 .engraving-canvas.motif-anker img { transform: translateY(-6%) scale(.8); }
 .engraving-configurator[hidden] { display: none; }
 .configurator-layout { display: grid; grid-template-columns: minmax(280px, 1.15fr) minmax(260px, .85fr); gap: 24px; align-items: start; }
 .configurator-stage { padding: 18px; border-radius: 18px; background: #f4f7f5; text-align: center; }
 .configurator-stage > p { margin: 12px 0 0; color: #6a7c76; font-size: 11px; }
 .configurator-canvas { position: relative; width: min(100%, 370px); aspect-ratio: 1110/1478; margin: auto; overflow: hidden; border: 2px dashed #8fac9f; border-radius: 18px; background: #f3ead9; }
 .center-guide { position: absolute; z-index: 5; top: 0; bottom: 0; left: 50%; border-left: 1px dashed #2f7d6855; pointer-events: none; }
 .config-object { position: absolute; touch-action: none; cursor: move; transform-origin: center; }
 .motif-object { inset: 0; }
 .configurator-canvas img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
 #configurator-text { left: 8%; right: 8%; bottom: 6%; min-height: 24%; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; color: #251b14; }
 #configurator-text strong { white-space: nowrap; font: inherit; }
 .config-object.selected { outline: 2px solid #2f7d68; outline-offset: 3px; }
 .config-object i { display: none; position: absolute; width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%; background: #2f7d68; box-shadow: 0 1px 5px #0004; cursor: nwse-resize; }
 .config-object.selected i { display: block; }
 .config-object i[data-corner="nw"] { left: -10px; top: -10px; }
 .config-object i[data-corner="ne"] { right: -10px; top: -10px; cursor: nesw-resize; }
 .config-object i[data-corner="sw"] { left: -10px; bottom: -10px; cursor: nesw-resize; }
 .config-object i[data-corner="se"] { right: -10px; bottom: -10px; }
 .configurator-controls { display: grid; gap: 12px; }
 .configurator-controls label { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; color: #526962; font-size: 12px; font-weight: 650; }
 .configurator-controls select { grid-column: 1/-1; width: 100%; }
 .configurator-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
 .config-nudges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 12px; }
 .config-nudges button { min-height: 42px; border: 1px solid #cad8d2; border-radius: 10px; background: #fff; color: #365d51; font-weight: 700; }
 .engraving-copy { position: absolute; left: 12%; right: 12%; bottom: 6%; min-height: 24%; display: flex; flex-direction: column; justify-content: center; color: #2f2117; }
 .engraving-canvas.engraving-heart_puzzle .engraving-copy { left: 25%; right: 25%; bottom: 10%; min-height: 18%; }
 .engraving-canvas.engraving-initials .engraving-copy { top: 8%; bottom: auto; min-height: 55%; writing-mode: vertical-rl; align-items: center; }
 .engraving-choice { margin: 0 0 .7rem; color: #4b5563; }
 .calendar-engraving { width: min(100%, 420px); margin: 1rem auto; padding: 1rem; color: #111; border-radius: .8rem; background: #fff; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12); }
 .calendar-engraving h3 { margin: 0 0 1rem; padding-bottom: .45rem; border-bottom: 3px solid currentColor; font: 400 1.65rem/1.1 "Times New Roman", Times, serif; letter-spacing: .02em; }
 .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .52rem .3rem; }
 .calendar-days span { position: relative; z-index: 0; display: grid; min-height: 2.3rem; place-items: center; font: italic 1.2rem/1 "Arial Narrow", "Liberation Sans Narrow", Arial, sans-serif; }
 .calendar-days .selected::before { content: '♡'; position: absolute; z-index: -1; font: 5rem/.72 "Times New Roman", serif; transform: translateY(.05rem) scaleX(1.3); }
 .calendar-engraving p { margin: .8rem .25rem 0; text-align: right; font: 1.45rem/1.05 "Segoe Script", "Lucida Handwriting", cursive; }
 .calendar-engraving-psd { display: block; padding: 0; overflow: visible; border-radius: 0; background: #fff; box-shadow: none; }
 .calendar-engraving-psd .calendar-title { font: 190px TrajanPro-Bold, "Times New Roman", serif; }
 .calendar-engraving-psd .calendar-footer { font: 150px SheAlwaysWalkAloneDemo, "Segoe Script", cursive; }
.product-sku { margin: 7px 0 0; color: #536a63; font-size: 11px; font-weight: 750; letter-spacing: .025em; }
/* The SVG itself is the editor; all resizing is uniform and reusable in downloads. */
.photo-editor[hidden]{display:none}
.photo-editor-layout{display:grid;grid-template-columns:minmax(160px,1fr) minmax(240px,1.4fr) minmax(200px,.9fr);gap:22px;align-items:start}
.photo-reference{display:block;width:100%;max-height:480px;object-fit:contain;border-radius:16px}
.photo-stage{background:white;border:1px dashed #85909d;border-radius:12px;min-height:160px;overflow:hidden;touch-action:none}
.photo-stage svg{display:block;width:100%;max-height:600px;min-height:160px;user-select:none}
.photo-stage [data-element]{cursor:move;outline:none}
.photo-stage .element-hit{stroke:transparent;stroke-width:2}
.photo-stage .selected .element-hit{stroke:#287ddd;stroke-dasharray:7 4}
.photo-stage .element-handle{fill:#287ddd;stroke:white;stroke-width:2;display:none;cursor:nwse-resize}
.photo-stage .selected .element-handle{display:block}
#photo-editor-form{display:grid;gap:12px}
#photo-editor-form label{display:grid;gap:5px;font-size:14px}
#photo-editor-form input,#photo-editor-form select,#photo-editor-form textarea{width:100%;min-width:0;min-height:42px;border:1px solid var(--border,#ccd2db);border-radius:9px;padding:9px;background:#fff;font:inherit}
.photo-move{display:flex;gap:6px;flex-wrap:wrap}
.photo-move button{min-width:42px;min-height:44px;border:1px solid #ccd2db;border-radius:9px;background:#fff;font-size:22px}
.photo-editor-actions{display:grid;gap:10px}
.photo-order-preview{display:block;max-height:450px;max-width:100%;width:auto;margin:15px auto;background:white}
@media(max-width:1000px){.photo-editor-layout{grid-template-columns:1fr 1.3fr}.photo-editor-layout form{grid-column:1/-1}}
@media(max-width:650px){.photo-editor-layout{grid-template-columns:minmax(0,1fr)}.photo-editor-layout form{grid-column:auto}.photo-reference{max-height:230px}.photo-stage svg{max-height:450px}}
.website-layout{display:grid;grid-template-columns:minmax(200px,.7fr) minmax(0,1.5fr);gap:20px;margin-top:20px}.website-list{display:flex;flex-direction:column;gap:8px;min-width:0}.website-list button{display:grid;gap:8px;text-align:left;padding:18px;border:1px solid #d5dcdf;border-radius:14px;background:white;font:inherit;overflow-wrap:anywhere}.website-list button[aria-pressed=true],.contact-actions button[aria-pressed=true]{border:2px solid #287c6a;background:#eef8f4}.website-detail{min-width:0;overflow-wrap:anywhere}.website-detail dl>div{padding:8px 0;border-bottom:1px solid #e3e8e7}.website-detail dt{font-weight:600}.website-detail dd{margin:4px 0;white-space:pre-wrap}.website-detail form,#website-setup,#website-search{display:grid;gap:12px;margin:16px 0}.website-detail label,#website-setup label,#website-search label{display:grid;gap:7px}.website-detail input,.website-detail select,.website-detail textarea,#website-setup input,#website-search input{width:100%;min-width:0;padding:12px;border:1px solid #ccd5d9;border-radius:8px;font:inherit;background:white}.website-detail textarea{min-height:130px}.website-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:10px;margin:20px 0}.website-photos img{width:100%;height:130px;object-fit:cover;border-radius:10px}.website-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.website-metrics strong{font-size:32px}@media(max-width:700px){.website-layout{grid-template-columns:minmax(0,1fr)}.website-list{max-height:280px;overflow:auto}.website-metrics{grid-template-columns:minmax(0,1fr)}}
.website-panel,.website-detail,.website-metrics>.panel{padding:22px}.website-panel{margin-top:18px}.website-panel h2,.website-detail h2{margin-top:0}.website-metrics>.panel p{margin-top:0}.website-detail .contact-actions{margin-top:14px}
.website-purchase,.website-sales{border-top:1px solid #dce4e1;margin-top:22px;padding-top:12px}.website-purchase p,.website-sales p{font-size:14px;line-height:1.5;color:#53645e}.website-detail input[type=file]{max-width:100%;overflow:hidden}
.vehicle-heading{border-bottom:1px solid #dce4e1;padding-bottom:14px}.vehicle-heading p{line-height:1.5}.vehicle-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:18px 0}.vehicle-tabs button{min-height:52px;padding:10px;white-space:normal;line-height:1.35;border:1px solid #cad8d3}.vehicle-tabs button[aria-selected=true]{background:#256958;color:white;border-color:#256958}.vehicle-origin{background:#f0f5f3;border-radius:10px;padding:12px;font-size:14px;line-height:1.55}.vehicle-workflow{border-top:1px solid #dce4e1;margin-top:26px;padding-top:12px}.vehicle-workflow>summary{font-weight:600;padding:12px 0;cursor:pointer}.vehicle-notice:not(:empty){padding:12px;background:#e9f6ef;border-radius:10px;color:#225940}.vehicle-error:not(:empty){padding:12px;background:#fff0ed;border-radius:10px;color:#872e22}.check-overview{padding:16px;border:1px solid #d1ded7;border-radius:14px;background:#f6faf8}.check-overview h3{margin-top:0}.check-overview progress{width:100%;height:10px;accent-color:#287b62}.check-hint{font-size:13px;line-height:1.55;color:#53645e}.check-overview [data-check-save-state]{font-weight:600;font-size:14px}.check-open summary,.check-extra summary{cursor:pointer;min-height:44px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:3px}.check-open ul{padding-left:20px;font-size:14px;line-height:1.6}.website-detail form#vehicle-inspection-form{display:block}.check-section{border:1px solid #d8e2de;border-radius:13px;margin:12px 0;overflow:hidden}.check-section>summary{cursor:pointer;list-style-position:inside;padding:17px 14px;background:#f6f8f7;font-weight:650;line-height:1.5;min-height:62px}.check-section>summary span{display:inline}.check-section>summary small{display:block;font-weight:400;color:#5c6c65;margin:4px 0 0 16px}.check-priority{border:2px solid #9a7843}.check-priority>summary{background:#fff7e9}.check-section-body{padding:16px}.check-location{border-top:1px solid #e1e7e3;padding:14px 0}.check-location:first-of-type{border-top:0}.check-location h4{margin:0 0 12px}.check-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.check-section label{margin-bottom:12px}.check-section select,.check-section input{min-height:48px}.website-detail .check-section textarea{min-height:80px}.check-photo-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.check-photo-actions button{min-height:44px;font-size:14px}.check-savebar{position:sticky;top:8px;z-index:3;display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#fff;padding:9px 0;border-bottom:1px solid #e2e8e4;margin:14px 0}.check-savebar button{min-height:48px;font-size:14px;line-height:1.35}.check-equipment-row{border-top:1px solid #dce4e1;padding:14px 0}.website-detail .check-equipment{display:flex;align-items:center;gap:12px;font-weight:600;cursor:pointer}.check-equipment input[type=checkbox]{width:25px;min-height:25px;height:25px;accent-color:#256958;flex:none}.check-equipment small{display:block;font-weight:400;margin-top:5px;color:#53645e}.check-equipment-result{display:block;font-size:13px;margin-top:8px}.check-equipment-row button[aria-pressed=true]{background:#fff0e9;border:1px solid #b67d5b}.defect-gallery{margin-top:24px;border-top:1px solid #dce4e1;padding-top:12px}.defect-gallery figure{margin:0}.defect-gallery figcaption{font-size:13px;line-height:1.5;padding:7px 0}.defect-gallery figcaption p{white-space:pre-wrap}.defect-gallery label{margin-bottom:12px}.website-detail [hidden]{display:none!important}button:disabled{cursor:default}.website-detail select:focus,.website-detail input:focus,.website-detail textarea:focus{outline:3px solid #97c1b4;outline-offset:2px}@media(max-width:700px){.vehicle-tabs{grid-template-columns:minmax(0,1fr)}.vehicle-tabs button{min-height:46px}.check-columns{grid-template-columns:minmax(0,1fr)}.check-section-body{padding:12px}.website-detail{padding:16px}.check-savebar{top:0}.website-list{max-height:230px}.check-photo-actions{display:grid;grid-template-columns:minmax(0,1fr)}.check-section>summary{padding:14px 12px}.vehicle-origin{font-size:13px}}
.check-savebar [data-check-feedback]{grid-column:1/-1;color:#325c4d;font-size:12px;line-height:1.4;padding:0 3px}
.check-section.has-findings{border-color:#bd7850}.check-section.has-findings>summary{background:#fff2e9}.check-section.has-findings [data-section-state]{color:#934821;font-weight:650}
.stock-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:20px;margin-top:20px}.stock-card{border:1px solid #cbd6d2;border-radius:20px;overflow:hidden;box-shadow:0 3px 14px #123f450c;min-width:0}.stock-card>div{padding:20px}.stock-card img,.stock-no-image{width:100%;height:190px;object-fit:cover;background:#edf2f0}.stock-no-image{display:grid;place-items:center;color:#596b65}.stock-card h2{font-size:1.35rem}.stock-card label{display:block;margin-top:14px}.stock-card select,.stock-detail input,.stock-detail select,.stock-detail textarea{width:100%;min-height:46px}.stock-detail input[type=checkbox]{width:22px;min-height:22px}.stock-detail form{display:grid;gap:16px;max-width:680px}.stock-detail label{display:grid;gap:6px}.stock-detail{margin-top:20px;padding:24px}.stock-hero{width:100%;max-height:350px;object-fit:contain;border-radius:14px;background:#fff}.stock-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:14px}.stock-summary strong,.stock-summary span{display:block}.stock-summary strong{font-size:1.5rem}.stock-filters{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.stock-filters button{min-height:44px}.stock-filters [aria-pressed=true]{outline:2px solid #123f45}.stock-zugesagt{background:#eef0fa}.stock-angekauft{background:#e0f3e7}.stock-abholung{background:#e7f1fa}.stock-eingetroffen{background:#e0f4ee}.stock-aufbereitung{background:#fff0d9}.stock-inseriert{background:#e7efff}.stock-reserviert{background:#f6e7fa}.stock-verkauft{background:#e3eadf}.stock-expenses{list-style:none;padding:0}.stock-expenses li{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;border-bottom:1px solid #cad5cf;padding:14px 0}.stock-expenses span{flex:1;min-width:130px;overflow-wrap:anywhere}#vehicle-qr{width:180px;max-width:100%;padding:10px;background:white;margin:16px 0}.stock-card p,.stock-detail p{overflow-wrap:anywhere}@media(max-width:600px){.stock-detail{padding:16px}.stock-summary{grid-template-columns:1fr}.stock-card img{height:180px}}
#website-mail-host{margin-top:24px;padding:18px;min-width:0}#website-mail-host form{display:grid;gap:14px;margin:20px 0}#website-mail-host label{display:grid;gap:6px}#website-mail-host textarea,#website-mail-host input,#website-mail-host select{width:100%;min-width:0;min-height:44px}#website-mail-host code{overflow-wrap:anywhere}.mail-history{padding:16px 0;border-top:1px solid #ccd9d5}.mail-history pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;max-height:440px;overflow:auto}.mail-history p{overflow-wrap:anywhere}
.mail-signature-preview{width:100%;height:330px;border:0}

/* Summary cards need room for wrapped labels inside their rounded edges. */
.stock-summary > article { min-width: 0; padding: 18px 20px; }
.stock-summary strong { line-height: 1.25; margin-bottom: 7px; overflow-wrap: anywhere; }
.stock-summary span { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.stock-card h2 { line-height: 1.4; overflow-wrap: anywhere; }
.stock-detail input, .stock-detail select, .stock-detail textarea { min-width: 0; padding: 11px 13px; border: 1px solid #cbd6d2; border-radius: 10px; }
@media (max-width: 600px) {
  .stock-summary { gap: 10px; }
  .stock-summary > article { padding: 16px 18px; border-radius: 16px; }
  .stock-detail .contact-actions { align-items: stretch; }
  .stock-detail .contact-actions > * { flex: 1 1 160px; text-align: center; }
}

/* Fahrzeugbestand: manuelle Anlage, schnelle Kosten und Inserat/Exposé */
.stock-create{margin:18px 0;padding:22px}.stock-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.stock-form-grid>label{display:grid;gap:6px;min-width:0}.stock-form-grid .full-width,.stock-form-grid .check-label{grid-column:1/-1}.stock-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:24px 0 18px}.stock-tabs button{min-height:50px;border:1px solid #b9cbc4;border-radius:12px;background:#fff;color:#123f45;font-weight:700}.stock-tabs button[aria-selected=true]{background:#123f45;color:#fff}.stock-costs,.stock-photos{margin-top:28px;padding-top:20px;border-top:1px solid #cad6d2}.cost-basis{padding:14px;border-radius:12px;background:#f6f3ec}.cost-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}.cost-totals span{display:grid;gap:5px;padding:13px;border-radius:12px;background:#fff}.expense-chips{display:grid;gap:8px;margin:16px 0}.expense-chip{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid #cbd7d2;border-radius:12px;background:#fff}.expense-chip button{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:#f8e4df;color:#7c2e20;font-size:21px}.expense-entry{display:grid!important;grid-template-columns:minmax(180px,2fr) minmax(120px,1fr) minmax(150px,1fr) minmax(135px,1fr) auto!important;max-width:none!important;align-items:end}.expense-entry label{margin:0}.expense-entry button{min-height:46px;margin:0}.listing-note{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:13px;border-radius:12px;background:#fff}.listing-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0;padding:16px;border:1px solid #cbd7d2;border-radius:14px}.listing-group legend{padding:0 8px;font-weight:700;color:#123f45}.listing-field{display:grid;gap:7px;padding:11px;border-radius:12px;border:1px solid transparent;min-width:0}.listing-field:has(textarea){grid-column:1/-1}.listing-label{display:flex;align-items:center;justify-content:space-between;gap:8px}.listing-label label{font-weight:650}.provenance-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:750}.provenance-imported,.listing-field.provenance-imported{background:repeating-linear-gradient(135deg,#fde7e7,#fde7e7 7px,#fff3f3 7px,#fff3f3 14px);border-color:#eccaca}.provenance-edited,.listing-field.provenance-edited{background:#e8f1fb;border-color:#bfd4ea}.provenance-reviewed,.listing-field.provenance-reviewed{background:#e7f5ec;border-color:#b9ddc6}.provenance-entered,.listing-field.provenance-entered{background:#f0f2f1;border-color:#d3d9d6}.review-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:8px!important;font-size:12px}.review-check input{width:18px!important;min-height:18px!important}.expose-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;border-radius:14px;background:#f6f3ec}.expose-actions .primary-button{display:inline-grid;place-items:center;text-decoration:none;min-width:170px}.is-disabled{pointer-events:none;opacity:.48}.stock-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.stock-photo-grid figure{margin:0;padding:10px;border:1px solid #cbd7d2;border-radius:12px;background:#fff}.stock-photo-grid img{width:100%;height:150px;object-fit:cover;border-radius:8px}.stock-photo-grid figcaption{min-height:38px;padding:8px 0;font-size:12px}.stock-photo-grid figure>div{display:flex;gap:6px;flex-wrap:wrap}.stock-photo-grid button{min-height:38px;font-size:12px}
.stock-import{margin:16px 0 22px;padding:16px;border:1px solid #d7be91;border-radius:14px;background:#faf7f0}.stock-import h3{margin-top:0}.stock-import>label{display:grid;gap:7px;max-width:620px}.stock-import .quiet-button{align-self:end}#stock-import-status{grid-column:1/-1}
@media(max-width:850px){.expense-entry{grid-template-columns:1fr 1fr!important}.expense-entry button{grid-column:1/-1}.listing-group{grid-template-columns:1fr}.listing-field:has(textarea){grid-column:auto}}
@media(max-width:600px){.stock-form-grid,.stock-tabs,.listing-group,.expense-entry{grid-template-columns:1fr!important}.stock-form-grid .full-width,.stock-form-grid .check-label,.expense-entry button{grid-column:auto}.expense-chip{grid-template-columns:minmax(0,1fr) auto}.expense-chip strong{grid-column:1/2}.expense-chip button{grid-column:2;grid-row:1/3}.expose-actions{align-items:stretch;flex-direction:column}.expose-actions .primary-button{width:100%}.listing-label{align-items:flex-start;flex-direction:column}}
