.custom-order-entry {
  margin-block: 24px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(115deg, color-mix(in srgb, var(--paper) 85%, transparent), color-mix(in srgb, var(--ink) 4%, var(--paper)));
  color: var(--ink);
  box-shadow: inset 0 1px 0 #ffffff12;
}
.custom-order-entry > summary { display: flex; justify-content: space-between; align-items: center; min-height: 58px; gap: 16px; padding: 15px 26px; list-style: none; cursor: pointer; font-size: .9rem; font-weight: 600; }
.custom-order-entry > summary::-webkit-details-marker { display: none; }
.custom-entry-sign { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.custom-entry-sign::before, .custom-entry-sign::after { content: ""; position: absolute; background: currentColor; inset: 7px 1px; }
.custom-entry-sign::after { transform: rotate(90deg); }
.custom-order-entry[open] .custom-entry-sign::after { transform: rotate(0); }
.custom-order-entry[open] > summary { border-bottom: 1px solid var(--line); }
.custom-order-invitation { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); padding: clamp(22px, 3vw, 38px) 26px; }
.custom-order-mark { flex: 0 0 70px; color: var(--muted); }
.custom-order-mark svg { display: block; width: 100%; fill: none; stroke: currentColor; stroke-width: .8; }
.custom-order-kicker { font-size: .82rem; color: var(--muted); margin: 0 0 6px; }
.custom-order-invitation h2 { font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.65; font-weight: 600; margin: 0 0 8px; }
.custom-order-invitation p:last-child { color: var(--muted); line-height: 1.9; margin: 0; font-size: .9rem; }
.custom-order-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 10px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.custom-order-invitation > button { margin-inline-start: auto; flex-shrink: 0; }
.custom-order-button:hover { opacity: .85; }
.custom-order-dialog { width: min(720px, calc(100vw - 28px)); max-width: none; max-height: 90dvh; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: var(--paper); box-sizing: border-box; }
.custom-order-dialog::backdrop { background: #000a; backdrop-filter: blur(7px); }
body:has(.custom-order-dialog[open]) { overflow: hidden; }
.custom-order-dialog header { padding-inline-end: 30px; margin-block-end: 26px; }
.custom-order-dialog h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.6; font-weight: 650; }
.custom-order-dialog header > p:last-child { margin: 0; font-size: .9rem; color: var(--muted); }
.custom-order-close { position: sticky; z-index: 2; top: 0; display: grid; place-items: center; width: 38px; height: 38px; margin-inline-start: auto; margin-block-end: -38px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: inherit; font-size: 1.5rem; cursor: pointer; }
.custom-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.custom-form-grid label { display: block; min-width: 0; font-size: .875rem; font-weight: 500; }
.custom-form-wide { grid-column: 1 / -1; }
.custom-form-grid :is(input, select, textarea) { box-sizing: border-box; display: block; width: 100%; margin-top: 8px; padding: 11px 12px; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--ink) 3%, var(--paper)); color: var(--ink); font: inherit; font-size: 1rem; }
.custom-form-grid select { padding-inline-end: 32px; }
.custom-form-grid textarea { resize: vertical; }
.custom-form-grid input[type="date"] { direction: ltr; }
.custom-form-grid :is(input, textarea)::placeholder { color: var(--muted); opacity: .8; font-size: .875rem; }
.custom-optional { font-weight: 400; color: var(--muted); }
.custom-storage-note { margin: 20px 0; color: var(--muted); font-size: .82rem; line-height: 1.95; }
.custom-field-error { color: #b24438; font-size: .875rem; line-height: 1.9; }
[data-theme="dark"] .custom-field-error { color: #ffa498; }
.custom-order-success { text-align: center; padding-block: 36px 18px; }
.custom-order-success > svg { width: 54px; height: 54px; fill: none; stroke: currentColor; stroke-width: 1.3; margin-bottom: 20px; }
.custom-order-success p { font-size: .95rem; line-height: 1.9; color: var(--muted); }
.custom-success-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 15px; margin-top: 24px; }
.custom-success-actions > button:not(.custom-order-button) { min-height: 44px; padding: 10px; font: inherit; font-size: .875rem; color: inherit; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 6px; cursor: pointer; }
.custom-request-section { margin-top: 36px; }
.custom-request-section > h2 { font-size: 1.2rem; font-weight: 600; }
.custom-request { padding: 18px; margin-block: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.custom-request summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; cursor: pointer; font-size: .9rem; }
.custom-request summary span, .custom-request time { color: var(--muted); font-size: .82rem; }
.custom-request dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 16px; }
.custom-request dl div { min-width: 0; }
.custom-request dt { color: var(--muted); font-size: .82rem; margin-bottom: 6px; }
.custom-request dd { margin: 0; font-size: .9rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.custom-request .custom-request-idea { grid-column: 1 / -1; }
.custom-request form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.custom-request form label { display: grid; gap: 8px; font-size: .875rem; }
.custom-request form :is(select, button), .custom-request-download { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: inherit; padding: 8px 12px; font: inherit; font-size: .875rem; }
.custom-request-download { display: block; margin-top: 18px; cursor: pointer; }
.custom-order-entry summary:focus-visible, .custom-order-dialog :is(button,input,select,textarea):focus-visible, .custom-request :is(summary,button,select):focus-visible, [data-custom-order-open]:focus-visible { outline: 2px solid var(--muted); outline-offset: 4px; }
@media (max-width: 700px) {
  .custom-order-entry > summary { padding-inline: 18px; }
  .custom-order-invitation { flex-wrap: wrap; padding: 24px 18px; gap: 14px; }
  .custom-order-mark { flex-basis: 44px; }
  .custom-order-invitation > div:nth-child(2) { flex: 1; min-width: 0; }
  .custom-order-invitation > button { width: 100%; margin-top: 5px; }
  .custom-order-kicker { font-size: .78rem; }
  .custom-form-grid { grid-template-columns: 1fr; gap: 18px; }
  .custom-order-dialog { max-height: 92dvh; }
  #customOrderForm > button { width: 100%; }
}

.custom-order-fab { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 45; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 30px; background: color-mix(in srgb, var(--paper) 90%, transparent); color: var(--ink); backdrop-filter: blur(18px); box-shadow: 0 6px 25px #0000001c, inset 0 1px 0 #ffffff17; font: inherit; font-size: .85rem; cursor: pointer; }
.custom-order-fab:hover { background: var(--ink); color: var(--paper); }
.custom-order-fab .ui-icon { width: 23px; height: 23px; }
.custom-order-fab:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
body.app-mode .custom-order-fab { display: none; }
.home-custom-order { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 90px); width: min(1280px, calc(100% - max(7.2vw, 32px))); margin: clamp(45px, 7vw, 95px) auto; padding: clamp(25px, 4vw, 48px); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: color-mix(in srgb, var(--ink) 2%, var(--paper)); }
.home-custom-order[hidden] { display: none; }
.home-custom-copy h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.7; margin: 8px 0 14px; }
.home-custom-copy > p:not(.custom-order-kicker) { color: var(--muted); line-height: 2; font-size: .95rem; }
.home-custom-full { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: .875rem; text-decoration: underline; text-underline-offset: 7px; cursor: pointer; }
.home-custom-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.home-custom-fields label { min-width: 0; font-size: .875rem; }
.home-custom-idea { grid-column: 1 / -1; }
.home-custom-fields :is(input,textarea) { display: block; box-sizing: border-box; width: 100%; margin-top: 8px; padding: 11px 12px; min-height: 44px; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 1rem; }
.home-custom-fields textarea { resize: vertical; }
.home-custom-fields textarea::placeholder { color: var(--muted); font-size: .875rem; }
.home-custom-submit { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-top: 18px; }
.home-custom-submit p { margin: 0; font-size: .8rem; }
.home-custom-submit button { flex-shrink: 0; }
.home-custom-feedback { color: var(--ink); font-size: .9rem; line-height: 2; }
.home-custom-track { color: var(--ink); font-size: .875rem; text-underline-offset: 6px; }
.home-custom-order :is(input,textarea,button,a):focus-visible { outline: 2px solid var(--muted); outline-offset: 4px; }
@media (max-width: 760px) {
  .home-custom-order { grid-template-columns: 1fr; gap: 25px; padding: 24px; }
  .home-custom-submit { flex-wrap: wrap; gap: 16px; }
  .home-custom-submit button { width: 100%; }
  .custom-order-fab { right: 14px; bottom: max(16px, env(safe-area-inset-bottom)); width: 52px; padding: 0; justify-content: center; }
  .custom-order-fab span { display: none; }
}
@media (max-width: 420px) { .home-custom-fields { grid-template-columns: 1fr; } }
