:root {
    --navy: #012169;
    --navy-deep: #00153f;
    --navy-soft: #12327f;
    --navy-rgb: 1, 33, 105;
    --surface: #f2f5fb;
    --surface-strong: #ffffff;
    --line: #d4dceb;
    --text: #172847;
    --muted: #60718f;
    --shadow: 0 24px 70px rgba(0, 21, 63, 0.18);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(var(--navy-rgb), 0.16), transparent 28%),
        linear-gradient(180deg, #eef2f9 0%, #f8f9fc 100%);
    color: var(--text);
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}

.phone-frame {
    width: min(100%, 420px);
    background: linear-gradient(180deg, #0d0f14 0%, #20242a 100%);
    border-radius: 38px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), var(--shadow);
}

.phone-inner {
    min-height: 820px;
    background: var(--surface);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 3px solid #0f1623;
}

.phone-inner.signed-out {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 34%),
        linear-gradient(180deg, #001234 0%, #012169 46%, #032c83 100%);
}

.phone-inner.signed-out .app-header,
.phone-inner.signed-out .app-footer {
    display: none;
}

.phone-inner.signed-out .screen:not(.login-screen) {
    display: none !important;
}

.app-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 16px 14px 14px;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
    color: #fff;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.app-header h1,
.app-header p,
.image-card-header h2 {
    margin: 0;
}

.app-header h1 {
    font-size: 1.6rem;
}

.app-header p {
    opacity: 0.82;
    font-size: 0.88rem;
}

.icon-button,
.square-button,
.close-button,
.chevron-button {
    border: none;
    cursor: pointer;
}

.icon-button {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
}

.header-nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-button {
    font-size: 1.35rem;
}

.icon-button:disabled {
    opacity: 0.35;
    cursor: default;
}

.unlock-pill {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    color: #ffe08a;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
}

.unlock-pill::before {
    content: "\1F512";
    margin-right: 6px;
}

.unlock-pill[aria-pressed="true"]::before {
    content: "\1F513";
}

.menu-scrim {
    position: absolute;
    inset: 0;
    background: rgba(13, 22, 35, 0.16);
    z-index: 15;
}

.flyout-menu {
    position: absolute;
    top: 78px;
    left: 14px;
    width: min(220px, calc(100% - 28px));
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(var(--navy-rgb), 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(18, 34, 61, 0.2);
    z-index: 25;
}

.flyout-menu.hidden,
.menu-scrim.hidden {
    display: none;
}

.flyout-item {
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--navy-deep);
    text-align: left;
    padding: 12px 14px;
    font-weight: 700;
}

.flyout-item:hover,
.flyout-item:focus-visible {
    border-color: rgba(var(--navy-rgb), 0.16);
    background: linear-gradient(180deg, #f7faff 0%, #e8eef9 100%);
    outline: none;
}

.screen {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.screen.active {
    display: block;
}

.login-screen {
    padding: 0;
    overflow: hidden;
}

.login-screen.active {
    display: grid;
}

.login-panel {
    position: relative;
    min-height: 100%;
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 40px 28px;
    color: #fff;
    overflow: hidden;
}

.login-panel::before,
.login-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.login-panel::before {
    width: 260px;
    height: 260px;
    top: -90px;
    right: -100px;
}

.login-panel::after {
    width: 220px;
    height: 220px;
    left: -120px;
    bottom: -90px;
}

.login-logo,
.login-panel h2,
.login-panel p,
.login-form {
    position: relative;
    z-index: 1;
}

.login-logo {
    width: min(100%, 320px);
    justify-self: center;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.login-brand-kicker {
    margin: 10px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    text-align: center;
    opacity: 0.78;
}

.login-panel h2 {
    margin: 0;
    font-size: 2.1rem;
    text-align: center;
}

.login-copy {
    margin: 0 auto;
    max-width: 280px;
    text-align: center;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.login-form {
    display: grid;
    gap: 14px;
    margin-top: 10px;
}

.login-field {
    display: grid;
    gap: 8px;
}

.login-field span {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

.login-field input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.login-field input::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 56px;
}

.password-visibility-button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.84);
    cursor: pointer;
}

.login-form > button {
    min-height: 50px;
    border: none;
    border-radius: 14px;
    background: #ffffff;
    color: var(--navy-deep);
    font-weight: 800;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.login-message {
    min-height: 22px;
    margin: 0 !important;
    color: #ffd0d0 !important;
}

.hero-card {
    background: linear-gradient(160deg, rgba(var(--navy-rgb), 0.96), rgba(18, 50, 127, 0.92));
    color: #fff;
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.hero-card h2,
.hero-card p {
    margin: 0;
}

.hero-card h2 {
    font-size: 2rem;
    line-height: 1;
    margin: 10px 0 12px;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    opacity: 0.82;
}

.menu-grid {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.customer-grid {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.menu-card {
    border: 1px solid rgba(var(--navy-rgb), 0.14);
    background: var(--surface-strong);
    border-radius: 24px;
    padding: 20px;
    display: grid;
    gap: 8px;
    text-align: left;
    color: var(--text);
    box-shadow: 0 16px 32px rgba(22, 40, 74, 0.08);
}

.menu-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(var(--navy-rgb), 0.12);
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 800;
}

.menu-icon.ink {
    background: rgba(230, 69, 77, 0.12);
    color: #c0373e;
}

.menu-card strong {
    font-size: 1.25rem;
}

.menu-card small {
    color: var(--muted);
    font-size: 0.96rem;
}

.customer-hero {
    padding-bottom: 22px;
}

.customer-card {
    gap: 6px;
}

.customer-card strong {
    font-size: 1.1rem;
}

.customer-card.active-customer {
    border-color: rgba(var(--navy-rgb), 0.34);
    box-shadow: 0 16px 32px rgba(22, 40, 74, 0.12);
}

.customer-icon {
    font-size: 1rem;
}

.customer-section-copy {
    padding: 4px 4px 0;
}

.customer-section-copy h2,
.customer-section-copy p {
    margin: 0;
}

.customer-section-copy h2 {
    color: var(--navy);
    font-size: 1.55rem;
    margin-top: 6px;
}

.customer-section-copy p:last-child {
    color: var(--muted);
    margin-top: 10px;
    line-height: 1.45;
}

.customer-kicker {
    color: var(--navy);
}

.customer-actions {
    margin-top: 14px;
}

.press-layout-row {
    gap: 12px;
}

.press-layout-shell {
    display: grid;
    gap: 12px;
}

.press-layout-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.4;
}

.press-layout-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid rgba(var(--navy-rgb), 0.08);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(var(--navy-rgb), 0.04);
}

.press-layout-stage img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.press-layout-slot {
    position: absolute;
    display: grid;
    gap: 4px;
}

.press-layout-badge {
    justify-self: start;
    min-width: 28px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(20, 44, 80, 0.9);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

.press-layout-input,
.press-layout-display {
    width: 100%;
    min-height: 52px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(var(--navy-rgb), 0.18);
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    font-size: 0.72rem;
    line-height: 1.25;
    box-shadow: 0 8px 18px rgba(24, 46, 82, 0.08);
}

.press-layout-input {
    resize: none;
}

.press-layout-display {
    overflow: hidden;
    white-space: pre-wrap;
}

.press-layout-display.has-content {
    border-color: rgba(var(--navy-rgb), 0.24);
}

.press-station1 {
    left: 73%;
    top: 64%;
    width: 18%;
}

.press-station2 {
    left: 81%;
    top: 44%;
    width: 17%;
}

.press-station3 {
    left: 72%;
    top: 18%;
    width: 18%;
}

.press-station4 {
    left: 57%;
    top: 3%;
    width: 16%;
}

.press-station5 {
    left: 27%;
    top: 3%;
    width: 16%;
}

.press-station6 {
    left: 7%;
    top: 18%;
    width: 18%;
}

.press-station7 {
    left: 1%;
    top: 44%;
    width: 17%;
}

.press-station8 {
    left: 9%;
    top: 64%;
    width: 18%;
}

.press-loadLeft {
    left: 25%;
    top: 82%;
    width: 15%;
}

.press-loadRight {
    left: 60%;
    top: 82%;
    width: 15%;
}

.press-hub {
    left: 34%;
    top: 40%;
    width: 32%;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 52px;
    gap: 8px;
    margin-bottom: 14px;
}

.search-row.compact {
    margin-bottom: 10px;
}

.search-row input,
.field-row input,
.field-row select {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    min-height: 44px;
    padding: 10px 14px;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(var(--navy-rgb), 0.04);
}

.square-button {
    border-radius: 12px;
    background: var(--navy);
    color: #fff;
    font-size: 1.1rem;
}

.detail-list {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(var(--navy-rgb), 0.08);
    border-radius: 18px;
    overflow: hidden;
}

.detail-list.static {
    background: transparent;
    border: none;
    border-radius: 0;
}

.field-row,
.info-row {
    display: grid;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.editable-row input,
.editable-row select {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    min-height: 42px;
    padding: 10px 12px;
    color: var(--text);
}

.rich-row {
    gap: 10px;
}

.rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rich-toolbar button {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fafbfd 0%, #edf2f9 100%);
    color: var(--navy);
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 10px;
}

.rich-editor,
.rich-preview {
    width: 100%;
    min-height: 120px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    color: var(--text);
    line-height: 1.45;
}

.rich-editor:focus {
    outline: 2px solid rgba(var(--navy-rgb), 0.18);
    border-color: var(--navy);
}

.rich-preview {
    background: #f9fbff;
}

.rich-editor ul,
.rich-editor ol,
.rich-preview ul,
.rich-preview ol {
    margin: 0 0 0 18px;
    padding: 0;
}

.rich-editor p,
.rich-preview p {
    margin: 0 0 8px;
}

.editable-row input:disabled {
    border: none;
    background: transparent;
    padding: 0;
    min-height: auto;
    font-weight: 700;
    color: var(--text);
}

.customer-row {
    gap: 10px;
}

.customer-inline-button {
    min-height: 40px;
    justify-self: start;
}

.field-row:last-child,
.info-row:last-child {
    border-bottom: none;
}

.field-row span,
.info-row span,
.list-headings span {
    color: var(--navy);
    font-weight: 700;
}

.action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.compact-actions {
    grid-template-columns: 1fr;
    margin-top: 0;
    margin-bottom: 14px;
}

.action-row button,
.ghost-button,
.page-indicator {
    min-height: 46px;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
}

.action-row button {
    border: none;
    background: var(--navy);
    color: #fff;
}

.ghost-button,
.page-indicator {
    border: 1px solid #c5cfdf;
    background: linear-gradient(180deg, #fafbfd 0%, #ecf0f7 100%);
    color: var(--navy);
}

.list-headings {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 10px;
    padding: 10px 2px 8px;
    font-size: 0.88rem;
}

.ink-headings {
    grid-template-columns: 1fr 1.4fr;
}

.result-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.result-item,
.empty-state {
    display: grid;
    grid-template-columns: 70px 1fr 32px;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
}

.empty-state {
    grid-template-columns: 1fr;
    color: var(--muted);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 14px;
    background: #dfe8f5;
}

.shirt-placeholder {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #e7edf8;
    color: var(--muted);
    font-size: 0.72rem;
    text-align: center;
    padding: 6px;
}

.ink-item {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.ink-list-actions {
    display: grid;
    grid-auto-flow: column;
    gap: 8px;
    align-items: center;
    justify-content: end;
}

.ink-reorder-controls {
    display: grid;
    gap: 6px;
}

.ink-reorder-button {
    min-width: 34px;
    min-height: 28px;
    padding: 4px 6px;
    border-radius: 10px;
}

.ink-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(var(--navy-rgb), 0.12);
    color: var(--navy);
    font-weight: 800;
    justify-self: end;
}

.ink-list-thumbnail {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 14px;
    background: #dfe8f5;
    justify-self: end;
}

.result-copy {
    display: grid;
    gap: 3px;
}

.result-copy strong {
    font-size: 1.15rem;
}

.result-copy span {
    color: #536683;
}

.chevron-button {
    background: transparent;
    color: var(--muted);
    font-size: 2rem;
}

.results-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    color: var(--text);
    font-weight: 700;
}

.inline-action {
    min-height: 38px;
    padding: 8px 14px;
}

.full-width-action {
    width: 100%;
    margin-top: 12px;
}

.stack-actions {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.danger-button {
    border: 1px solid rgba(185, 28, 28, 0.25);
    background: linear-gradient(180deg, #fff5f5 0%, #ffe3e3 100%);
    color: #b42318;
    font-weight: 700;
}

.pagination {
    display: flex;
    gap: 8px;
}

.page-indicator {
    min-height: 34px;
    min-width: 34px;
    padding: 0;
}

.page-indicator.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.thumbnail-button {
    margin-top: 16px;
    border: none;
    background: transparent;
    display: grid;
    justify-items: center;
    gap: 0;
    cursor: pointer;
    padding: 0;
}

.thumbnail-button img {
    width: 100%;
    max-width: 132px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 16px 34px rgba(26, 49, 88, 0.18);
}

.thumbnail-button span {
    width: 100%;
    max-width: 132px;
    background: rgba(35, 55, 89, 0.9);
    color: #fff;
    padding: 8px 10px;
    border-radius: 0 0 14px 14px;
    font-size: 0.82rem;
}

.image-upload-block {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    min-width: 0;
}

.remove-image-button {
    min-height: 40px;
    padding: 8px 12px;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.image-upload-label {
    color: var(--navy);
    font-weight: 700;
}

.image-upload-block input[type="file"] {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
}

.empty-image {
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    color: var(--muted);
    background: #fbfcff;
    min-height: 120px;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
}

.info-actions {
    margin-bottom: 10px;
}

.ink-color {
    color: #d72c35;
}

.image-card {
    margin-top: 26px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 34px rgba(18, 34, 61, 0.14);
    padding: 18px;
}

.image-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.image-card-header h2 {
    color: var(--navy);
    font-size: 1.8rem;
}

.close-button {
    background: transparent;
    color: var(--navy);
    font-size: 1.4rem;
}

.image-card img {
    width: 100%;
    margin-top: 18px;
    border-radius: 18px;
    background: #eef3fb;
}

.production-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    margin-bottom: 14px;
}

.production-create-row {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 14px;
}

.inline-field {
    margin: 0;
}

.production-schedule-list {
    display: grid;
    gap: 10px;
}

.production-schedule-card,
.production-operation-card,
.production-entry-card,
.production-section-card {
    border: 1px solid rgba(var(--navy-rgb), 0.12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 30px rgba(18, 34, 61, 0.08);
}

.production-schedule-card {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(var(--navy-rgb), 0.1);
    text-align: left;
}

.production-schedule-order {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
    color: #fff;
    font-weight: 700;
}

.production-schedule-copy {
    display: grid;
    gap: 4px;
}

.production-schedule-copy strong {
    color: var(--navy-deep);
}

.production-schedule-copy span {
    color: var(--muted);
    font-size: 0.88rem;
}

.production-schedule-meta {
    display: grid;
    gap: 6px;
    justify-items: end;
}

.production-type-badge,
.production-status-badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.production-type-badge {
    background: rgba(var(--navy-rgb), 0.08);
    color: var(--navy);
}

.production-status-badge {
    background: #eef3fb;
    color: var(--navy-deep);
}

.status-scheduled {
    background: #e8eef9;
}

.status-in-progress {
    background: #fff1cf;
    color: #8a5b00;
}

.status-completed {
    background: #dcfae8;
    color: #116a39;
}

.status-on-hold {
    background: #fce2e2;
    color: #a53030;
}

.text-area-row {
    align-items: start;
}

.edit-textarea {
    min-height: 96px;
    resize: vertical;
    padding-top: 12px;
}

.production-section-card,
.production-operation-card,
.production-entry-card {
    padding: 14px;
    margin-top: 12px;
}

.production-section-header,
.production-operation-header,
.production-entry-header,
.production-subheader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.production-section-header h3,
.production-subheader h4 {
    margin: 0;
    color: var(--navy);
}

.production-section-header span {
    color: var(--muted);
    font-weight: 700;
}

.production-size-grid {
    display: grid;
    grid-template-columns: minmax(44px, 0.7fr) repeat(3, minmax(58px, 68px));
    gap: 8px;
    margin-top: 12px;
    justify-content: space-between;
}

.production-size-grid-header,
.production-size-label {
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
}

.production-size-label {
    min-height: 44px;
}

.production-size-grid .edit-input {
    width: 100%;
    min-width: 0;
    max-width: 68px;
    justify-self: center;
    text-align: center;
    padding: 10px 6px;
}

.production-entry-list {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.inline-help-text {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.compact-empty {
    padding: 10px;
}

.app-footer {
    padding: 12px 16px 16px;
    text-align: center;
    color: #536683;
    font-weight: 700;
    border-top: 1px solid rgba(var(--navy-rgb), 0.12);
    background: rgba(255, 255, 255, 0.5);
}

.app-footer.footer-error {
    color: #b42318;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 32, 0.52);
    display: grid;
    place-items: center;
    padding: 20px;
}

.modal-backdrop.hidden {
    display: none;
}

.modal-card {
    width: min(100%, 360px);
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.modal-card h2,
.modal-card p {
    margin: 0;
}

.modal-card h2 {
    color: var(--navy);
    margin-bottom: 10px;
}

.modal-card p {
    color: var(--muted);
}

.modal-card input {
    width: 100%;
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    min-height: 46px;
    padding: 10px 14px;
}

.modal-message {
    min-height: 20px;
    margin-top: 10px !important;
    color: #bf1f2f !important;
    font-weight: 700;
}

.modal-actions {
    margin-top: 12px;
}

.toast-message {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    background: rgba(25, 57, 102, 0.96);
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
    z-index: 30;
    font-weight: 700;
}

.toast-message.error {
    background: rgba(180, 35, 24, 0.96);
}

.toast-message.hidden {
    display: none;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 460px) {
    .phone-frame {
        width: 100%;
    }

    .phone-inner {
        min-height: 100vh;
        border-radius: 26px;
    }

    .app-header {
        grid-template-columns: auto 1fr;
    }

    .unlock-pill {
        grid-column: 1 / -1;
        justify-self: end;
    }

    .app-header h1 {
        font-size: 1.35rem;
    }

    .hero-card h2 {
        font-size: 1.65rem;
    }

    .results-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .production-toolbar,
    .production-schedule-card {
        grid-template-columns: 1fr;
    }

    .production-schedule-meta {
        justify-items: start;
    }

    .ink-item {
        grid-template-columns: 1fr auto;
    }

    .ink-list-actions {
        grid-auto-flow: row;
        justify-items: end;
    }

    .production-size-grid {
        grid-template-columns: minmax(34px, 0.6fr) repeat(3, minmax(52px, 60px));
        gap: 6px;
        justify-content: space-between;
    }

    .production-size-grid-header {
        font-size: 0.74rem;
        justify-content: center;
    }

    .production-size-grid .edit-input {
        max-width: 60px;
        min-height: 38px;
        padding: 8px 4px;
        font-size: 0.96rem;
    }

    .image-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .thumbnail-button img,
    .thumbnail-button span {
        max-width: 100%;
    }
}
