/* Customer application, authentication and quotation share one visual system. */
.customer-mode {
  --blue: #2463eb;
  --blue-dark: #174dcb;
  --ink: #1c2637;
  --muted: #667287;
  --line: #e8ecf2;
  --bg: #f6f8fb;
  font-size: 1rem;
  background: radial-gradient(ellipse at 50% 0, #edf3ff 0, transparent 620px), var(--bg);
}
.customer-mode .customer-brand {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 5;
  height: 84px;
  background: #ffffffed;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #e5eaf1;
}
.customer-header-inner {
  width: min(944px, 100%);
  padding: 0 32px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.customer-header-start, .customer-header-account { display: flex; align-items: center; gap: 20px; min-width: 0; }
.customer-header-account { justify-content: flex-end; gap: 14px; }
.customer-mode .customer-brand img { display: block; width: 96px; height: 60px; object-fit: contain; flex: none; }
.customer-page-name { font-size: .875rem; font-weight: 650; color: #536077; }
.customer-account-name { display: inline-flex; align-items: baseline; gap: .3em; min-width: 0; font-size: .875rem; color: var(--muted); white-space: nowrap; }
.customer-account-name strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.customer-mode .customer-brand .btn { min-height: 38px; padding: 7px 13px; border-radius: 10px; font-size: .875rem; }
.customer-mode main { max-width: 944px; padding: 40px 32px 72px; }
.customer-mode .heading { margin-bottom: 28px; }
.customer-mode h1 { font-size: 2rem; line-height: 1.4; letter-spacing: -.06em; font-weight: 750; }
.customer-mode h2 { font-size: 1.125rem; font-weight: 750; }
.customer-mode h3 { font-size: 1rem; }
.customer-mode .heading p { margin-top: 10px; font-size: .9375rem; color: var(--muted); line-height: 1.8; }
.customer-mode .eyebrow { display: none; }
.customer-mode .panel {
  border: 1px solid #e2e7ef;
  border-radius: 20px;
  box-shadow: 0 3px 5px #253c6103, 0 12px 36px #253c6105;
}
.customer-mode .section { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 28px; }
.customer-mode .rail p { font-size: .875rem; line-height: 1.7; margin-top: 5px; }
.customer-mode .fields { gap: 20px; }
.customer-mode .row2 { gap: 20px 18px; }
.customer-mode .row3 { gap: 14px; }
.customer-mode label, .customer-mode legend { font-size: .875rem; font-weight: 600; line-height: 1.6; }
.customer-mode label small, .customer-mode .hint, .customer-mode .builtin-hint { font-size: .8125rem; line-height: 1.7; }
.customer-mode label small { display: inline-block; margin-top: 7px; }
.customer-mode input:not([type=checkbox],[type=radio]), .customer-mode textarea, .customer-mode select {
  min-height: 48px;
  border-color: #dce3ed;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color .16s, box-shadow .16s;
}
.customer-mode input:not([type=checkbox],[type=radio]):hover, .customer-mode textarea:hover, .customer-mode select:hover { border-color: #becbdc; }
.customer-mode input:not([type=checkbox],[type=radio]):focus, .customer-mode textarea:focus, .customer-mode select:focus {
  outline: none;
  border-color: #759bf5;
  box-shadow: 0 0 0 3px #2463eb12;
}
.customer-mode input::placeholder, .customer-mode textarea::placeholder { color: #8490a3; font-size: .875rem; }
.customer-mode select {
  appearance: none;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667287' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.customer-mode input[type=checkbox], .customer-mode input[type=radio] { width: 18px; height: 18px; }
.customer-mode .btn { min-height: 44px; padding: 10px 17px; font-size: .875rem; border-radius: 10px; font-weight: 650; }
.customer-mode .btn.primary { box-shadow: inset 0 1px 0 #ffffff24, 0 3px 6px #2463eb1a; }
.customer-mode .btn.primary:hover { box-shadow: inset 0 1px 0 #ffffff24, 0 4px 10px #2463eb24; }
.customer-mode .btn.secondary { border-color: #dce3ec; color: #4b586e; }
.customer-mode .btn.text { min-height: 32px; padding: 3px 0; }
.customer-mode .customer-login-note {
  margin: 0 0 24px;
  padding: 18px 22px;
  border: 1px solid #dce6f6;
  background: #f0f5fe;
  border-radius: 14px;
  font-size: .875rem;
  color: #536985;
  gap: 14px;
}
.customer-mode .customer-auth-buttons { gap: 8px; }
.customer-mode .service { padding: 20px 34px; background: #fbfcfe; }
.customer-mode .service summary { font-size: .875rem; font-weight: 600; color: #53647f; }
.customer-mode .tag { font-size: .8125rem; padding: 4px 9px; border-radius: 6px; }
.customer-mode .product { padding: 22px; background: #fbfcfe; border-color: #e4eaf2; border-radius: 14px; }
.customer-mode .product-head { margin-bottom: 20px; }
.customer-mode .product-head .tag { display: none; }
.customer-mode .product-head h3 { margin: 0; }
.customer-mode .add-product { background: #fff; }
.customer-mode .estimate { padding: 20px; border-color: #dbe6fd; background: #f0f5ff; border-radius: 12px; }
.customer-mode .estimate strong { font-size: .9375rem; font-weight: 650; }
.customer-mode .estimate small { font-size: .8125rem; line-height: 1.7; }
.customer-mode .estimate b { font-size: 1.625rem; font-weight: 750; letter-spacing: -.045em; }
.customer-mode .choices { gap: 10px; }
.customer-mode .choices legend { margin-bottom: 10px; }
.customer-mode .choices label { padding: 12px 14px; gap: 9px; border-radius: 10px; background: #fff; flex: 1; }
.customer-mode .choices label:has(:checked) { background: #f1f5ff; border-color: #9fbdf9; color: #235ac9; }
.customer-mode .form-footer { padding: 24px 34px; background: #fcfdff; gap: 12px; }
.customer-mode .form-footer>.primary { min-height: 48px; min-width: 220px; font-size: 1rem; }
.customer-mode .customer-profile { margin-bottom: 24px; border-radius: 14px; }
.customer-mode .customer-profile summary { padding: 19px 24px; color: #4b5b73; font-size: .9375rem; font-weight: 600; }
.customer-mode .customer-profile form { box-shadow: none; }
.customer-mode #customerSignupForm .section { padding: 28px; }
.customer-mode #signupProfileFields>.wide { grid-column: auto; }
.customer-mode #customerSignupForm .signup-footer { padding: 24px 28px; grid-template-columns: minmax(0,1fr); align-items: center; gap: 12px; }
.customer-mode #customerSignupForm .signup-footer>* { grid-column: 1; grid-row: auto; }
.customer-mode #signupToLogin { font-size: .875rem; border-color: #dce3ec; background: #fff; }
.customer-mode #customerSignupForm .check { grid-template-columns: 18px minmax(0,1fr); gap: 8px 10px; }
.customer-mode #signupTaxNote { padding: 14px 16px; border-radius: 10px; }
.customer-mode #customerLoginView { max-width: 540px; margin: 12px auto 0; }
.customer-mode #customerLoginView .heading { text-align: center; margin-bottom: 32px; }
.customer-mode #customerLoginView .heading h1 { font-size: 1.75rem; }
.customer-mode #customerLoginView .section { grid-template-columns: 1fr; gap: 26px; padding: 34px; }
.customer-mode #customerLoginView .rail p { margin-top: 5px; font-size: .875rem; }
.customer-mode #customerAuthForm { gap: 20px; }
.customer-mode #customerAuthForm input { min-height: 50px; }
.customer-mode #customerAuthForm>.btn:not(.text) { min-height: 48px; font-size: .9375rem; }
.customer-mode .login-reset-link { justify-self: end; margin-top: -10px; font-size: .8125rem; font-weight: 500; color: #667287; }
.customer-mode #customerAuthSubmit { margin-top: 4px; }
.customer-mode #authSwitchRegister { background: #f8faff; }
.customer-mode .quote-actions { justify-content: flex-end; gap: 10px; margin-bottom: 20px; }
.customer-mode .quote-header { padding: 30px 34px; background: #f3f7ff; }
.customer-mode .quote-header h2 { font-size: 1.5rem; color: #284875; }
.customer-mode .quote-header p { margin-top: 6px; font-size: .8125rem; }
.customer-mode .quote-detail { padding: 32px 34px; gap: 28px; font-size: .9375rem; }
.customer-mode .quote-detail h3 { margin-bottom: 8px; }
.customer-mode .quote-detail .party { gap: 24px; }
.customer-mode .quote-product { border-radius: 12px; padding: 18px; background: #fbfcfe; }
.customer-mode .quote-detail .total-final { padding-top: 16px; font-size: 1.25rem; }
.customer-mode .quote-detail .notice { padding: 18px; border-radius: 10px; font-size: .875rem; line-height: 1.8; }
.customer-mode .error { font-size: .875rem; }
.customer-mode .customer-auth-dialog { border-radius: 20px; padding: 28px; }
.customer-mode .toast { font-size: .875rem; border-radius: 12px; padding: 14px 18px; }
/* Keep headings, helper text and controls together inside separate form cards. */
.customer-mode #applyForm, .customer-mode #customerSignupForm { background: transparent; border: 0; box-shadow: none; overflow: visible; }
.customer-mode #applyForm>.section, .customer-mode #customerSignupForm>.section {
  margin-top: 18px;
  border: 1px solid #e2e7ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 18px #253c6104;
}
.customer-mode #customerSignupForm>.section:first-child { margin-top: 0; }
.customer-mode #applyForm>.service { border: 1px solid #e2e7ef; border-radius: 14px; background: #fff; padding: 18px 28px; }
.customer-mode #applyForm>.form-footer, .customer-mode #customerSignupForm>.form-footer { margin-top: 18px; border: 0; border-radius: 14px; background: transparent; padding: 10px 0 0; }
.customer-mode #applyForm>.form-footer>.primary { width: 100%; }
.customer-mode #customerSignupForm .signup-footer { padding: 10px 0 0; }
.customer-mode #customerSignupForm .choices { grid-template-columns: 1fr 1fr; gap: 12px; }
.customer-mode #customerSignupForm .choices label { align-items: flex-start; padding: 16px; }
.customer-mode #customerSignupForm .choices input { margin-top: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .customer-mode main>section:not([hidden]):not(#loading) { animation: customer-enter .22s ease-out both; }
  .customer-mode .btn { transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; }
  .customer-mode .btn:not(:disabled):hover { transform: translateY(-1px); }
  .customer-mode .btn:not(:disabled):active { transform: translateY(0); }
  .customer-mode .choices label { transition: background .18s, border-color .18s; }
  @keyframes customer-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 800px) {
  .customer-header-inner { padding-inline: 24px; gap: 16px; }
  .customer-header-start { gap: 16px; }
  .customer-mode .section { gap: 22px; padding: 28px; }
  .customer-mode main { padding-inline: 24px; }
  .customer-mode .row3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .customer-mode .customer-brand { height: 72px; }
  .customer-header-inner { padding-inline: 16px; grid-template-columns: 1fr auto; gap: 12px; }
  .customer-header-start { gap: 14px; }
  .customer-mode .customer-brand img { width: 82px; height: 52px; }
  .customer-page-name { display: none; }
  .customer-mode .customer-brand .btn { padding: 8px 11px; font-size: .8125rem; min-height: 40px; }
  .customer-mode main { padding: 30px 16px 56px; }
  .customer-mode h1 { font-size: 1.625rem; }
  .customer-mode .heading { margin-bottom: 22px; }
  .customer-mode .heading p { font-size: .875rem; margin-top: 9px; }
  .customer-mode .panel { border-radius: 16px; }
  .customer-mode .section, .customer-mode #customerSignupForm .section { grid-template-columns: 1fr; gap: 22px; padding: 24px 20px; }
  .customer-mode .rail p { margin-top: 5px; }
  .customer-mode .row2 { grid-template-columns: 1fr; gap: 20px; }
  .customer-mode .row3 { gap: 16px 12px; }
  .customer-mode .customer-login-note { padding: 18px 20px; gap: 16px; }
  .customer-mode .customer-login-note p { line-height: 1.8; }
  .customer-mode .customer-auth-buttons { width: 100%; justify-content: stretch; }
  .customer-mode .customer-auth-buttons>.btn { flex: 1; }
  .customer-mode .service { padding: 18px 20px; }
  .customer-mode .product { padding: 18px 14px; }
  .customer-mode .product-head { margin-bottom: 18px; }
  .customer-mode .estimate { align-items: flex-start; padding: 18px 16px; flex-direction: column; gap: 12px; }
  .customer-mode .estimate b { align-self: flex-end; }
  .customer-mode .choices label { flex-basis: calc(50% - 10px); }
  .customer-mode .form-footer { padding: 20px; }
  .customer-mode .form-footer>.btn { width: 100%; }
  .customer-mode #customerSignupForm .signup-footer { padding: 22px 20px; grid-template-columns: 1fr; gap: 12px; }
  .customer-mode #signupSubmit, .customer-mode #signupToLogin { grid-column: 1; grid-row: auto; }
  .customer-mode #customerSignupForm .choices { grid-template-columns: 1fr; }
  .customer-mode #customerLoginView { margin-top: 14px; }
  .customer-mode #customerLoginView .heading h1 { font-size: 1.5rem; }
  .customer-mode #customerLoginView .section { padding: 26px 22px; gap: 24px; }
  .customer-mode .quote-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .customer-mode .quote-actions .btn { padding-inline: 10px; }
  .customer-mode .quote-header { padding: 24px 20px; align-items: flex-start; }
  .customer-mode .quote-header h2 { font-size: 1.25rem; }
  .customer-mode .quote-header img { width: 64px; }
  .customer-mode .quote-detail { padding: 24px 20px; }
  .customer-mode .quote-detail .party { grid-template-columns: 1fr; gap: 20px; }
  .customer-mode .quote-detail .totals { width: 100%; }
  .customer-mode .customer-auth-dialog { padding: 24px 20px; }
  .customer-mode .toast { right: 16px; bottom: 16px; max-width: calc(100vw - 32px); }
}

/* The logo sits within the page, without a separate white header strip. */
.customer-mode .customer-brand { position: static; height: auto; border: 0; background: transparent; backdrop-filter: none; }
.customer-mode .customer-header-inner { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; padding-top: 26px; }
.customer-mode .customer-header-start { grid-column: 2; }
.customer-mode .customer-page-name { display: none; }
.customer-mode .customer-header-account { grid-column: 3; }
.customer-mode main { padding-top: 18px; }
.customer-mode .admin-login-form { max-width: 460px; margin: 22px auto 0; text-align: left; }
.customer-mode #signin { max-width: 540px; margin: 10px auto; background: #fff; border: 1px solid #e9e7dd; padding: 32px; text-align: center; box-shadow: 0 8px 30px #4238130a; }
.customer-mode #signin h1 { font-size: 1.75rem; }
.customer-mode #signin p:not(.error) { color: #6f7066; }
.customer-mode #signin .btn { margin-top: 0; }
.customer-mode #signin #signInLink { margin-top: 18px; }
@media (max-width: 600px) {
  .customer-mode .customer-header-inner { padding: 20px 16px 0; gap: 8px; }
  .customer-mode main { padding-top: 14px; }
  .customer-mode #signin { padding: 25px 22px; }
}
@media print {
  .customer-mode { background: #fff; }
  .customer-mode .customer-brand { display: none; }
  .customer-mode main { max-width: none; padding: 0; }
  .customer-mode .panel { border: 0; box-shadow: none; }
}

/* Daily Partners brand: warm gold accents with high-contrast controls. */
body {
  --blue: #806817;
  --blue-dark: #66520f;
  --soft: #f7f1d9;
}
.customer-mode {
  --blue: #806817;
  --blue-dark: #66520f;
  --ink: #272820;
  --muted: #696b60;
  --line: #ebe9df;
  --bg: #f9f9f6;
  background: radial-gradient(ellipse at 50% -180px, #f4edcf 0, transparent 600px), var(--bg);
}
.customer-mode .customer-brand {
  height: 108px;
  background: #fffffff2;
  border-top: 3px solid #c2a844;
  border-bottom-color: #e8e5d8;
}
.customer-mode .customer-brand img { width: 148px; height: 92px; }
.customer-page-name { color: #686858; font-weight: 600; }
.customer-mode .panel,
.customer-mode #applyForm>.section,
.customer-mode #customerSignupForm>.section {
  border-color: #e9e7dd;
  box-shadow: 0 8px 30px #4238130a;
}
.customer-mode #customerLoginView { max-width: 500px; margin-top: 18px; }
.customer-mode #customerLoginView .heading { margin-bottom: 26px; }
.customer-mode #customerLoginView .heading>div { width: 100%; }
.customer-mode #customerLoginView .heading h1 { letter-spacing: -.045em; }
.customer-mode #customerLoginView>.panel { position: relative; overflow: hidden; }
.customer-mode #customerLoginView>.panel::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #a3872e, #dfd07d, #b89c3c);
}
.customer-mode #customerLoginView .section { padding: 34px 38px 38px; }
.customer-mode .rail h2 { color: #333328; letter-spacing: -.035em; }
.customer-mode .rail p, .customer-mode .heading p { color: #6f7066; }
.customer-mode input:not([type=checkbox],[type=radio]),
.customer-mode textarea, .customer-mode select { border-color: #dedfd5; background-color: #fff; }
.customer-mode input:not([type=checkbox],[type=radio]):hover,
.customer-mode textarea:hover, .customer-mode select:hover { border-color: #bdb99f; }
.customer-mode input:not([type=checkbox],[type=radio]):focus,
.customer-mode textarea:focus, .customer-mode select:focus {
  border-color: #a58a30;
  box-shadow: 0 0 0 3px #c8b25d33;
}
.customer-mode input[type=checkbox], .customer-mode input[type=radio] { accent-color: #806817; }
.customer-mode .btn.primary { background: #806817; border-color: #806817; box-shadow: 0 4px 12px #80681724; }
.customer-mode .btn.primary:hover { background: #66520f; border-color: #66520f; box-shadow: 0 5px 15px #80681730; }
.customer-mode .btn.secondary { border-color: #deded3; color: #55564b; background: #fff; }
.customer-mode .btn.secondary:hover { background: #faf8ee; border-color: #cbbd85; }
.customer-mode .btn.text { color: #705b14; }
.customer-mode #authSwitchRegister { background: #fafaf7; }
.customer-mode .login-reset-link { color: #66685e; }
.customer-mode .service, .customer-mode #applyForm>.service { background: #fff; border-color: #e9e7dd; }
.customer-mode #applyForm>.service { display: none; }
.customer-mode .service summary, .customer-mode .customer-profile summary { color: #5f5b42; }
.customer-mode .product, .customer-mode .quote-product { background: #fdfdfb; border-color: #e8e8df; }
.customer-mode [data-product-fields] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.customer-mode [data-product-fields]>* { grid-column: span 3; }
.customer-mode [data-product-fields]>.wide { grid-column: 1 / -1; }
.customer-mode [data-product-fields]>label:has([data-key="photoReviews"]),
.customer-mode [data-product-fields]>label:has([data-key="textReviews"]),
.customer-mode [data-product-fields]>label:has([data-key="starReviews"]) { grid-column: span 2; }
.customer-mode input[type=file]::file-selector-button { background: #f6f1dc; color: #705b16; }
.customer-mode .toast { background: #403b2a; }
.customer-mode .estimate { background: #f8f5e9; border-color: #eae1bd; color: #5f532a; }
.customer-mode .estimate b, .customer-mode .quote-detail .total-final { color: #6b5713; }
.customer-mode .estimate small { color: #77705d; }
.customer-mode .choices label:has(:checked) { background: #faf7e9; border-color: #c2ab59; color: #695516; }
.customer-mode #signupTaxNote, .customer-mode .quote-detail .notice { background: #f8f6ed; border-color: #ece5ca; color: #675f46; }
.customer-mode .quote-header { background: #f8f5e9; border-bottom-color: #ece5ca; }
.customer-mode .quote-header h2 { color: #5c4c18; }
.customer-mode .tag.blue { background: #f6f1dc; color: #705b16; }
.customer-mode .customer-recovery-code { background: #f8f5e9; border-color: #ece5ca; }
.customer-mode .customer-auth-dialog { border-color: #e9e7dd; }
body:not(.customer-mode) .nav-item:hover,
body:not(.customer-mode) .nav-item[aria-current="page"] { background: #f7f3e2; color: #705b16; }
body:not(.customer-mode) .tag.blue { background: #f7f3e2; color: #705b16; }
@media (max-width: 600px) {
  .customer-mode .customer-brand { height: 88px; }
  .customer-mode .customer-brand img { width: 120px; height: 75px; }
  .customer-mode #customerLoginView .section { padding: 26px 22px 28px; }
  .customer-mode #customerLoginView { margin-top: 10px; }
  .customer-mode [data-product-fields] { grid-template-columns: minmax(0, 1fr); }
  .customer-mode [data-product-fields]>*,
  .customer-mode [data-product-fields]>label:has([data-key="photoReviews"]),
  .customer-mode [data-product-fields]>label:has([data-key="textReviews"]),
  .customer-mode [data-product-fields]>label:has([data-key="starReviews"]) { grid-column: 1; }
}

/* Keep the brand mark on the page background on every screen size. */
.customer-mode .customer-brand { position: static; height: auto; border: 0; background: transparent; backdrop-filter: none; }
.customer-mode .customer-brand img { mix-blend-mode: multiply; }
#main:focus { outline: none; }
.customer-mode .apply-heading>#customerHistory:not([hidden]) { display: inline-flex!important; }
@media (max-width: 600px) { .customer-mode .customer-brand { height: auto; } }
@media print { .customer-mode .customer-brand { display: none; } }

/* Customer consultation shortcut, inspired by the supplied Kakao banner. */
.kakao-popup { display: none; position: fixed; z-index: 30; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); width: 150px; aspect-ratio: 1; filter: drop-shadow(0 8px 18px #332c0036); }
body.customer-mode:is([data-screen="customerLoginView"], [data-screen="signupView"], [data-screen="applyView"], [data-screen="customerHomeView"]) .kakao-popup:not([hidden]) { display: block; }
.kakao-popup-link { display: flex; width: 100%; height: 100%; box-sizing: border-box; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 25px 10px 8px; border: 1px solid #e7c900; border-radius: 20px; background: #fee500; color: #191919; text-align: center; text-decoration: none; }
.kakao-popup-link:hover { background: #ffea39; }
.kakao-popup-link:focus-visible, .kakao-popup-close:focus-visible, .kakao-popup-drag:focus-visible { outline: 3px solid #493e13; outline-offset: 3px; }
.kakao-popup-drag { position: absolute; z-index: 1; top: 4px; left: 50%; transform: translateX(-50%); min-width: 58px; height: 24px; border: 0; border-radius: 12px; background: #19191918; color: #554c00; font-size: 11px; font-weight: 700; line-height: 24px; cursor: grab; touch-action: none; user-select: none; }
.kakao-popup-drag:active { cursor: grabbing; }
.kakao-popup-bubble { position: relative; display: grid; place-items: center; width: 45px; height: 35px; border-radius: 50%; background: #191919; color: #fee500; font-size: 12px; font-weight: 900; letter-spacing: -.03em; }
.kakao-popup-bubble::after { content: ''; position: absolute; left: 8px; bottom: -4px; border-width: 7px 7px 0 0; border-style: solid; border-color: #191919 transparent transparent transparent; transform: rotate(12deg); }
.kakao-popup-link strong { font-size: 16px; line-height: 1.18; letter-spacing: -.06em; }
.kakao-popup-action { display: block; padding: 5px 10px; border-radius: 20px; background: #191919; color: #fee500; font-size: 11px; font-weight: 750; line-height: 1.1; white-space: nowrap; }
.kakao-popup-close { position: absolute; top: -10px; right: -10px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #e1ded2; border-radius: 50%; background: #fff; color: #333; font-size: 23px; line-height: 1; cursor: pointer; }
@media (max-width: 600px) { .kakao-popup { width: 132px; right: max(14px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); } .kakao-popup-link { gap: 5px; border-radius: 17px; } .kakao-popup-link strong { font-size: 15px; } }
@media print { .kakao-popup { display: none !important; } }

/* Administrator workspace follows the same warm gold identity as the customer portal. */
body:not(.customer-mode) { --blue:#806817; --blue-dark:#66520f; --soft:#f7f2dc; --bg:#f8f7f1; --line:#e9e6d9; --ink:#292b25; --muted:#747366; }
body:not(.customer-mode) .sidebar { border-color:#e8e4d4; box-shadow:3px 0 20px #5c4e1308; }
body:not(.customer-mode) .brand span { color:#8d815d; }
body:not(.customer-mode) .workspace, body:not(.customer-mode) .support { background:#faf7e9; border-color:#eee6c9; }
body:not(.customer-mode) .workspace-icon { background:#f1e8c3; color:#806817; }
body:not(.customer-mode) .nav-item { color:#656458; }
body:not(.customer-mode) .nav-item[aria-current="page"] { color:#705b16; }
body:not(.customer-mode) .topbar { border-color:#e9e6d9; }
body:not(.customer-mode) .modebar { background:#faf7e9; border-color:#ece5c9; color:#847652; }
body:not(.customer-mode) .modebar b { color:#79651f; }
body:not(.customer-mode) .modebar i { background:#b69a35; }
body:not(.customer-mode) .btn.text { color:#806817; }
body:not(.customer-mode) .btn.secondary:hover { background:#faf7e9; border-color:#d8ca91; }
.admin-menu-toggle, .admin-menu-close, .admin-menu-backdrop { display:none; }
@media (max-width:700px) {
  body:not(.customer-mode) .sidebar { position:fixed; inset:0 auto 0 0; z-index:31; display:flex; width:min(280px,86vw); height:100dvh; padding:20px 16px; overflow:auto; background:#fff; visibility:hidden; transform:translateX(-105%); transition:transform .26s cubic-bezier(.22,1,.36,1),visibility .26s; }
  body:not(.customer-mode).admin-menu-open .sidebar { visibility:visible; transform:translateX(0); }
  body:not(.customer-mode) .sidebar .brand, body:not(.customer-mode) .sidebar .workspace, body:not(.customer-mode) .sidebar .nav-label { display:flex; }
  body:not(.customer-mode) .sidebar .nav-label { display:block; }
  body:not(.customer-mode) .sidebar .brand img { width:120px; }
  body:not(.customer-mode) .sidebar nav { position:static; display:block; padding:0; overflow:visible; background:transparent; border:0; }
  body:not(.customer-mode) .sidebar nav .nav-item { justify-content:flex-start; min-height:44px; margin:3px 0; padding:10px 12px; border:0; border-radius:9px; background:transparent; text-align:left; font-size:14px; gap:11px; }
  body:not(.customer-mode) .sidebar nav .nav-item[aria-current="page"] { background:#f7f3e2; box-shadow:none; }
  body:not(.customer-mode) .sidebar nav .nav-item svg { width:18px; height:18px; }
  body:not(.customer-mode) .admin-menu-toggle { display:inline-flex; flex:none; align-items:center; gap:5px; min-height:40px; padding:7px 9px; border:1px solid #e5dfca; border-radius:10px; background:#fff; color:#69591d; font-weight:700; font-size:13px; }
  body:not(.customer-mode) .admin-menu-toggle span:first-child { font-size:18px; line-height:1; }
  body:not(.customer-mode) .admin-menu-close { position:absolute; top:12px; right:12px; display:grid; place-items:center; width:36px; height:36px; padding:0; border:0; border-radius:50%; background:#f7f5ec; color:#5f5a48; font-size:23px; }
  body:not(.customer-mode) .admin-menu-backdrop { position:fixed; inset:0; z-index:30; display:block; background:#1c1b14a8; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .26s ease,visibility .26s; }
  body:not(.customer-mode).admin-menu-open .admin-menu-backdrop { opacity:1; visibility:visible; pointer-events:auto; }
  body:not(.customer-mode).admin-menu-open { overflow:hidden; }
  body:not(.customer-mode) .topbar { justify-content:flex-start; gap:9px; }
  body:not(.customer-mode) .top-actions { margin-left:auto; }
  body:not(.customer-mode) .breadcrumb { min-width:0; }
}
@media (prefers-reduced-motion:reduce) { body:not(.customer-mode) .sidebar, body:not(.customer-mode) .admin-menu-backdrop { transition:none; } }
@media print { .admin-menu-toggle, .admin-menu-close, .admin-menu-backdrop { display:none!important; } }

@media (max-width:600px) {
  body:not(.customer-mode) .modebar { display:none; }
  body:not(.customer-mode) main { padding:18px 12px 32px; }
  body:not(.customer-mode) .heading { margin-bottom:17px; }
  body:not(.customer-mode) .heading h1, body:not(.customer-mode) .dashboard-heading h1 { font-size:23px; }
  body:not(.customer-mode) .dashboard-heading { gap:10px; margin-bottom:14px; }
  body:not(.customer-mode) .dashboard-heading p { font-size:13px; line-height:1.5; }
  body:not(.customer-mode) .dashboard-caption { margin-bottom:8px; }
  body:not(.customer-mode) .dashboard-cards { gap:7px; }
  body:not(.customer-mode) .dashboard-card { min-height:78px; padding:12px 14px; gap:4px; border-radius:12px; }
  body:not(.customer-mode) .dashboard-card strong { font-size:23px; }
  body:not(.customer-mode) .dashboard-card em { display:none; }
  body:not(.customer-mode) .dashboard-grid { gap:9px; margin-top:9px; }
  body:not(.customer-mode) .dashboard-panel { padding:15px; }
  body:not(.customer-mode) .dashboard-panel-head { margin-bottom:12px; }
  body:not(.customer-mode) .dashboard-panel-head p { font-size:12px; line-height:1.5; }
  body:not(.customer-mode) .dashboard-stages { gap:6px; }
  body:not(.customer-mode) .dashboard-stages button { min-height:52px; padding:9px 10px; gap:6px; }
  body:not(.customer-mode) .dashboard-task-list button { min-height:44px; padding:10px 4px; }
  body:not(.customer-mode) .section { padding:16px; }
  body:not(.customer-mode) .record-admin { padding:14px; gap:9px; }

  .customer-mode[data-screen="applyView"] main { padding:14px 14px 48px; }
  .customer-mode[data-screen="applyView"] .heading { margin-bottom:16px; }
  .customer-mode[data-screen="applyView"] .heading h1 { font-size:1.5rem; }
  .customer-mode[data-screen="applyView"] .heading p { line-height:1.6; margin-top:7px; }
  .customer-mode[data-screen="applyView"] .customer-profile { margin-bottom:16px; }
  .customer-mode[data-screen="applyView"] .customer-profile summary { padding:15px 18px; }
  .customer-mode[data-screen="applyView"] .customer-profile .section { padding:18px 16px; gap:14px; }
  .customer-mode[data-screen="applyView"] .customer-profile .row2 { gap:13px; }
  .customer-mode[data-screen="applyView"] .customer-profile input:not([type=checkbox],[type=radio]),
  .customer-mode[data-screen="applyView"] .customer-profile select { min-height:44px; padding:9px 12px; margin-top:5px; }
  .customer-mode[data-screen="applyView"] .customer-profile .form-footer { padding:14px 16px; }
  .customer-mode[data-screen="applyView"] #applyForm>.section { margin-top:14px; padding:19px 16px; gap:16px; }
  .customer-mode[data-screen="applyView"] .rail p { line-height:1.55; }
  .customer-mode[data-screen="applyView"] .fields { gap:14px; }
  .customer-mode[data-screen="applyView"] .product { padding:15px 12px; }
  .customer-mode[data-screen="applyView"] .product-head { margin-bottom:14px; }
  .customer-mode[data-screen="applyView"] [data-product-fields] { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 10px; }
  .customer-mode[data-screen="applyView"] [data-product-fields]>* { grid-column:1 / -1; }
  .customer-mode[data-screen="applyView"] [data-product-fields]>label:has([data-key="qty"]),
  .customer-mode[data-screen="applyView"] [data-product-fields]>label:has([data-key="price"]),
  .customer-mode[data-screen="applyView"] [data-product-fields]>label:has([data-key="photoReviews"]),
  .customer-mode[data-screen="applyView"] [data-product-fields]>label:has([data-key="textReviews"]),
  .customer-mode[data-screen="applyView"] [data-product-fields]>label:has([data-key="starReviews"]) { grid-column:span 1; }
  .customer-mode[data-screen="applyView"] [data-condition-fields] { gap:14px; }
  .customer-mode[data-screen="applyView"] .estimate { padding:15px; gap:8px; }
}

/* Keep the remaining mobile screens consistent with the compact application layout. */
@media (max-width:600px) {
  .customer-mode main { padding:14px 14px 48px; }
  .customer-mode .heading { margin-bottom:16px; }
  .customer-mode .heading h1 { font-size:1.5rem; }
  .customer-mode .heading p { margin-top:7px; line-height:1.6; }
  .customer-mode .section, .customer-mode #customerSignupForm .section { padding:19px 16px; gap:16px; }
  .customer-mode .fields, .customer-mode .row2 { gap:14px; }
  .customer-mode input:not([type=checkbox],[type=radio]), .customer-mode select, .customer-mode textarea { min-height:44px; padding:9px 12px; margin-top:5px; font-size:1rem; }
  .customer-mode select { padding-right:36px; }
  .customer-mode #customerLoginView { margin-top:10px; }
  .customer-mode #customerLoginView .heading { margin-bottom:18px; }
  .customer-mode #customerLoginView .section { padding:23px 19px; gap:18px; }
  .customer-mode #customerAuthForm { gap:14px; }
  .customer-mode #customerSignupForm>.section { margin-top:14px; }
  .customer-mode #customerSignupForm>.section:first-child { margin-top:0; }
  .customer-mode #customerSignupForm .signup-footer { gap:10px; }
  .customer-mode #customerSignupForm .choices { gap:8px; }
  .customer-mode #customerSignupForm .choices label { padding:12px; }
  .customer-mode .record { padding:12px; }
  .customer-mode .quote-actions { gap:7px; margin-bottom:14px; }
  .customer-mode .quote-actions .btn { min-width:0; white-space:normal; line-height:1.35; text-align:center; }
  .customer-mode .quote-header { padding:20px 17px; }
  .customer-mode .quote-detail { padding:20px 17px; gap:20px; }
  .customer-mode .quote-product { padding:14px; }
  .customer-mode .quote-detail .party { gap:16px; }
  body:not(.customer-mode) .members-toolbar { padding:14px; gap:10px; }
  body:not(.customer-mode) .members-table tbody { gap:9px; }
  body:not(.customer-mode) .members-table tbody tr { padding:14px; gap:9px; }
  body:not(.customer-mode) .admin-editor-layout #adminForm .section { padding:15px; }
  body:not(.customer-mode) .admin-preview-head { padding:13px; }
  body:not(.customer-mode) .operations-panel { padding:15px; margin-top:14px; }
}
@media (max-width:360px) {
  body:not(.customer-mode) .breadcrumb > span { display:none; }
}

/* Tighter spacing across mobile screens while retaining usable input targets. */
@media (max-width:600px) {
  .customer-mode main, .customer-mode[data-screen="applyView"] main { padding:10px 10px 36px; }
  .customer-mode .heading, .customer-mode[data-screen="applyView"] .heading { margin-bottom:12px; }
  .customer-mode .heading h1, .customer-mode[data-screen="applyView"] .heading h1 { font-size:1.375rem; }
  .customer-mode .heading p, .customer-mode[data-screen="applyView"] .heading p { margin-top:5px; line-height:1.5; }
  .customer-mode .section, .customer-mode #customerSignupForm .section { padding:15px 13px; gap:12px; }
  .customer-mode .fields, .customer-mode .row2, .customer-mode #customerAuthForm { gap:10px; }
  .customer-mode #customerLoginView .heading { margin-bottom:14px; }
  .customer-mode #customerLoginView .section { padding:18px 15px; gap:14px; }
  .customer-mode #customerSignupForm>.section { margin-top:10px; }
  .customer-mode #customerSignupForm>.section:first-child { margin-top:0; }
  .customer-mode #customerSignupForm .choices label { padding:10px; }
  .customer-mode[data-screen="applyView"] .customer-profile { margin-bottom:11px; }
  .customer-mode[data-screen="applyView"] .customer-profile summary { padding:12px 14px; }
  .customer-mode[data-screen="applyView"] .customer-profile .section { padding:14px 13px; gap:10px; }
  .customer-mode[data-screen="applyView"] .customer-profile .row2 { gap:10px; }
  .customer-mode[data-screen="applyView"] .customer-profile .form-footer { padding:10px 13px; }
  .customer-mode[data-screen="applyView"] #applyForm>.section { margin-top:10px; padding:15px 13px; gap:12px; }
  .customer-mode[data-screen="applyView"] .fields, .customer-mode[data-screen="applyView"] [data-condition-fields] { gap:10px; }
  .customer-mode[data-screen="applyView"] .product { padding:12px 10px; }
  .customer-mode[data-screen="applyView"] .product-head { margin-bottom:10px; }
  .customer-mode[data-screen="applyView"] [data-product-fields] { gap:10px 8px; }
  .customer-mode[data-screen="applyView"] .estimate { padding:12px; gap:6px; }
  .customer-mode .record { padding:10px; }
  .customer-mode .quote-actions { gap:6px; margin-bottom:10px; }
  .customer-mode .quote-header { padding:16px 13px; }
  .customer-mode .quote-detail { padding:16px 13px; gap:16px; }
  .customer-mode .quote-product { padding:11px; }
  .customer-mode .quote-detail .party { gap:12px; }
  .kakao-popup { width:120px; right:max(12px,env(safe-area-inset-right)); bottom:max(14px,env(safe-area-inset-bottom)); }
  .kakao-popup-link { gap:3px; padding:24px 7px 6px; }
  .kakao-popup-link strong { font-size:14px; }
  .kakao-popup-bubble { width:38px; height:29px; font-size:11px; }
  .kakao-popup-action { padding:4px 8px; font-size:10px; }
  body:not(.customer-mode) main { padding:14px 10px 28px; }
  body:not(.customer-mode) .heading, body:not(.customer-mode) .dashboard-heading { margin-bottom:11px; }
  body:not(.customer-mode) .dashboard-card { min-height:70px; padding:10px 12px; }
  body:not(.customer-mode) .dashboard-panel, body:not(.customer-mode) .operations-panel { padding:12px; }
  body:not(.customer-mode) .section, body:not(.customer-mode) .admin-editor-layout #adminForm .section { padding:13px; }
  body:not(.customer-mode) .record-admin, body:not(.customer-mode) .members-toolbar, body:not(.customer-mode) .members-table tbody tr { padding:11px; gap:8px; }
}

/* Shared gold button treatment; destructive buttons keep their warning colors. */
.customer-mode .btn.primary, body:not(.customer-mode) .btn.primary { border-radius:10px; background:#806817; border-color:#806817; color:#fff; box-shadow:0 3px 10px #80681720; }
.customer-mode .btn.primary:hover, body:not(.customer-mode) .btn.primary:hover { background:#66520f; border-color:#66520f; }
.customer-mode .btn.secondary, body:not(.customer-mode) .btn.secondary { border-radius:10px; border-color:#ded7bd; background:#fffefa; color:#5f5635; }
.customer-mode .btn.secondary:hover, body:not(.customer-mode) .btn.secondary:hover { background:#f8f4e4; border-color:#cbbd85; }
.customer-mode .btn.text, body:not(.customer-mode) .btn.text { color:#756019; }

@media (max-width:600px) {
  .customer-mode .customer-header-inner { padding-top:10px; }
  .customer-mode main, .customer-mode[data-screen="applyView"] main { padding:8px 9px 32px; }
  .customer-mode .heading, .customer-mode[data-screen="applyView"] .heading { margin-bottom:9px; }
  .customer-mode .section, .customer-mode #customerSignupForm .section { padding:12px 11px; gap:9px; }
  .customer-mode .fields, .customer-mode .row2, .customer-mode #customerAuthForm { gap:8px; }
  .customer-mode #customerLoginView .section { padding:15px 13px; gap:11px; }
  .customer-mode #customerSignupForm>.section { margin-top:8px; }
  .customer-mode #customerSignupForm>.section:first-child { margin-top:0; }
  .customer-mode[data-screen="applyView"] .customer-profile { margin-bottom:8px; }
  .customer-mode[data-screen="applyView"] .customer-profile summary { padding:10px 12px; }
  .customer-mode[data-screen="applyView"] .customer-profile .section { padding:11px; gap:9px; }
  .customer-mode[data-screen="applyView"] #applyForm>.section { margin-top:8px; padding:12px 11px; gap:9px; }
  .customer-mode[data-screen="applyView"] .fields, .customer-mode[data-screen="applyView"] [data-condition-fields] { gap:8px; }
  .customer-mode[data-screen="applyView"] .product { padding:10px 9px; }
  .customer-mode[data-screen="applyView"] [data-product-fields] { gap:8px; }
  .customer-mode[data-screen="applyView"] #customerProfile #profileFields,
  .customer-mode #signupProfileFields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .customer-mode[data-screen="applyView"] #customerProfile #profileFields>*,
  .customer-mode #signupProfileFields>* { grid-column:1 / -1; min-width:0; }
  .customer-mode #signupProfileFields>.wide { grid-column:1 / -1; }
  .customer-mode[data-screen="applyView"] #customerProfile #profileFields>label:has(input[name="biz"]),
  .customer-mode[data-screen="applyView"] #customerProfile #profileFields>label:has(input[name="bizno"]),
  .customer-mode[data-screen="applyView"] #customerProfile #profileFields>label:has(input[name="manager"]),
  .customer-mode[data-screen="applyView"] #customerProfile #profileFields>label:has(input[name="contact"]),
  .customer-mode #signupProfileFields>label:has(input[name="biz"]),
  .customer-mode #signupProfileFields>label:has(input[name="bizno"]),
  .customer-mode #signupProfileFields>label:has(input[name="manager"]),
  .customer-mode #signupProfileFields>label:has(input[name="contact"]) { grid-column:span 1; }
  .customer-mode[data-screen="applyView"] #customerProfile #profileFields>label:has(input[name="manager"]) .field-caption,
  .customer-mode[data-screen="applyView"] #customerProfile #profileFields>label:has(input[name="contact"]) .field-caption,
  .customer-mode #signupProfileFields>label:has(input[name="manager"]) .field-caption,
  .customer-mode #signupProfileFields>label:has(input[name="contact"]) .field-caption { min-height:3.2em; }
  body:not(.customer-mode) main { padding:11px 9px 25px; }
  body:not(.customer-mode) .dashboard-card { min-height:64px; padding:8px 10px; }
  body:not(.customer-mode) .dashboard-panel, body:not(.customer-mode) .operations-panel { padding:10px; }
  body:not(.customer-mode) .section, body:not(.customer-mode) .admin-editor-layout #adminForm .section { padding:11px; }
}

/* Give the new wordmark enough space to remain legible on small screens. */
.customer-mode .customer-brand img { width:180px; height:112px; }
body:not(.customer-mode) .sidebar .brand img { width:150px; }
.preview-logo { width:100px; }
.quote-header img { width:105px; }
@media (max-width:700px) { body:not(.customer-mode) .sidebar .brand img { width:150px; } }
@media (max-width:600px) {
  .customer-mode .customer-brand img { width:150px; height:94px; }
  .customer-mode .quote-header img { width:84px; }
}
