:root {
  --page-bg: linear-gradient(180deg, #ffffff 0%, #f8fbff 44%, #eef4ff 100%);
  --surface: rgba(255,255,255,.94);
  --surface-strong: #ffffff;
  --header-bg: rgba(255,255,255,.82);
  --nav-bg: rgba(255,255,255,.88);
  --hero-copy-bg: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.88));
  --hero-visual-bg: rgba(255,255,255,.92);
  --table-head-bg: #eff6ff;
  --row-bg: rgba(248,250,252,.72);
  --row-hover-bg: rgba(239,246,255,.95);
  --field-bg: #fff;
  --line: rgba(37,99,235,.12);
  --line-soft: rgba(148,163,184,.22);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #3b82f6;
  --accent: #f59e0b;
  --success: #059669;
  --success-dark: #047857;
  --success-soft: rgba(5,150,105,.10);
  --warning: #d97706;
  --warning-dark: #b45309;
  --warning-soft: rgba(217,119,6,.11);
  --error: #dc2626;
  --error-dark: #b91c1c;
  --error-soft: rgba(220,38,38,.12);
  --text: #0f172a;
  --muted: #64748b;
  --shadow: 0 18px 44px rgba(15,23,42,.09);
  --role-accent: #2563eb;
  --role-accent-dark: #1d4ed8;
  --role-accent-soft: rgba(37,99,235,.10);
  --role-glow: rgba(37,99,235,.12);
  --ui-chip-bg: rgba(37,99,235,.08);
  --ui-chip-bg-hover: rgba(37,99,235,.14);
  --ui-pill-bg: rgba(37,99,235,.08);
  --ui-pill-bg-hover: rgba(37,99,235,.12);
  --ui-pill-border: rgba(37,99,235,.18);
  --hero-panel-bg: linear-gradient(135deg, #2563eb, #1d4ed8);
  --hero-panel-text: #ffffff;
  --hero-panel-muted: rgba(255,255,255,.82);
  --hero-panel-button-bg: #ffffff;
  --hero-panel-button-hover-bg: rgba(255,255,255,.96);
  --hero-panel-button-text: #1d4ed8;
  --hero-panel-button-border: rgba(255,255,255,.88);
  --hero-stat-bg: rgba(255,255,255,.98);
  --hero-stat-border: var(--line);
  --hero-stat-value-alert: #dc2626;
  --password-change-panel-bg: linear-gradient(135deg, rgba(255,251,235,.98), rgba(255,255,255,.98));
  --password-change-panel-text: #1f2937;
  --password-change-panel-muted: #7c2d12;
  --password-change-panel-border: rgba(245,158,11,.24);
  --password-change-panel-shadow: rgba(245,158,11,.10);
  --password-change-panel-input-border: rgba(217,119,6,.22);
  --password-change-panel-button-bg: linear-gradient(135deg, #d97706, #b45309);
  --password-change-panel-button-hover-bg: linear-gradient(135deg, #b45309, #92400e);
  --password-change-panel-button-border: rgba(180,83,9,.45);
  --password-reissue-panel-bg: linear-gradient(135deg, rgba(236,253,245,.98), rgba(248,250,252,.98));
  --password-reissue-panel-text: #0f172a;
  --password-reissue-panel-muted: #0f766e;
  --password-reissue-panel-border: rgba(20,184,166,.20);
  --password-reissue-panel-shadow: rgba(20,184,166,.10);
  --password-reissue-panel-input-border: rgba(20,184,166,.22);
  --password-reissue-panel-button-bg: linear-gradient(135deg, #0f766e, #115e59);
  --password-reissue-panel-button-hover-bg: linear-gradient(135deg, #115e59, #134e4a);
  --password-reissue-panel-button-border: rgba(13,148,136,.45);
  --user-password-change-card-bg: linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  --user-password-change-card-text: var(--text);
  --user-password-change-card-muted: var(--muted);
  --user-password-change-card-border: var(--role-accent-soft);
  --user-password-change-card-shadow: rgba(15,23,42,.08);
  --user-password-change-card-input-border: var(--role-accent-soft);
  --user-password-change-card-button-bg: linear-gradient(135deg, var(--role-accent), var(--role-accent-dark));
  --user-password-change-card-button-hover-bg: linear-gradient(135deg, var(--role-accent-dark), var(--primary-dark));
  --customer-password-card-bg: linear-gradient(135deg, rgba(254,243,199,.82), rgba(255,255,255,.98));
  --customer-password-card-text: #92400e;
  --customer-password-card-border: rgba(217,119,6,.24);
  --customer-password-card-shadow: rgba(217,119,6,.08);
  --customer-password-card-button-bg: #92400e;
  --customer-password-card-button-hover-bg: #78350f;
  --customer-password-card-button-border: #92400e;
}
* { box-sizing: border-box; }
html {
  background: var(--page-bg);
  overflow-x: clip;
}
@font-face {
  font-family: "Jost Web";
  src: url("/fonts/Jost-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Jost Web";
  src: url("/fonts/Jost-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Jost Web";
  src: url("/fonts/Jost-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Jost Web";
  src: url("/fonts/Jost-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "BIZ UDPGothic Web";
  src: url("/fonts/BIZUDPGothic-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "BIZ UDPGothic Web";
  src: url("/fonts/BIZUDPGothic-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body.role-customer {
  --page-bg: linear-gradient(180deg, #ffffff 0%, #f8fbff 42%, #eef4ff 100%);
  --surface: rgba(255,255,255,.94);
  --surface-strong: #ffffff;
  --header-bg: rgba(255,255,255,.82);
  --nav-bg: rgba(255,255,255,.88);
  --hero-copy-bg: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.88));
  --hero-visual-bg: rgba(255,255,255,.92);
  --table-head-bg: #eff6ff;
  --row-bg: rgba(248,250,252,.72);
  --row-hover-bg: rgba(239,246,255,.95);
  --field-bg: #fff;
  --line: rgba(37,99,235,.12);
  --line-soft: rgba(148,163,184,.22);
  --text: #0f172a;
  --muted: #64748b;
  --shadow: 0 18px 44px rgba(15,23,42,.09);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #3b82f6;
  --accent: #06b6d4;
  --success: #0f766e;
  --success-dark: #115e59;
  --success-soft: rgba(15,118,110,.10);
  --warning: #d97706;
  --warning-dark: #b45309;
  --warning-soft: rgba(217,119,6,.11);
  --error: #dc2626;
  --error-dark: #b91c1c;
  --error-soft: rgba(220,38,38,.12);
  --role-accent: #2563eb;
  --role-accent-dark: #1d4ed8;
  --role-accent-soft: rgba(37,99,235,.10);
  --role-glow: rgba(37,99,235,.12);
  --ui-chip-bg: rgba(37,99,235,.08);
  --ui-chip-bg-hover: rgba(37,99,235,.14);
  --ui-pill-bg: rgba(37,99,235,.08);
  --ui-pill-bg-hover: rgba(37,99,235,.12);
  --ui-pill-border: rgba(37,99,235,.18);
  --hero-panel-bg: linear-gradient(135deg, #2563eb, #1d4ed8);
  --hero-panel-text: #ffffff;
  --hero-panel-muted: rgba(255,255,255,.82);
  --hero-panel-button-bg: #ffffff;
  --hero-panel-button-hover-bg: rgba(255,255,255,.96);
  --hero-panel-button-text: #1d4ed8;
  --hero-panel-button-border: rgba(255,255,255,.88);
  --hero-stat-bg: rgba(255,255,255,.98);
  --hero-stat-border: var(--line);
  --hero-stat-value-alert: #dc2626;
  --password-reissue-panel-bg: linear-gradient(135deg, rgba(239,246,255,.98), rgba(248,250,252,.98));
  --password-reissue-panel-text: #0f172a;
  --password-reissue-panel-muted: #1d4ed8;
  --password-reissue-panel-border: rgba(37,99,235,.18);
  --password-reissue-panel-shadow: rgba(37,99,235,.10);
  --password-reissue-panel-input-border: rgba(37,99,235,.20);
  --password-reissue-panel-button-bg: linear-gradient(135deg, #2563eb, #1d4ed8);
  --password-reissue-panel-button-hover-bg: linear-gradient(135deg, #1d4ed8, #1e40af);
  --password-reissue-panel-button-border: rgba(37,99,235,.45);
  --customer-password-card-bg: linear-gradient(135deg, rgba(254,243,199,.82), rgba(255,255,255,.98));
  --customer-password-card-text: #92400e;
  --customer-password-card-border: rgba(217,119,6,.24);
  --customer-password-card-shadow: rgba(217,119,6,.08);
  --customer-password-card-button-bg: #92400e;
  --customer-password-card-button-hover-bg: #78350f;
  --customer-password-card-button-border: #92400e;
}
body.role-operator {
  --page-bg: linear-gradient(180deg, #ffffff 0%, #f4fff8 42%, #e6ffef 100%);
  --surface: rgba(255,255,255,.94);
  --surface-strong: #ffffff;
  --header-bg: rgba(255,255,255,.82);
  --nav-bg: rgba(255,255,255,.88);
  --hero-copy-bg: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.88));
  --hero-visual-bg: rgba(255,255,255,.92);
  --table-head-bg: #eef4ef;
  --row-bg: rgba(247,250,247,.78);
  --row-hover-bg: rgba(237,244,238,.98);
  --field-bg: #fff;
  --line: rgba(5,150,105,.12);
  --line-soft: rgba(5,150,105,.18);
  --text: #0f172a;
  --muted: #64748b;
  --shadow: 0 18px 44px rgba(15,23,42,.09);
  --primary: #059669;
  --primary-dark: #047857;
  --secondary: #10b981;
  --accent: #38bdf8;
  --success: #059669;
  --success-dark: #047857;
  --success-soft: rgba(5,150,105,.10);
  --warning: #b45309;
  --warning-dark: #92400e;
  --warning-soft: rgba(180,83,9,.11);
  --error: #b91c1c;
  --error-dark: #991b1b;
  --error-soft: rgba(185,28,28,.12);
  --role-accent: #059669;
  --role-accent-dark: #047857;
  --role-accent-soft: rgba(5,150,105,.10);
  --role-glow: rgba(5,150,105,.12);
  --ui-chip-bg: rgba(5,150,105,.08);
  --ui-chip-bg-hover: rgba(5,150,105,.14);
  --ui-pill-bg: rgba(5,150,105,.08);
  --ui-pill-bg-hover: rgba(5,150,105,.12);
  --ui-pill-border: rgba(5,150,105,.18);
  --hero-panel-bg: linear-gradient(135deg, #059669, #047857);
  --hero-panel-text: #ffffff;
  --hero-panel-muted: rgba(255,255,255,.82);
  --hero-panel-button-bg: #ffffff;
  --hero-panel-button-hover-bg: rgba(255,255,255,.96);
  --hero-panel-button-text: #047857;
  --hero-panel-button-border: rgba(255,255,255,.88);
  --hero-stat-bg: rgba(255,255,255,.98);
  --hero-stat-border: var(--line);
  --hero-stat-value-alert: #dc2626;
  --password-change-panel-bg: linear-gradient(135deg, rgba(255,251,235,.98), rgba(255,255,255,.98));
  --password-change-panel-text: #1f2937;
  --password-change-panel-muted: #7c2d12;
  --password-change-panel-border: rgba(245,158,11,.24);
  --password-change-panel-shadow: rgba(245,158,11,.10);
  --password-change-panel-input-border: rgba(217,119,6,.22);
  --password-change-panel-button-bg: linear-gradient(135deg, #d97706, #b45309);
  --password-change-panel-button-hover-bg: linear-gradient(135deg, #b45309, #92400e);
  --password-change-panel-button-border: rgba(180,83,9,.45);
  --password-reissue-panel-bg: linear-gradient(135deg, rgba(236,253,245,.98), rgba(255,255,255,.98));
  --password-reissue-panel-text: #0f172a;
  --password-reissue-panel-muted: #047857;
  --password-reissue-panel-border: rgba(5,150,105,.18);
  --password-reissue-panel-shadow: rgba(5,150,105,.10);
  --password-reissue-panel-input-border: rgba(5,150,105,.20);
  --password-reissue-panel-button-bg: linear-gradient(135deg, #059669, #047857);
  --password-reissue-panel-button-hover-bg: linear-gradient(135deg, #047857, #065f46);
  --password-reissue-panel-button-border: rgba(5,150,105,.45);
  --user-password-change-card-bg: linear-gradient(135deg, rgba(236,253,245,.98), rgba(255,255,255,.98));
  --user-password-change-card-text: #0f172a;
  --user-password-change-card-muted: #64748b;
  --user-password-change-card-border: rgba(5,150,105,.20);
  --user-password-change-card-shadow: rgba(15,23,42,.08);
  --user-password-change-card-input-border: rgba(5,150,105,.20);
  --user-password-change-card-button-bg: linear-gradient(135deg, #059669, #047857);
  --user-password-change-card-button-hover-bg: linear-gradient(135deg, #047857, #065f46);
  --customer-password-card-bg: linear-gradient(135deg, rgba(254,243,199,.82), rgba(255,255,255,.98));
  --customer-password-card-text: #92400e;
  --customer-password-card-border: rgba(217,119,6,.24);
  --customer-password-card-shadow: rgba(217,119,6,.08);
  --customer-password-card-button-bg: #92400e;
  --customer-password-card-button-hover-bg: #78350f;
  --customer-password-card-button-border: #92400e;
}
body.role-operator.theme-operator-refined {
  --page-bg: linear-gradient(180deg, #ffffff 0%, #fbfcf8 42%, #edf3ee 100%);
  --surface: rgba(255,255,255,.96);
  --surface-strong: #ffffff;
  --header-bg: rgba(255,255,255,.88);
  --nav-bg: rgba(255,255,255,.92);
  --hero-copy-bg: linear-gradient(180deg, rgba(255,255,255,.95), rgba(250,252,248,.92));
  --hero-visual-bg: rgba(255,255,255,.94);
  --table-head-bg: #eef4ef;
  --row-bg: rgba(247,250,247,.86);
  --row-hover-bg: rgba(237,244,238,.98);
  --field-bg: #fff;
  --line: rgba(79,105,86,.14);
  --line-soft: rgba(79,105,86,.22);
  --primary: #3f5a47;
  --primary-dark: #213126;
  --secondary: #6b8272;
  --accent: #60a5fa;
  --success: #059669;
  --success-dark: #047857;
  --success-soft: rgba(5,150,105,.10);
  --warning: #b45309;
  --warning-dark: #92400e;
  --warning-soft: rgba(180,83,9,.11);
  --error: #b91c1c;
  --error-dark: #991b1b;
  --error-soft: rgba(185,28,28,.12);
  --role-accent: #4f6956;
  --role-accent-dark: #213126;
  --role-accent-soft: rgba(79,105,86,.10);
  --role-glow: rgba(79,105,86,.16);
  --ui-chip-bg: rgba(79,105,86,.08);
  --ui-chip-bg-hover: rgba(79,105,86,.14);
  --ui-pill-bg: rgba(79,105,86,.08);
  --ui-pill-bg-hover: rgba(79,105,86,.12);
  --ui-pill-border: rgba(79,105,86,.18);
  --hero-panel-bg: linear-gradient(135deg, #4f6956, #213126);
  --hero-panel-text: #ffffff;
  --hero-panel-muted: rgba(255,255,255,.82);
  --hero-panel-button-bg: #ffffff;
  --hero-panel-button-hover-bg: rgba(255,255,255,.96);
  --hero-panel-button-text: #213126;
  --hero-panel-button-border: rgba(255,255,255,.88);
  --hero-stat-bg: rgba(255,255,255,.98);
  --hero-stat-border: rgba(79,105,86,.14);
  --hero-stat-value-alert: #dc2626;
  --password-change-panel-bg: linear-gradient(135deg, rgba(255,251,235,.98), rgba(255,255,255,.98));
  --password-change-panel-text: #1f2937;
  --password-change-panel-muted: #7c2d12;
  --password-change-panel-border: rgba(245,158,11,.24);
  --password-change-panel-shadow: rgba(245,158,11,.10);
  --password-change-panel-input-border: rgba(217,119,6,.22);
  --password-change-panel-button-bg: linear-gradient(135deg, #d97706, #b45309);
  --password-change-panel-button-hover-bg: linear-gradient(135deg, #b45309, #92400e);
  --password-change-panel-button-border: rgba(180,83,9,.45);
  --password-reissue-panel-bg: linear-gradient(135deg, rgba(236,253,245,.98), rgba(255,255,255,.98));
  --password-reissue-panel-text: #0f172a;
  --password-reissue-panel-muted: #047857;
  --password-reissue-panel-border: rgba(5,150,105,.18);
  --password-reissue-panel-shadow: rgba(5,150,105,.10);
  --password-reissue-panel-input-border: rgba(5,150,105,.20);
  --password-reissue-panel-button-bg: linear-gradient(135deg, #059669, #047857);
  --password-reissue-panel-button-hover-bg: linear-gradient(135deg, #047857, #065f46);
  --password-reissue-panel-button-border: rgba(5,150,105,.45);
  --user-password-change-card-bg: linear-gradient(135deg, rgba(247,250,247,.98), rgba(255,255,255,.98));
  --user-password-change-card-text: #0f172a;
  --user-password-change-card-muted: #64748b;
  --user-password-change-card-border: rgba(79,105,86,.20);
  --user-password-change-card-shadow: rgba(15,23,42,.08);
  --user-password-change-card-input-border: rgba(79,105,86,.20);
  --user-password-change-card-button-bg: linear-gradient(135deg, #4f6956, #213126);
  --user-password-change-card-button-hover-bg: linear-gradient(135deg, #213126, #111827);
  --customer-password-card-bg: linear-gradient(135deg, rgba(254,243,199,.82), rgba(255,255,255,.98));
  --customer-password-card-text: #92400e;
  --customer-password-card-border: rgba(217,119,6,.24);
  --customer-password-card-shadow: rgba(217,119,6,.08);
  --customer-password-card-button-bg: #92400e;
  --customer-password-card-button-hover-bg: #78350f;
  --customer-password-card-button-border: #92400e;
}
body.role-operator.theme-operator-refined::after {
  background: radial-gradient(circle, rgba(79,105,86,.08), rgba(79,105,86,0) 70%);
}
body.role-supplier {
  --page-bg: linear-gradient(180deg, #ffffff 0%, #fff8ef 42%, #fff0d9 100%);
  --surface: rgba(255,255,255,.94);
  --surface-strong: #ffffff;
  --header-bg: rgba(255,255,255,.82);
  --nav-bg: rgba(255,255,255,.88);
  --hero-copy-bg: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.88));
  --hero-visual-bg: rgba(255,255,255,.92);
  --table-head-bg: #fff4e6;
  --row-bg: rgba(255,248,239,.78);
  --row-hover-bg: rgba(255,241,221,.98);
  --field-bg: #fff;
  --line: rgba(217,119,6,.11);
  --line-soft: rgba(217,119,6,.18);
  --text: #0f172a;
  --muted: #64748b;
  --shadow: 0 18px 44px rgba(15,23,42,.09);
  --primary: #d97706;
  --primary-dark: #b45309;
  --secondary: #f59e0b;
  --accent: #c2410c;
  --success: #4f6956;
  --success-dark: #213126;
  --success-soft: rgba(79,105,86,.10);
  --warning: #c2410c;
  --warning-dark: #9a3412;
  --warning-soft: rgba(194,65,12,.11);
  --error: #991b1b;
  --error-dark: #7f1d1d;
  --error-soft: rgba(153,27,27,.12);
  --role-accent: #d97706;
  --role-accent-dark: #b45309;
  --role-accent-soft: rgba(217,119,6,.11);
  --role-glow: rgba(217,119,6,.13);
  --ui-chip-bg: rgba(217,119,6,.08);
  --ui-chip-bg-hover: rgba(217,119,6,.14);
  --ui-pill-bg: rgba(217,119,6,.08);
  --ui-pill-bg-hover: rgba(217,119,6,.12);
  --ui-pill-border: rgba(217,119,6,.18);
  --hero-panel-bg: linear-gradient(135deg, #d97706, #b45309);
  --hero-panel-text: #ffffff;
  --hero-panel-muted: rgba(255,255,255,.82);
  --hero-panel-button-bg: #ffffff;
  --hero-panel-button-hover-bg: rgba(255,255,255,.96);
  --hero-panel-button-text: #b45309;
  --hero-panel-button-border: rgba(255,255,255,.88);
  --hero-stat-bg: rgba(255,255,255,.98);
  --hero-stat-border: var(--line);
  --hero-stat-value-alert: #dc2626;
  --password-change-panel-bg: linear-gradient(135deg, rgba(255,251,235,.98), rgba(255,255,255,.98));
  --password-change-panel-text: #1f2937;
  --password-change-panel-muted: #7c2d12;
  --password-change-panel-border: rgba(245,158,11,.24);
  --password-change-panel-shadow: rgba(245,158,11,.10);
  --password-change-panel-input-border: rgba(217,119,6,.22);
  --password-change-panel-button-bg: linear-gradient(135deg, #d97706, #b45309);
  --password-change-panel-button-hover-bg: linear-gradient(135deg, #b45309, #92400e);
  --password-change-panel-button-border: rgba(180,83,9,.45);
  --password-reissue-panel-bg: linear-gradient(135deg, rgba(255,247,237,.98), rgba(255,255,255,.98));
  --password-reissue-panel-text: #1f2937;
  --password-reissue-panel-muted: #9a3412;
  --password-reissue-panel-border: rgba(217,119,6,.20);
  --password-reissue-panel-shadow: rgba(217,119,6,.10);
  --password-reissue-panel-input-border: rgba(180,83,9,.22);
  --password-reissue-panel-button-bg: linear-gradient(135deg, #d97706, #b45309);
  --password-reissue-panel-button-hover-bg: linear-gradient(135deg, #b45309, #92400e);
  --password-reissue-panel-button-border: rgba(180,83,9,.45);
  --user-password-change-card-bg: linear-gradient(135deg, rgba(255,247,237,.98), rgba(255,255,255,.98));
  --user-password-change-card-text: #0f172a;
  --user-password-change-card-muted: #7c2d12;
  --user-password-change-card-border: rgba(217,119,6,.20);
  --user-password-change-card-shadow: rgba(15,23,42,.08);
  --user-password-change-card-input-border: rgba(217,119,6,.20);
  --user-password-change-card-button-bg: linear-gradient(135deg, #d97706, #b45309);
  --user-password-change-card-button-hover-bg: linear-gradient(135deg, #b45309, #92400e);
}
body.role-admin {
  --page-bg: linear-gradient(180deg, #020617 0%, #0f172a 56%, #111827 100%);
  --surface: rgba(15,23,42,.82);
  --surface-strong: rgba(15,23,42,.96);
  --header-bg: rgba(2,6,23,.80);
  --nav-bg: rgba(15,23,42,.88);
  --hero-copy-bg: linear-gradient(180deg, rgba(15,23,42,.92), rgba(15,23,42,.82));
  --hero-visual-bg: rgba(15,23,42,.88);
  --table-head-bg: rgba(15,23,42,.98);
  --row-bg: rgba(15,23,42,.58);
  --row-hover-bg: rgba(30,41,59,.92);
  --field-bg: rgba(15,23,42,.95);
  --line: rgba(148,163,184,.18);
  --line-soft: rgba(148,163,184,.28);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --shadow: 0 20px 44px rgba(0,0,0,.42);
  --role-accent: #22d3ee;
  --role-accent-dark: #06b6d4;
  --role-accent-soft: rgba(34,211,238,.16);
  --role-glow: rgba(34,211,238,.16);
  --success: #34d399;
  --success-dark: #10b981;
  --success-soft: rgba(52,211,153,.16);
  --warning: #fbbf24;
  --warning-dark: #f59e0b;
  --warning-soft: rgba(251,191,36,.16);
  --error: #f87171;
  --error-dark: #ef4444;
  --error-soft: rgba(248,113,113,.16);
  --password-reissue-panel-bg: linear-gradient(135deg, rgba(2,6,23,.96), rgba(15,23,42,.96));
  --password-reissue-panel-text: #f8fafc;
  --password-reissue-panel-muted: #67e8f9;
  --password-reissue-panel-border: rgba(34,211,238,.20);
  --password-reissue-panel-shadow: rgba(34,211,238,.08);
  --password-reissue-panel-input-border: rgba(34,211,238,.24);
  --password-reissue-panel-button-bg: linear-gradient(135deg, #22d3ee, #06b6d4);
  --password-reissue-panel-button-hover-bg: linear-gradient(135deg, #06b6d4, #0891b2);
  --password-reissue-panel-button-border: rgba(34,211,238,.45);
}
body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  opacity: .55;
}
body::before {
  top: -90px;
  right: -130px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, var(--role-glow), rgba(59,130,246,0) 72%);
}
body::after {
  left: -100px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(245,158,11,.08), rgba(245,158,11,0) 70%);
}
.header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 24px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(15,23,42,.04);
}
.header-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}
.header-title a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}
.brand-wordmark {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
  font-family: "BIZ UDPGothic Web", "BIZ UDPGothic", "Yu Gothic", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--role-accent);
  text-decoration: none;
}
.brand-wordmark-customer,
.brand-wordmark-operator {
  gap: 0;
}
.brand-wordmark-customer .brand-wordmark-lead,
.brand-wordmark-customer .brand-wordmark-tail,
.brand-wordmark-operator .brand-wordmark-lead,
.brand-wordmark-operator .brand-wordmark-tail {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .03em;
}
.brand-wordmark-customer .brand-wordmark-separator,
.brand-wordmark-operator .brand-wordmark-separator {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
  margin: 0 6px;
}
.brand-wordmark:hover {
  color: var(--role-accent-dark);
}
.role-admin .brand-wordmark {
  color: #e2e8f0;
}
.role-admin .brand-wordmark:hover {
  color: #f8fafc;
}
.header h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--role-accent);
}
.header-role-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.header-role-mobile svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.header-role-mobile svg * {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-role-mobile svg .fill {
  fill: currentColor;
  stroke: none;
}
.header-role-badge {
  display: inline-flex;
}
.header-role-badge .role-badge {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  gap: 6px;
  white-space: normal;
}
.header-role-badge .role-badge svg {
  width: 16px;
  height: 16px;
  opacity: .72;
}
.role-admin .header-role-badge .role-badge {
  color: rgba(226,232,240,.88);
}
.header .user {
  margin: 0 0 0 auto;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-self: flex-start;
}
.header-menu-shell {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}
.header-customer {
  align-items: center;
}
.header-operator-account {
  align-items: center;
}
.header-customer .header-menu-shell {
  justify-content: center;
}
.header-operator-account .header-menu-shell {
  justify-content: center;
}
.header-customer .header-title-customer {
  flex: 0 1 auto;
  min-width: 0;
}
.header-operator-account .header-title-operator {
  flex: 0 1 auto;
  min-width: 0;
}
.header-identity-menu {
  flex: 0 0 auto;
  padding-bottom: 0;
  margin-bottom: 0;
}
.header-identity-label {
  min-height: 38px;
  padding: 8px 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: #1f2a44;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
}
.header-identity-label-text {
  display: inline-flex;
  align-items: center;
  max-width: min(32vw, 260px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-identity-popover {
  right: 0;
  left: auto;
  min-width: 180px;
}
.header-customer .brand-wordmark {
  max-width: min(36vw, 420px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-operator-account .brand-wordmark {
  max-width: min(34vw, 380px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header .user .header-guest-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--nav-bg);
  color: var(--role-accent-dark);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(15,23,42,.05);
}
.header .user .header-guest-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15,23,42,.08);
}
.user-menu {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: -10px;
}
.user-menu > summary {
  list-style: none;
}
.user-menu > summary::-webkit-details-marker {
  display: none;
}
.mail-template-placeholder-toggle > summary {
  list-style: none;
}
.mail-template-placeholder-toggle > summary::-webkit-details-marker {
  display: none;
}
.mail-template-placeholder-toggle > summary {
  cursor: pointer;
}
.user-menu-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ui-chip-bg);
  border: 1px solid var(--ui-pill-border);
  color: var(--role-accent-dark);
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}
.user-menu-label-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.user-menu-label-caret {
  font-size: 11px;
  line-height: 1;
  opacity: .85;
}
.role-operator.theme-operator-refined .user-menu-label {
  background: var(--ui-chip-bg);
}
.user-menu:focus-within .user-menu-label,
.user-menu[open] .user-menu-label {
  background: var(--ui-chip-bg-hover);
}
.role-operator.theme-operator-refined .user-menu:focus-within .user-menu-label,
.role-operator.theme-operator-refined .user-menu[open] .user-menu-label {
  background: var(--ui-chip-bg-hover);
}
.user-menu-popover {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% - 2px);
  min-width: 160px;
  padding: 10px 8px 8px;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line-soft);
  box-shadow: 0 16px 30px rgba(15,23,42,.16);
  z-index: 30;
}
.user-menu[open] .user-menu-popover {
  display: block;
}
.user-menu[open] .user-menu-label {
  background: rgba(37,99,235,.14);
}
.user-menu-popover a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}
.user-menu-header {
  padding: 2px 10px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}
.user-menu-header-label {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.user-menu-item-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menu-link-icon {
  width: 15px;
  height: 15px;
}
.user-menu-popover a:hover {
  background: var(--ui-chip-bg-hover);
}
.role-operator.theme-operator-refined .user-menu-popover a:hover {
  background: var(--ui-chip-bg-hover);
}
.user-menu-popover a.logout {
  margin-top: 6px;
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
  border-radius: 0;
}
.header-menu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.header-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.header-menu a:hover {
}
.header-menu a.active,
.header-menu a.cart-button.active,
.user-menu-popover a.active,
.user-menu-popover a.cart-button.active,
.nav a.active {
  background: var(--ui-chip-bg-hover);
  color: var(--role-accent-dark);
}
.header-menu a.cart-button,
.user-menu-popover a.cart-button {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border-color: transparent;
}
.header-menu a.cart-button:hover,
.user-menu-popover a.cart-button:hover {
  background: linear-gradient(135deg, #38bdf8, #0369a1);
  color: #fff;
}
.header-logout-link {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--nav-bg);
  color: #b91c1c;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(15,23,42,.05);
}
.header-logout-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15,23,42,.08);
}
.header-logout-link .user-menu-item-icon {
  color: #b91c1c;
}
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--role-accent-soft);
  border: 1px solid var(--role-accent-soft);
  color: #888;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}
.role-badge svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.role-badge svg * {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.role-badge svg .fill {
  fill: currentColor;
  stroke: none;
}
.wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1180px;
  --wrap-gutter: 24px;
  margin: 0 auto;
  padding: 24px var(--wrap-gutter) 0;
}
.wrap.app-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  max-width: 1440px;
}
.app-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}
.app-sidebar-heading {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  width: fit-content;
  border-radius: 999px;
  background: var(--ui-chip-bg);
  color: var(--role-accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.app-sidebar .app-sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 0;
}
.app-sidebar .app-sidebar-nav a {
  width: 100%;
  justify-content: flex-start;
  border-radius: 14px;
  padding: 11px 12px;
  box-shadow: none;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
}
.app-sidebar .app-sidebar-nav a.active,
.app-sidebar .app-sidebar-nav a.cart-button.active {
  box-shadow: none;
}
.app-sidebar-link-text {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}
.app-sidebar-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}
.app-sidebar-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-sidebar-link-label {
  flex: 1 1 auto;
  white-space: nowrap;
}
.app-sidebar .app-sidebar-nav a:hover,
.app-sidebar .app-sidebar-nav a:visited {
  text-decoration: none;
}
.app-sidebar .nav-count-badge {
  white-space: nowrap;
  flex: 0 0 auto;
}
.app-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.app-content > .hero,
.app-content > .card,
.app-content > .grid-2,
.app-content > .feature-row {
  width: 100%;
}
body.role-public .wrap {
  max-width: none;
  --wrap-gutter: 0px;
  padding: 0;
}
.page-shell {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
}
body.role-public .header {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-inline: max(32px, calc((100vw - 1180px) / 2 + 32px));
  box-sizing: border-box;
}
.site-footer {
  margin-top: auto;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
  padding: 22px 24px 24px;
  color: #e2e8f0;
  background: linear-gradient(135deg, rgba(15,23,42,.96), rgba(30,41,59,.92));
}
body:not(.role-public) .site-footer {
  padding-left: 0;
  padding-right: 0;
}
body.role-public .site-footer {
  padding: 22px 32px 24px;
}
.site-footer-inner {
  display: grid;
  gap: 10px;
  justify-content: center;
}
.site-footer-kicker {
  display: inline-flex;
  padding: 6px 12px 0px 12px;
  border: 1px solid rgba(249,115,22,.28);
  border-radius: 999px;
  font-family: "Padyakke Expanded One", serif;
  font-size: 18px;
  font-weight: 700;
  /* letter-spacing: .12em; */
  color: #fbbf24;
  width: fit-content;
}
.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.06em;
  font-family: "Jost Web", "Jost", "Yu Gothic", "Hiragino Sans", "Noto Sans JP", sans-serif;
}
.site-footer-brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}
.hero-banner-kicker {
  font-family: "BIZ UDPGothic Web", "BIZ UDPGothic", "Yu Gothic", "Hiragino Sans", "Noto Sans JP", sans-serif;
}
.site-footer-note {
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(226,232,240,.88);
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 2px;
  font-size: 14px;
}
.site-footer-links a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: #fbbf24;
}
.legal-page {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 8px 0 40px;
  color: #0f172a;
}
.legal-page-header {
  margin-bottom: 24px;
  padding: 28px 30px;
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  background: #f8fafc;
}
.legal-page-header h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.35;
}
.legal-page-header p {
  margin: 0;
  color: #475569;
  line-height: 1.8;
}
.legal-section {
  margin-top: 22px;
  padding: 26px 30px;
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  background: #fff;
}
.legal-section h2 {
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--role-accent);
  color: #0f172a;
  font-size: 24px;
}
.legal-section h3 {
  margin: 26px 0 8px;
  color: #1e293b;
  font-size: 18px;
}
.legal-section p,
.legal-section li,
.legal-company-table th,
.legal-company-table td {
  line-height: 1.9;
}
.legal-section ul {
  margin: 8px 0 0;
  padding-left: 1.5em;
}
.legal-company-table {
  width: 100%;
  border-collapse: collapse;
}
.legal-company-table th,
.legal-company-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}
.legal-company-table th {
  width: 9em;
  color: #334155;
  font-weight: 700;
}
.legal-member-extra {
  border-color: var(--role-accent);
  background: var(--role-accent-soft);
}
.legal-member-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--role-accent);
  background: var(--role-accent-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 700px) {
  .legal-page {
    padding: 0 0 28px;
  }
  .legal-page-header,
  .legal-section {
    padding: 20px 18px;
    border-radius: 14px;
  }
  .legal-company-table,
  .legal-company-table tbody,
  .legal-company-table tr,
  .legal-company-table th,
  .legal-company-table td {
    display: block;
    width: 100%;
  }
  .legal-company-table th {
    padding-bottom: 2px;
    border-bottom: 0;
  }
  .legal-company-table td {
    padding-top: 2px;
  }
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
body.role-public .nav {
  padding: 0 32px 18px;
  margin-bottom: 0;
}
body.role-public .hero-home-copy-body,
body.role-public .hero-side,
body.role-public .feature-row {
  width: 100%;
  padding-inline: 32px;
  box-sizing: border-box;
}
@media (min-width: 901px) {
  body.role-public .hero-home-copy-body,
  body.role-public .hero-side,
  body.role-public .feature-row {
    max-width: 1180px;
    margin-inline: auto;
  }
}
@media (max-width: 900px) {
  .site-footer {
    padding-inline: 16px;
  }
  body.role-public .site-footer {
    padding-inline: 16px;
  }
  .wrap {
    --wrap-gutter: 16px;
    padding: 24px var(--wrap-gutter) 0;
  }
  body.role-public .wrap {
    --wrap-gutter: 0px;
    padding: 0;
  }
}
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--nav-bg);
  color: var(--role-accent-dark);
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(15,23,42,.05);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.nav a:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15,23,42,.08);
}
.nav a.primary {
  background: linear-gradient(135deg, var(--role-accent), var(--role-accent-dark));
  color: #fff;
  border-color: transparent;
}
.nav a.cart-button {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border-color: transparent;
}
.nav a.cart-button:hover {
  background: linear-gradient(135deg, #38bdf8, #0369a1);
  color: #fff;
}
.nav-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65em;
  padding: 0 0.45em;
  margin-left: 0.25em;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  color: #fff;
  font-size: 0.85em;
  font-weight: 900;
}
.nav-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65em;
  padding: 0 0.45em;
  margin-left: 0.12em;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  font-size: 0.85em;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(185,28,28,.28);
}
.header-menu a .nav-count-badge,
.header-menu-desktop a .nav-count-badge,
.user-menu-popover a .nav-count-badge {
  margin-left: 0.18em;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}
.card h2, .card h3 {
  margin-top: 0;
  color: var(--text);
}
.card.ok { border-color: rgba(52,211,153,.30); }
.shipment-panel {
  scroll-margin-top: 110px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease, background .2s ease;
}
.shipment-panel.is-active {
  border-color: rgba(5,150,105,.28);
  box-shadow: 0 18px 40px rgba(5,150,105,.10), var(--shadow);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(243,252,248,.96));
}
.shipment-panel.is-inactive {
  border-style: dashed;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.92));
}
.shipment-panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.shipment-panel-head h3 {
  margin-bottom: 0;
}
.shipment-panel-head-inline {
  justify-content: flex-start;
  gap: 8px;
}
.shipment-panel-head-inline .pill {
  flex: 0 0 auto;
}
.shipment-panel-body {
  overflow: hidden;
  will-change: max-height, opacity, transform;
}
.shipment-panel-body > :first-child {
  margin-top: 12px;
}
.shipment-panel-body > :last-child {
  margin-bottom: 0;
}
.operator-shipment-table {
  width: 100%;
  table-layout: fixed;
}
.operator-shipment-table th,
.operator-shipment-table td {
  overflow-wrap: anywhere;
}
.operator-shipment-table th:nth-child(1),
.operator-shipment-table td:nth-child(1) {
  width: 12%;
}
.operator-shipment-table th:nth-child(2),
.operator-shipment-table td:nth-child(2) {
  width: 20%;
}
.operator-shipment-table th:nth-child(3),
.operator-shipment-table td:nth-child(3) {
  width: 20%;
}
.operator-shipment-table th:nth-child(4),
.operator-shipment-table td:nth-child(4) {
  width: 12%;
}
.operator-shipment-table th:nth-child(5),
.operator-shipment-table td:nth-child(5) {
  width: 16%;
}
.operator-shipment-table th:nth-child(6),
.operator-shipment-table td:nth-child(6) {
  width: 16%;
}
.shipment-mode-form {
  margin: 0;
}
.shipment-mode-select {
  display: block;
  width: 100%;
  max-width: 180px;
  min-width: 0;
  box-sizing: border-box;
}
.customer-address-edit-card {
  max-width: 1080px;
}
.customer-address-edit-card form {
  max-width: 100%;
}
.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
}
.customer-address-edit-card .grid {
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
}
.hero {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .95fr);
  align-items: stretch;
}
.hero.hero-home {
  display: block;
  width: 100vw;
  margin-top: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.hero-home-banner { margin-bottom: 0; }
.hero-home-banner,
.hero-home-copy-body {
  width: 100%;
}
.hero-home-copy-body {
  padding: 40px 32px 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.hero-copy {
  padding: 28px;
  border-radius: 28px;
  background: var(--hero-copy-bg);
}
.hero-brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.hero-brand .role-badge {
  margin-bottom: 10px;
}
.hero-mark {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 30px var(--role-glow);
  overflow: hidden;
}
.hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--role-accent-soft);
  color: var(--role-accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.hero-role svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.hero-role svg * {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-role svg .fill {
  fill: currentColor;
  stroke: none;
}
.hero-title {
  margin: 0;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: .02em;
  font-weight: 900;
  white-space: nowrap;
}
.hero-title .accent {
  color: var(--accent);
}
.hero-copy p {
  font-size: 18px;
  line-height: 1.7;
  color: #334155;
  margin: 16px 0 0;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.hero-cta a,
.hero-cta button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255,255,255,.94);
  color: var(--role-accent-dark);
  border: 1px solid var(--line);
  box-shadow: 0 14px 24px rgba(15,23,42,.10);
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.hero-cta a:hover,
.hero-cta button:hover {
  transform: translateY(-1px);
  background: #ffffff;
  color: var(--role-accent-dark);
  border-color: var(--role-accent-soft);
  box-shadow: 0 18px 28px rgba(15,23,42,.14);
}
.role-admin .hero-cta a,
.role-admin .hero-cta button {
  background: rgba(15,23,42,.92);
  color: #f8fafc;
  border-color: rgba(148,163,184,.28);
  box-shadow: 0 14px 24px rgba(0,0,0,.18);
}
.role-admin .hero-cta a:hover,
.role-admin .hero-cta button:hover {
  background: rgba(30,41,59,.96);
  color: #ffffff;
  border-color: rgba(34,211,238,.34);
}
.role-entry-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}
.role-entry {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 28px rgba(15,23,42,.12);
  border: 1px solid rgba(255,255,255,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.role-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 32px rgba(15,23,42,.16);
}
.role-entry .role-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .88;
}
.role-entry .role-title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
}
.role-entry .role-desc {
  font-size: 13px;
  line-height: 1.55;
  opacity: .9;
}
.role-entry .role-chip {
  align-self: flex-start;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
}
.role-entry.customer { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.role-entry.operator { background: linear-gradient(135deg, var(--role-accent), var(--role-accent-dark)); }
.role-entry.supplier { background: linear-gradient(135deg, #d97706, #b45309); }
.role-entry.admin { background: linear-gradient(135deg, #020617, #111827); }
.hero-side {
  display: grid;
  gap: 12px;
  padding-top: 24px;
}
.hero.hero-home .hero-banner {
  min-height: 0;
  padding: 15em 0;
  margin: 0;
  border-radius: 0;
}
.hero-panel {
  padding: 18px;
  border-radius: 24px;
  background: var(--hero-panel-bg);
  color: var(--hero-panel-text);
  box-shadow: 0 18px 36px rgba(15,23,42,.14);
}
.hero-visual {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--hero-visual-bg);
  box-shadow: 0 18px 36px rgba(15,23,42,.08);
}
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-panel h3 {
  margin: 0 0 8px;
  color: var(--hero-panel-text);
}
.dashboard-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.dashboard-date {
  display: inline-block;
  margin-top: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--hero-panel-muted);
  text-align: right;
  white-space: nowrap;
}
.hero-panel .muted {
  color: var(--hero-panel-muted);
}

.password-change-panel {
  background: var(--password-change-panel-bg);
  color: var(--password-change-panel-text);
  border: 1px solid var(--password-change-panel-border);
  box-shadow: 0 18px 36px var(--password-change-panel-shadow);
}

.password-reissue-panel {
  background: var(--password-reissue-panel-bg);
  color: var(--password-reissue-panel-text);
  border: 1px solid var(--password-reissue-panel-border);
  box-shadow: 0 18px 36px var(--password-reissue-panel-shadow);
}

body.role-customer .password-reissue-panel {
  background: var(--password-reissue-panel-bg);
  color: var(--password-reissue-panel-text);
  border: 1px solid var(--password-reissue-panel-border);
  box-shadow: 0 18px 36px var(--password-reissue-panel-shadow);
}

.password-change-panel h3,
.password-change-panel .muted {
  color: var(--password-change-panel-muted);
}

.password-reissue-panel h3,
.password-reissue-panel .muted {
  color: var(--password-reissue-panel-muted);
}

body.role-customer .password-reissue-panel h3,
body.role-customer .password-reissue-panel .muted {
  color: var(--password-reissue-panel-muted);
}

.password-change-panel input {
  background: rgba(255,255,255,.96);
  color: var(--password-change-panel-text);
  border-color: var(--password-change-panel-input-border);
}

.password-reissue-panel input {
  background: rgba(255,255,255,.96);
  color: var(--password-reissue-panel-text);
  border-color: var(--password-reissue-panel-input-border);
}

body.role-customer .password-reissue-panel input {
  border-color: var(--password-reissue-panel-input-border);
}

.password-change-panel form button {
  background: var(--password-change-panel-button-bg);
  color: #fff;
  border-color: var(--password-change-panel-button-border);
}

.password-change-panel form button:hover {
  background: var(--password-change-panel-button-hover-bg);
}

.user-password-change-card {
  border-width: 2px;
  border-color: var(--user-password-change-card-border);
  background: var(--user-password-change-card-bg);
  box-shadow: 0 16px 30px var(--user-password-change-card-shadow);
}

body.role-operator .user-password-change-card {
  background: var(--user-password-change-card-bg);
  border-color: var(--user-password-change-card-border);
}

body.role-admin .user-password-change-card {
  background: linear-gradient(135deg, rgba(15,23,42,.96), rgba(30,41,59,.94));
  border-color: rgba(34,211,238,.20);
}

.user-password-change-card h2 {
  color: var(--role-accent-dark);
}

.user-password-change-card .muted {
  color: var(--user-password-change-card-muted);
}

.user-password-change-card input {
  background: rgba(255,255,255,.98);
  color: var(--user-password-change-card-text);
  border-color: var(--user-password-change-card-input-border);
}

.user-password-change-card form button {
  background: var(--user-password-change-card-button-bg);
  color: #fff;
  border-color: transparent;
}

.user-password-change-card form button:hover {
  background: var(--user-password-change-card-button-hover-bg);
}

body.role-admin .user-password-change-card h2,
body.role-admin .user-password-change-card .muted {
  color: #e2e8f0;
}

body.role-admin .user-password-change-card input {
  background: rgba(15,23,42,.95);
  color: #f8fafc;
  border-color: rgba(148,163,184,.28);
}

body.role-admin .user-password-change-card form button {
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
}

body.role-admin .user-password-change-card form button:hover {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}
@media (max-width: 900px) {
  body.role-public .wrap {
    --wrap-gutter: 0px;
    padding: 0;
  }
body.role-public .nav {
  padding: 0 16px 14px;
}
body.role-public .hero-home-copy-body,
body.role-public .hero-side,
body.role-public .feature-row {
  padding-inline: 16px;
}
  .hero.hero-home .hero-banner {
    min-height: 340px;
    padding: 0;
  }
  .hero-home-copy-body {
    padding: 20px;
  }
}
.hero-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-stat {
  background: var(--hero-stat-bg);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid var(--hero-stat-border);
  box-shadow: 0 14px 24px rgba(15,23,42,.08);
}
.hero-stat .label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.hero-stat .value {
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}
.hero-stat .value.is-alert {
  color: var(--hero-stat-value-alert);
  text-shadow: 0 0 0 transparent;
}
body.role-operator .hero-stat .value.is-alert {
  color: var(--hero-stat-value-alert);
}
.hero-stat .value small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
.hero-stat-actions {
  margin-top: 12px;
}
.hero-stat-actions .button-link {
  width: 100%;
}
.operator-onboarding-card {
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  border: 1px solid rgba(79,105,86,.16);
  box-shadow: 0 18px 34px rgba(15,23,42,.08);
}
.operator-onboarding-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.operator-onboarding-head h2 {
  margin-bottom: 6px;
}
.operator-onboarding-summary {
  display: flex;
  justify-content: flex-end;
  min-width: 96px;
}
.operator-onboarding-progress {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ui-chip-bg);
  color: var(--role-accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}
.operator-onboarding-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}
.operator-onboarding-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: 0 10px 22px rgba(15,23,42,.04);
}
.operator-onboarding-step[data-state="ok"] {
  border-color: rgba(5,150,105,.20);
  box-shadow: 0 10px 22px rgba(5,150,105,.08);
}
.operator-onboarding-step[data-state="warning"] {
  border-color: rgba(217,119,6,.22);
  box-shadow: 0 10px 22px rgba(217,119,6,.08);
}
.operator-onboarding-step[data-state="locked"] {
  opacity: .62;
  background: linear-gradient(180deg, rgba(248,250,252,.95), rgba(241,245,249,.92));
}
.operator-onboarding-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--ui-chip-bg);
  color: var(--role-accent-dark);
  font-size: 18px;
  font-weight: 900;
}
.operator-onboarding-step[data-state="ok"] .operator-onboarding-step-number {
  background: var(--success-soft);
  color: var(--success-dark);
}
.operator-onboarding-step[data-state="warning"] .operator-onboarding-step-number {
  background: var(--warning-soft);
  color: var(--warning-dark);
}
.operator-onboarding-step[data-state="locked"] .operator-onboarding-step-number {
  background: rgba(148,163,184,.12);
  color: #64748b;
}
.operator-onboarding-step-body {
  min-width: 0;
}
.operator-onboarding-step-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.operator-onboarding-step-description {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}
.operator-onboarding-step-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.operator-onboarding-status-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.operator-onboarding-status-mark .operator-onboarding-step-icon {
  width: 15px;
  height: 15px;
}
.operator-onboarding-step[data-state="ok"] .operator-onboarding-step-status {
  background: var(--success-soft);
  color: var(--success-dark);
}
.operator-onboarding-step[data-state="warning"] .operator-onboarding-step-status {
  background: var(--warning-soft);
  color: var(--warning-dark);
}
.operator-onboarding-step[data-state="locked"] .operator-onboarding-step-status {
  background: rgba(148,163,184,.12);
  color: #64748b;
}
.operator-onboarding-step-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.operator-onboarding-step-actions {
  margin-top: 10px;
}
.operator-onboarding-step-link {
  white-space: nowrap;
}
.operator-onboarding-step-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.operator-onboarding-step-icon.state-ok {
  color: var(--success-dark);
}
.operator-onboarding-step-icon.state-warning {
  color: var(--warning-dark);
}
.operator-onboarding-step-icon.state-locked {
  color: #64748b;
}
.operator-todo-card {
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,250,252,.96));
  border: 1px solid rgba(79,105,86,.16);
  box-shadow: 0 18px 34px rgba(15,23,42,.08);
}
.operator-todo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.operator-todo-head h2 {
  margin-bottom: 6px;
}
.operator-todo-summary {
  display: flex;
  justify-content: flex-end;
  min-width: 112px;
}
.operator-todo-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}
.operator-todo-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}
.operator-todo-item.is-alert {
  border-color: rgba(217,119,6,.22);
  box-shadow: 0 10px 22px rgba(217,119,6,.08);
}
.operator-todo-item.is-ok {
  border-color: rgba(5,150,105,.18);
  box-shadow: 0 10px 22px rgba(5,150,105,.06);
}
.operator-todo-item.is-muted {
  background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(241,245,249,.94));
  opacity: .82;
}
.operator-todo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--ui-chip-bg);
  color: var(--role-accent-dark);
}
.operator-todo-mark.is-alert {
  background: var(--warning-soft);
  color: var(--warning-dark);
}
.operator-todo-mark.is-ok {
  background: var(--success-soft);
  color: var(--success-dark);
}
.operator-todo-mark.is-muted {
  background: rgba(148,163,184,.12);
  color: #64748b;
}
.operator-todo-mark .operator-onboarding-step-icon {
  width: 16px;
  height: 16px;
}
.operator-todo-body {
  min-width: 0;
}
.operator-todo-title {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}
.operator-todo-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.operator-todo-status-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.operator-todo-status-mark .operator-onboarding-step-icon {
  width: 15px;
  height: 15px;
}
.operator-todo-actions {
  margin-top: 12px;
}
.operator-todo-actions .button-link {
  width: fit-content;
}
.feature-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0 !important;
  padding: 24px 32px 40px;
}
.feature {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--role-accent), var(--role-accent-dark));
  color: #fff;
  box-shadow: 0 16px 30px rgba(15,23,42,.12);
}
.feature h4 {
  margin: 0 0 6px;
  font-size: 18px;
}
.feature p {
  margin: 0;
  color: rgba(255,255,255,.88);
  line-height: 1.6;
  font-size: 15px;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 18px;
}
th, td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(226,232,240,.9);
  vertical-align: top;
}
th {
  text-align: left;
  font-size: 13px;
  color: var(--role-accent-dark);
  background: var(--table-head-bg);
}
tbody tr:nth-child(odd) td { background: var(--row-bg); }
tbody tr:hover td { background: var(--row-hover-bg); }
.customer-orders-table {
  width: 100%;
}
.operator-ranking-table {
  width: 100%;
}
.supplier-monthly-sales-card {
  background: linear-gradient(180deg, rgba(255,250,243,.98), rgba(255,244,230,.96));
  border: 1px solid rgba(217,119,6,.18);
  box-shadow: 0 16px 34px rgba(217,119,6,.10);
}
.supplier-monthly-sales-card h2 {
  color: #b45309;
}
.supplier-monthly-sales-card th {
  background: #fff3e5;
}
.operator-order-party {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.operator-order-party-customer {
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.operator-order-party-supplier {
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.operator-order-submetric {
  font-size: 13px;
  line-height: 1.2;
  color: var(--muted);
}
.operator-order-customer-name {
  margin: -4px 0 10px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text);
}
.operator-sales-chart-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(248,250,252,.94), rgba(255,255,255,.98));
}
.operator-sales-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.operator-sales-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px 10px;
  flex-wrap: wrap;
}
.operator-legend-swatch {
  display: inline-block;
  width: 22px;
  height: 4px;
  border-radius: 999px;
  vertical-align: middle;
  margin-right: 10px;
}
.operator-legend-swatch.is-sales {
  background: linear-gradient(180deg, #4f8cff, #1d4ed8);
}
.operator-legend-swatch.is-profit {
  background: linear-gradient(180deg, #c084fc, #7c3aed);
}
.operator-sales-chart {
  display: block;
  width: 100%;
  max-width: 1024px;
  height: auto;
}
.operator-month-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.operator-month-filter-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.operator-month-filter label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--muted);
  white-space: nowrap;
}
.operator-month-filter select {
  width: auto;
  min-width: 160px;
}
.operator-month-totals {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.operator-month-totals span + span {
  padding-left: 12px;
  border-left: 1px solid rgba(148,163,184,.35);
}
.operator-sales-grid line {
  stroke: rgba(148,163,184,.22);
  stroke-width: 1;
  shape-rendering: crispEdges;
}
.operator-sales-bar {
  fill: url(#operator-sales-bar-gradient);
  opacity: .92;
  stroke: rgba(255,255,255,.72);
  stroke-width: 1;
}
.operator-sales-bar-layer {
  opacity: .98;
}
.operator-profit-bar {
  fill: url(#operator-profit-bar-gradient);
  opacity: .92;
  stroke: rgba(255,255,255,.72);
  stroke-width: 1;
}
.operator-profit-bar-layer {
  opacity: .98;
}
.operator-sales-labels text {
  font-size: 11px;
  font-weight: 700;
  fill: #64748b;
}
.operator-sales-day-sales {
  font-size: 11px;
  font-weight: 700;
  fill: #1d4ed8;
}
.operator-sales-day-profit {
  font-size: 9px;
  font-weight: 700;
  fill: #7c3aed;
}
.operator-sales-labels line {
  stroke: rgba(148,163,184,.38);
  stroke-width: 1;
}
@media (max-width: 720px) {
  .operator-sales-card-head {
    flex-direction: column;
  }
  .operator-onboarding-head {
    flex-direction: column;
  }
  .operator-onboarding-summary {
    justify-content: flex-start;
  }
  .operator-onboarding-step {
    grid-template-columns: 1fr;
  }
  .operator-month-filter-wrap {
    align-items: flex-start;
  }
  .operator-month-filter {
    justify-content: flex-start;
  }
  .operator-month-totals {
    justify-content: flex-start;
  }
}
.customer-orders-mobile {
  display: none;
}
input, select, textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
  background: var(--field-bg);
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease;
}
input[type="checkbox"] {
  width: auto;
  box-sizing: border-box;
}
.check-field {
  text-align: left;
}
.check-field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.check-field input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
}
.check-field span {
  line-height: 1.2;
}
.master-active-note {
  margin-top: -4px;
  margin-bottom: 14px;
}
.required-mark {
  margin-left: 6px;
  color: #dc2626;
  font-size: .88em;
  font-weight: 700;
  white-space: nowrap;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--role-accent);
  box-shadow: 0 0 0 4px var(--role-accent-soft);
}
.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.form-grid > p {
  margin: 0;
}
.billing-terms {
  grid-column: 1 / -1;
}
.billing-terms[hidden] {
  display: none;
}
.customer-master-sections {
  display: grid;
  gap: 24px;
}
.customer-master-section {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--field-bg);
}
.customer-master-section legend {
  padding: 0 10px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}
.customer-delivery-date-settings {
  display: grid;
  gap: 10px;
  align-content: start;
}
.customer-delivery-date-settings > p {
  margin: 0;
}
.customer-estimated-arrival-days-field {
  padding-left: 14px;
  border-left: 3px solid var(--role-accent-soft);
}
.supplier-master-fields {
  margin-top: 12px;
}
.supplier-master-fields p {
  display: flex;
}
.operator-company-fields .wide-field {
  grid-column: 1 / -1;
}
.operator-company-fields .wide-field label {
  width: 100%;
}

.customer-password-card {
  background: var(--customer-password-card-bg);
  border-color: var(--customer-password-card-border);
  box-shadow: 0 10px 28px var(--customer-password-card-shadow);
}

.customer-password-card h2 {
  color: var(--customer-password-card-text);
}

.customer-password-card .button-link {
  background: var(--customer-password-card-button-bg);
  border-color: var(--customer-password-card-button-border);
  color: #fff;
}

.customer-password-card .button-link:hover {
  background: var(--customer-password-card-button-hover-bg);
  border-color: var(--customer-password-card-button-hover-bg);
}
button {
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 12px;
  padding: 11px 16px;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  color: #1e293b;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(15,23,42,.08);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
button:hover { transform: translateY(-1px); box-shadow: 0 14px 22px rgba(15,23,42,.12); }
button:active { transform: translateY(0); }
button.button-cta,
a.button-cta {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-color: rgba(59,130,246,.28);
  box-shadow: 0 14px 26px rgba(37,99,235,.24);
}
button.button-cta:hover,
a.button-cta:hover {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  box-shadow: 0 18px 30px rgba(37,99,235,.28);
}
button.customer-cart-add-button,
a.customer-cart-add-button {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-color: rgba(245,158,11,.26);
  box-shadow: 0 14px 26px rgba(245,158,11,.22);
}
button.customer-cart-add-button:hover,
a.customer-cart-add-button:hover {
  background: linear-gradient(135deg, #fbbf24, #b45309);
  color: #fff;
  border-color: rgba(245,158,11,.34);
  box-shadow: 0 18px 30px rgba(245,158,11,.26);
}
button.customer-order-confirm-button,
a.customer-order-confirm-button {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border-color: rgba(14,165,233,.26);
  box-shadow: 0 14px 26px rgba(14,165,233,.22);
}
button.customer-order-confirm-button:hover,
a.customer-order-confirm-button:hover {
  background: linear-gradient(135deg, #38bdf8, #0369a1);
  color: #fff;
  border-color: rgba(14,165,233,.34);
  box-shadow: 0 18px 30px rgba(14,165,233,.26);
}
button.customer-order-submit-button,
a.customer-order-submit-button {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-color: rgba(245,158,11,.26);
  box-shadow: 0 14px 26px rgba(245,158,11,.22);
}
button.customer-order-submit-button:hover,
a.customer-order-submit-button:hover {
  background: linear-gradient(135deg, #fbbf24, #b45309);
  color: #fff;
  border-color: rgba(245,158,11,.34);
  box-shadow: 0 18px 30px rgba(245,158,11,.26);
}
button.button-cancel,
a.button-cancel,
a.button-link.button-cancel {
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #fff;
  border-color: rgba(220,38,38,.24);
  box-shadow: 0 14px 26px rgba(220,38,38,.18);
}
button.button-cancel:hover,
a.button-cancel:hover,
a.button-link.button-cancel:hover {
  background: linear-gradient(135deg, #fb923c, #b91c1c);
  color: #fff;
  border-color: rgba(220,38,38,.34);
  box-shadow: 0 18px 30px rgba(220,38,38,.22);
}
button.button-cancel.operator-user-toggle-button,
a.button-link.button-cancel.operator-user-toggle-button {
  background: linear-gradient(135deg, #ef4444, #991b1b);
  color: #fff;
  border-color: rgba(153,27,27,.34);
  box-shadow: 0 14px 26px rgba(153,27,27,.20);
}
button.button-cancel.operator-user-toggle-button:hover,
a.button-link.button-cancel.operator-user-toggle-button:hover {
  background: linear-gradient(135deg, #f87171, #b91c1c);
  color: #fff;
  border-color: rgba(153,27,27,.46);
  box-shadow: 0 18px 30px rgba(153,27,27,.24);
}
body.role-operator a.button-link.operator-dashboard-link {
  background: rgba(255,255,255,.96);
  color: var(--role-accent-dark);
  border-color: rgba(79,105,86,.24);
  box-shadow: 0 10px 18px rgba(15,23,42,.08);
}
body.role-operator a.button-link.operator-dashboard-link:hover {
  background: rgba(247,250,247,.98);
  color: var(--role-accent-dark);
  border-color: rgba(79,105,86,.34);
  box-shadow: 0 14px 22px rgba(15,23,42,.10);
}
.hero-panel form button {
  background: var(--hero-panel-button-bg);
  color: var(--hero-panel-button-text);
  border: 1px solid var(--hero-panel-button-border);
  box-shadow: 0 14px 26px rgba(15,23,42,.16);
}
.hero-panel form button:hover {
  background: var(--hero-panel-button-hover-bg);
  color: var(--hero-panel-button-text);
}
.role-admin .hero-panel form button {
  background: rgba(15,23,42,.98);
  color: #e2e8f0;
  border: 1px solid rgba(34,211,238,.38);
  box-shadow: 0 14px 26px rgba(0,0,0,.28);
}
.role-admin .hero-panel form button:hover {
  background: rgba(30,41,59,.98);
  color: #f8fafc;
}

.password-change-panel form button {
  background: var(--password-change-panel-button-bg);
  color: #fff;
  border: 1px solid var(--password-change-panel-button-border);
  box-shadow: 0 14px 26px rgba(180,83,9,.18);
}

.password-reissue-panel form button {
  background: var(--password-reissue-panel-button-bg);
  color: #fff;
  border: 1px solid var(--password-reissue-panel-button-border);
  box-shadow: 0 14px 26px rgba(13,148,136,.18);
}

body.role-customer .password-reissue-panel form button {
  background: var(--password-reissue-panel-button-bg);
  border-color: var(--password-reissue-panel-button-border);
  box-shadow: 0 14px 26px rgba(37,99,235,.18);
}

.password-change-panel form button:hover {
  background: var(--password-change-panel-button-hover-bg);
  color: #fff;
  border-color: var(--password-change-panel-button-border);
}

.password-reissue-panel form button:hover {
  background: var(--password-reissue-panel-button-hover-bg);
  color: #fff;
  border-color: var(--password-reissue-panel-button-border);
}

body.role-customer .password-reissue-panel form button:hover {
  background: var(--password-reissue-panel-button-hover-bg);
  color: #fff;
  border-color: var(--password-reissue-panel-button-border);
}

.login-reissue-link,
.login-reissue-link a,
.login-reissue-link-anchor {
  color: #fff !important;
  font-weight: 700;
}

.login-reissue-link-anchor {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-reissue-link a:hover,
.login-reissue-link-anchor:hover {
  color: #ffedd5 !important;
}

.role-admin .password-change-panel form button {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  border: 1px solid rgba(180,83,9,.45);
  box-shadow: 0 14px 26px rgba(180,83,9,.18);
}

.role-admin .password-change-panel form button:hover {
  background: linear-gradient(135deg, #b45309, #92400e);
  color: #fff;
  border-color: rgba(180,83,9,.55);
}

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
a.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  min-height: 36px;
  border-radius: 999px;
  background: var(--ui-pill-bg);
  border: 1px solid var(--ui-pill-border);
  color: var(--role-accent-dark);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(15,23,42,.08);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
span.button-link.button-link-disabled,
a.button-link.button-link-disabled {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #6b7280;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
a.button-link:hover {
  transform: translateY(-1px);
  background: var(--ui-pill-bg-hover);
  border-color: var(--ui-pill-border);
  box-shadow: 0 12px 22px rgba(15,23,42,.12);
}
a.button-link.button-link-edit {
  background: rgba(239,246,255,.98);
  color: #1d4ed8;
  border-color: rgba(96,165,250,.28);
}
a.button-link.button-link-edit:hover {
  background: rgba(219,234,254,1);
  color: #1d4ed8;
  border-color: rgba(59,130,246,.38);
}
a.button-link.button-link-default {
  background: rgba(255,247,237,.98);
  color: #9a3412;
  border-color: rgba(251,146,60,.30);
}
a.button-link.button-link-default:hover {
  background: rgba(254,215,170,1);
  color: #9a3412;
  border-color: rgba(249,115,22,.40);
}
a.button-link.button-link-small,
span.button-link.button-link-small {
  padding: 6px 9px;
  min-height: 30px;
  font-size: 12px;
}
.closure-mail-action-wrap {
  margin-top: 8px;
}
a.button-link.closure-mail-action {
  background: #0369a1;
  border-color: #075985;
  color: #fff;
  box-shadow: 0 8px 16px rgba(3,105,161,.18);
}
a.button-link.closure-mail-action:hover,
a.button-link.closure-mail-action:focus-visible {
  background: #075985;
  border-color: #0c4a6e;
  color: #fff;
  box-shadow: 0 12px 22px rgba(3,105,161,.24);
}
.customer-product-setup-action {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.customer-product-setup-action a {
  color: var(--role-accent-dark);
  font-weight: 700;
  text-decoration: none;
}
.customer-product-setup-action a:hover,
.customer-product-setup-action a:focus-visible {
  color: var(--role-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.operator-ranking-customer-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.operator-ranking-customer-cell > span {
  min-width: 0;
}
.operator-ranking-customer-cell > .operator-monthly-delivery-note-link {
  flex: 0 0 auto;
}
.supplier-ranking-operator-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.supplier-ranking-operator-cell > span {
  min-width: 0;
}
.supplier-ranking-operator-cell > .supplier-monthly-delivery-note-link {
  flex: 0 0 auto;
}
a.button-icon-cart::before,
a.button-icon-add::before {
  display: inline-block;
  margin-right: 0.4em;
  font-size: 0.95em;
  line-height: 1;
}
a.button-icon-cart::before { content: "🛒"; }
a.button-icon-add::before { content: "＋"; }
a.button-link[target="_blank"]::after {
  content: "↗";
  margin-left: 0.35em;
  font-size: 0.9em;
  line-height: 1;
  opacity: 0.85;
}
.role-admin a.button-link {
  background: rgba(15,23,42,.9);
  color: #f8fafc;
  border-color: rgba(148,163,184,.28);
}
.role-admin a.button-link:hover {
  background: rgba(30,41,59,.98);
  color: #ffffff;
  border-color: rgba(34,211,238,.34);
}
.muted { color: var(--muted); }
.error { background: var(--error-soft); border: 1px solid rgba(248,113,113,.32); color: var(--error-dark); padding: 10px 12px; border-radius: 14px; margin-bottom: 12px; }
.ok { background: var(--success-soft); border: 1px solid rgba(52,211,153,.32); color: var(--success-dark); padding: 10px 12px; border-radius: 14px; margin-bottom: 12px; }
.warning { background: var(--warning-soft); border: 1px solid rgba(251,191,36,.32); color: var(--warning-dark); padding: 10px 12px; border-radius: 14px; margin-bottom: 12px; }
.pill { display:inline-flex; align-items:center; padding: 4px 10px; border-radius: 999px; background:#e0e7ff; color:#1e3a8a; font-size:12px; font-weight:700; border: 1px solid transparent; }
.pill { white-space: nowrap; }
.pill.pill-default {
  background: rgba(241,245,249,.96);
  color: #475569;
  border: 1px solid rgba(148,163,184,.45);
}
.pill.is-inactive { background: var(--error-soft); color: var(--error-dark); border: 1px solid rgba(248,113,113,.42); }
.pill.is-warning { background: var(--warning-soft); color: var(--warning-dark); border: 1px solid rgba(251,191,36,.42); }
.pill.is-per-order { background: rgba(204,251,241,.96); color: #0f766e; border: 1px solid rgba(45,212,191,.52); }
.pill.is-correction-requested {
  background: var(--warning-soft);
  color: var(--warning-dark);
  border: 1px solid rgba(251,191,36,.42);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42);
}
.pill.is-cancelled {
  background: var(--error-soft);
  color: var(--error-dark);
  border: 1px solid rgba(248,113,113,.42);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42);
}
.pill.is-correction-applied {
  background: var(--warning-soft);
  color: var(--warning-dark);
  border: 1px solid rgba(251,191,36,.42);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42);
}
body.role-operator .pill.is-inactive {
  background: rgba(254,226,226,.98);
  color: #991b1b;
  border-color: rgba(248,113,113,.65);
}
td:last-child {
  white-space: nowrap;
}
.search-card {
  border: 1px solid rgba(59,130,246,.18);
  background: linear-gradient(180deg, rgba(239,246,255,.96), rgba(255,255,255,.98));
}
.search-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.search-card h2 {
  margin-bottom: 4px;
}
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.merge-source-line {
  color: #991b1b;
  font-weight: 700;
}
.merge-target-text {
  color: #1d4ed8;
  font-weight: 700;
}
.merge-source-text {
  color: #991b1b;
  font-weight: 700;
}
.actions a { margin-right: 8px; }
.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  min-height: 40px;
  border-radius: 999px;
  background: var(--ui-pill-bg);
  border: 1px solid var(--ui-pill-border);
  color: var(--role-accent-dark);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(15,23,42,.08);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.actions a:hover {
  transform: translateY(-1px);
  background: var(--ui-pill-bg-hover);
  border-color: var(--ui-pill-border);
  box-shadow: 0 14px 24px rgba(15,23,42,.12);
}
.role-admin .card,
.role-admin .hero-visual,
.role-admin .hero-stat {
  background: rgba(15,23,42,.88);
  border-color: rgba(148,163,184,.18);
}
.role-admin .hero-copy {
  background: linear-gradient(180deg, rgba(15,23,42,.92), rgba(15,23,42,.82));
}
.role-admin .hero-panel {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}
.role-admin .nav a {
  color: #e2e8f0;
}
.role-admin .nav a.primary {
  background: linear-gradient(135deg, #22d3ee, #0891b2);
  color: #00131a;
}
.role-admin .header .user {
  background: rgba(2,6,23,.72);
  color: #cbd5e1;
  border-color: rgba(148,163,184,.18);
}
.role-admin .card h2,
.role-admin .card h3,
.role-admin th,
.role-admin a {
  color: #e2e8f0;
}
.role-admin .hero-copy p,
.role-admin .muted,
.role-admin .label,
.role-admin .hero-stat .label,
.role-admin .hero-stat .value small {
  color: #94a3b8;
}
.role-admin .pill {
  background: rgba(34,211,238,.14);
  color: #67e8f9;
}
.role-admin .hero-role,
.role-admin .role-badge {
  background: rgba(34,211,238,.14);
  color: #fff;
  border-color: rgba(34,211,238,.16);
}
.role-admin input,
.role-admin select,
.role-admin textarea {
  background: rgba(2,6,23,.72);
  color: #f8fafc;
}
body.role-admin::before {
  background: radial-gradient(circle, var(--role-glow), rgba(59,130,246,0) 72%);
}
body.role-admin::after {
  background: radial-gradient(circle, rgba(245,158,11,.08), rgba(245,158,11,0) 70%);
}
body.role-admin .hero-copy,
body.role-admin .hero-panel,
body.role-admin .card,
body.role-admin .hero-visual,
body.role-admin .hero-stat,
body.role-admin .header .user {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
body.role-admin .hero-copy {
  background: var(--hero-copy-bg);
}
body.role-admin .hero-panel {
  background: var(--surface-strong);
}
body.role-admin .password-change-panel {
  background: linear-gradient(135deg, rgba(255,251,235,.98), rgba(255,255,255,.98));
  color: #1f2937;
  border: 1px solid rgba(245,158,11,.24);
  box-shadow: 0 18px 36px rgba(245,158,11,.10);
}
body.role-admin .password-change-panel h3,
body.role-admin .password-change-panel .muted {
  color: #7c2d12;
}
body.role-admin .password-change-panel input {
  background: rgba(255,255,255,.96);
  color: #111827;
  border-color: rgba(217,119,6,.22);
}
body.role-admin .password-change-panel form button {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  border-color: rgba(180,83,9,.45);
}
body.role-admin .password-change-panel form button:hover {
  background: linear-gradient(135deg, #b45309, #92400e);
}
body.role-admin .nav a {
  color: var(--text);
}
body.role-admin .nav a.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}
body.role-admin .card h2,
body.role-admin .card h3,
body.role-admin th,
body.role-admin a {
  color: var(--text);
}
body.role-admin .hero-copy p,
body.role-admin .muted,
body.role-admin .label,
body.role-admin .hero-stat .label,
body.role-admin .hero-stat .value small {
  color: var(--muted);
}
body.role-admin .pill,
body.role-admin .hero-role,
body.role-admin .role-badge {
  background: var(--role-accent-soft);
  color: #fff;
  border-color: var(--ui-pill-border);
}
body.role-admin .pill.is-inactive {
  background: var(--error-soft);
  color: var(--error-dark);
  border-color: rgba(248,113,113,.42);
}
body.role-admin .pill.is-per-order {
  background: rgba(45,212,191,.18);
  color: #5eead4;
  border-color: rgba(45,212,191,.42);
}
body.role-admin .hero-cta a,
body.role-admin .hero-cta button,
body.role-admin a.button-link {
  background: rgba(255,255,255,.94);
  color: var(--role-accent-dark);
  border-color: var(--line);
  box-shadow: 0 14px 24px rgba(15,23,42,.10);
}
body.role-admin .hero-cta a:hover,
body.role-admin .hero-cta button:hover,
body.role-admin a.button-link:hover {
  background: #ffffff;
  color: var(--role-accent-dark);
  border-color: var(--role-accent-soft);
  box-shadow: 0 18px 28px rgba(15,23,42,.14);
}
body.role-admin button.button-cta,
body.role-admin a.button-cta {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-color: rgba(59,130,246,.28);
}
body.role-admin button.button-cta:hover,
body.role-admin a.button-cta:hover {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: #fff;
  border-color: rgba(59,130,246,.34);
}
body.role-admin button.button-cancel,
body.role-admin a.button-cancel,
body.role-admin a.button-link.button-cancel {
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #fff;
  border-color: rgba(220,38,38,.24);
}
body.role-admin button.button-cancel:hover,
body.role-admin a.button-cancel:hover,
body.role-admin a.button-link.button-cancel:hover {
  background: linear-gradient(135deg, #fb923c, #b91c1c);
  color: #fff;
  border-color: rgba(220,38,38,.34);
}
body.role-admin button {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  color: #1e293b;
  border-color: rgba(148,163,184,.28);
}
body.role-admin button:hover {
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  color: #0f172a;
}
body.role-admin input,
body.role-admin select,
body.role-admin textarea {
  background: var(--field-bg);
  color: var(--text);
}
.design-system-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.design-system-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.design-system-swatch {
  display: grid;
  gap: 6px;
}
.design-system-swatch-color {
  min-height: 58px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.design-system-swatch-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.design-system-swatch-value {
  font-size: 11px;
  color: #334155;
  word-break: break-word;
}
.design-system-role-card .muted {
  font-weight: 600;
}
.design-system-role-card:not([data-role="admin"]) h3 {
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit !important;
  box-shadow: none;
}
.design-system-role-card:not([data-role="admin"]) .muted {
  color: #334155 !important;
}
.design-system-role-card:not([data-role="admin"]) .design-system-swatch-label {
  color: #0f172a !important;
  font-weight: 800;
}
.design-system-role-card:not([data-role="admin"]) .design-system-swatch-value {
  color: #0f172a !important;
  background: #fff;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 1px 0 rgba(255,255,255,.8);
}
.design-system-role-card .design-system-swatch-label {
  color: #0f172a;
}
.design-system-role-card .design-system-swatch-value {
  line-height: 1.45;
}
.design-system-sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.design-system-preview-box {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: var(--surface-strong);
}
.design-system-mini-card {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
}
.design-system-token-table code {
  white-space: nowrap;
}
.design-system-token-table {
  width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
}
.design-system-token-table td,
.design-system-token-table th {
  vertical-align: middle;
}
.design-system-token-table th:nth-child(4),
.design-system-token-table td:nth-child(4) {
  width: 112px;
  min-width: 112px;
  text-align: center;
}
.design-system-token-value {
  word-break: break-word;
}
.design-system-token-swatch {
  display: inline-block;
  width: 88px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
@media (max-width: 900px) {
  .header { padding: 14px 16px; align-items: flex-start; }
  .wrap {
    --wrap-gutter: 16px;
    padding: 16px var(--wrap-gutter) 0;
  }
  .wrap.app-layout {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    position: static;
  }
  .hero { grid-template-columns: 1fr; }
  .role-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  :root {
    --mobile-header-height: 67px;
  }
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  .header,
  body.role-public .header,
  .site-footer {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
  body.role-public .site-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }
  body:not(.role-public) .site-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-header-height);
    min-height: var(--mobile-header-height);
    padding: 0 16px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .header-menu-shell {
    display: none;
  }
  .header-title,
  .header .user,
  .header-menu-shell {
    width: auto;
  }
  .header-title,
  .header .user {
    align-self: center;
  }
  .header-title {
    flex-wrap: nowrap;
    min-width: 0;
  }
  .header .user {
    margin-left: auto;
    justify-content: flex-end;
    flex: 0 0 auto;
  }
  .header-customer,
  .header-operator-account {
    gap: 10px;
  }
  .header-customer .header-title-customer,
  .header-operator-account .header-title-operator {
    flex: 1 1 auto;
  }
  .header-customer .brand-wordmark,
  .header-operator-account .brand-wordmark {
    max-width: min(42vw, 320px);
  }
  .header-menu-shell {
    justify-content: flex-start;
  }
  .user-menu-popover a.cart-button {
    background: none;
    color: var(--text);
    border: 0;
  }
  .user-menu-popover a.cart-button:hover {
    background: var(--ui-chip-bg-hover);
    color: var(--text);
  }
  .wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    padding-top: var(--mobile-header-height);
  }
  body.role-public .wrap {
    padding-top: 0;
  }
  body.role-public .hero.hero-home {
    margin-top: var(--mobile-header-height);
  }
  .app-sidebar {
    display: none;
  }
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }
  .search-form > p {
    min-width: 0 !important;
    width: 100%;
  }
  .search-form button,
  .search-form .button-cta {
    width: 100%;
  }
  .product-list-table {
    width: 100%;
    table-layout: fixed;
  }
  .product-list-table th,
  .product-list-table td {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .product-list-table .col-admin-product-code,
  .product-list-table .col-product-code,
  .product-list-table .col-customer,
  .product-list-table .col-supplier,
  .product-list-table .col-purchase-price {
    display: none;
  }
  .product-list-table .col-product-name {
    width: 58%;
  }
  .product-list-table .col-sale-price {
    width: 18%;
  }
  .product-list-table .col-status {
    width: 10%;
  }
  .product-list-table .col-action {
    width: 14%;
  }
  .customer-product-table {
    display: table;
    width: 100%;
    table-layout: fixed;
  }
  .customer-product-table th,
  .customer-product-table td {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .customer-product-table th:nth-child(3),
  .customer-product-table td:nth-child(3) {
    display: none;
  }
  .customer-product-table th:nth-child(1),
  .customer-product-table td:nth-child(1) {
    width: 38%;
  }
  .customer-product-table th:nth-child(2),
  .customer-product-table td:nth-child(2) {
    width: 15%;
  }
  .customer-product-table th:nth-child(4),
  .customer-product-table td:nth-child(4) {
    width: 14%;
  }
  .customer-product-table th:nth-child(5),
  .customer-product-table td:nth-child(5) {
    width: 33%;
  }
  .customer-product-table td .muted {
    margin-top: 6px;
  }
  .customer-product-table td.is-unavailable {
    opacity: .72;
  }
  .customer-product-table input[type="number"] {
    width: 100%;
    min-width: 0;
    padding: 8px 4px;
  }
  .customer-product-table input[type="number"]:disabled,
  .customer-product-table button:disabled {
    cursor: not-allowed;
    opacity: .55;
  }
  .customer-product-table .cart-add-button {
    width: 100%;
    min-width: 0;
    padding: 9px 8px;
    white-space: normal;
    line-height: 1.2;
  }
  .customer-orders-table {
    width: 100%;
  }
  .customer-orders-mobile {
    display: none;
  }
  .card > form {
    flex-direction: column;
    align-items: stretch;
  }
  .card > form > p {
    min-width: 0 !important;
    width: 100%;
  }
  .card > form > p > label {
    display: block;
    width: 100%;
  }
  .card > form button {
    width: 100%;
  }
  .card,
  .hero,
  .hero-copy,
  .hero-side,
  .hero-panel {
    max-width: 100%;
    min-width: 0;
  }
  .header,
  body.role-public .header {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
  .site-footer,
  body.role-public .site-footer,
  body:not(.role-public) .site-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .wrap {
    --wrap-gutter: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    padding: 76px var(--wrap-gutter) 0;
  }
  .hero-copy { padding: 20px; }
  .hero-title { font-size: 28px; }
  .hero-stats { grid-template-columns: 1fr; }
  .role-entry-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .wrap.app-layout {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    position: static;
  }
  .app-sidebar .app-sidebar-nav {
    display: flex !important;
  }
  .nav { display: none; }
  .hero-login { display: flex; flex-direction: column; }
  .hero-login .hero-side { order: 1; }
  .hero-login .hero-copy { order: 2; }
  .brand-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .header-identity-label {
    padding: 7px 12px;
  }
  .header-identity-label-text {
    max-width: 28vw;
  }
  .header-role-badge {
    display: none;
  }
  .header .user {
    margin-left: auto;
  }
  th, td { padding: 8px 6px; }
}
@media (max-width: 768px) {
  .header-customer,
  .header-operator-account {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }
  .header-customer .header-title-customer,
  .header-operator-account .header-title-operator {
    min-width: 0;
  }
  .header-customer .brand-wordmark,
  .header-operator-account .brand-wordmark {
    max-width: 100%;
    font-size: 14px;
    letter-spacing: .02em;
  }
  .header-customer .brand-wordmark-separator,
  .header-operator-account .brand-wordmark-separator,
  .header-customer .brand-wordmark-tail,
  .header-operator-account .brand-wordmark-tail {
    display: none;
  }
  .header-customer .user,
  .header-operator-account .user {
    margin-left: 0;
  }
  .header-identity-label {
    min-height: 34px;
    padding: 6px 10px;
  }
  .header-identity-label-text {
    max-width: 26vw;
    font-size: 12px;
  }
  .header-identity-popover {
    min-width: 150px;
  }
  .header-identity-menu {
    display: none !important;
  }
  .operator-ranking-table {
    display: table;
    table-layout: fixed;
  }
  .operator-ranking-table th,
  .operator-ranking-table td {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .customer-orders-table {
    display: none;
  }
  .customer-orders-mobile {
    display: grid;
    gap: 12px;
  }
  .customer-order-card {
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    padding: 14px;
    display: grid;
    gap: 12px;
  }
  .customer-order-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
  }
  .customer-order-card-label {
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .customer-order-card-value {
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .customer-order-card-actions {
    display: flex;
    justify-content: flex-end;
  }
  .customer-order-card-actions .button-link {
    font-size: 14px;
    padding: 7px 10px;
    min-height: 32px;
  }
}
@media (max-width: 700px) and (max-height: 760px) {
  body:not(.role-public) .site-footer {
    margin-top: clamp(24px, 4vh, 56px);
  }
}
@media (min-width: 769px) {
  .header-menu-shell {
    display: flex !important;
  }
  .header-menu {
    display: inline-flex !important;
  }
  .header-logout-link {
    display: inline-flex !important;
  }
  .user-menu {
    display: none !important;
  }
  .header-identity-menu {
    display: inline-block !important;
  }
}

.closure-calendar-head,
.closure-calendar-nav,
.closure-calendar-legend {
  display: flex;
  align-items: center;
}
.closure-calendar-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.closure-calendar-head h2 { margin: 0; }
.customer-order-calendar-intro {
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.customer-order-calendar-wait p { margin-bottom: 0; }
.supplier-order-receiving-calendar {
  margin: 16px 0 20px;
}
.closure-calendar-nav { gap: 12px; }
.closure-calendar-month-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color .18s ease;
}
.closure-calendar-month-link:hover,
.closure-calendar-month-link:focus-visible {
  color: var(--text);
  text-decoration: underline;
}
.closure-calendar-month-link:focus-visible {
  outline: 2px solid rgba(3,105,161,.35);
  outline-offset: 3px;
  border-radius: 3px;
}
.closure-calendar-nav strong {
  min-width: 92px;
  text-align: center;
  color: var(--text);
}
.closure-calendar-legend {
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}
.closure-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.closure-calendar-legend i {
  width: 12px;
  height: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
}
.closure-calendar-legend i.is-business { background: var(--surface-strong); }
.closure-calendar-legend i.is-regular-closure { background: #fff7ed; border-color: #fdba74; }
.closure-calendar-legend i.is-registered-closure { background: #fef2f2; border-color: #fca5a5; }
.closure-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--line-soft);
}
.closure-calendar-weekday {
  padding: 8px 4px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.closure-calendar-weekday:first-child { color: #b91c1c; }
.closure-calendar-weekday:nth-child(7) { color: #1d4ed8; }
.closure-calendar-day {
  min-width: 0;
  min-height: 86px;
  padding: 8px;
  background: var(--surface-strong);
}
.closure-calendar-day.is-empty { background: #f8fafc; }
.closure-calendar-day.is-regular-closure { background: #fff7ed; }
.closure-calendar-day.is-registered-closure { background: #fef2f2; }
.closure-calendar-date {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.closure-calendar-status {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.closure-calendar-day.is-regular-closure .closure-calendar-status { color: #9a3412; }
.closure-calendar-day.is-registered-closure .closure-calendar-status { color: #b91c1c; font-weight: 700; }

@media (max-width: 700px) {
  .closure-calendar-head {
    align-items: stretch;
    flex-direction: column;
  }
  .closure-calendar-nav { justify-content: space-between; }
  .closure-calendar-month-link { font-size: 12px; }
  .closure-calendar-day {
    min-height: 58px;
    padding: 5px 3px;
  }
  .closure-calendar-weekday { padding: 6px 2px; }
  .closure-calendar-date {
    margin-bottom: 3px;
    font-size: 12px;
  }
  .closure-calendar-status {
    display: -webkit-box;
    overflow: hidden;
    font-size: 9px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}
