:root {
    --twy-brand: #1d4743;
    --twy-brand-deep: #132e2c;
    --twy-accent: #bc7a4c;
    --twy-bg: #ebe7df;
    --twy-bg-soft: #e4ded4;
    --twy-surface: #fffdf9;
    --twy-surface-soft: #f7f2ea;
    --twy-sidebar-bg: #f5efe6;
    --twy-border: #ddd4c6;
    --twy-border-strong: #cfc3b2;
    --twy-text: #222520;
    --twy-text-soft: #6f695f;
    --twy-shadow: 0 20px 46px rgba(39, 32, 24, 0.06);
    --bs-body-bg: var(--twy-bg);
    --bs-body-color: var(--twy-text);
    --bs-border-color: var(--twy-border);
    --bs-secondary-color: var(--twy-text-soft);
    --bs-primary: var(--twy-brand);
    --bs-primary-rgb: 34, 63, 60;
    --bs-dark: var(--twy-brand-deep);
    --bs-dark-rgb: 24, 44, 42;
    --bs-link-color: var(--twy-brand);
    --bs-link-hover-color: #172f2c;
    --bs-font-sans-serif: "Instrument Sans", sans-serif;
}

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

body.twy-body {
    margin: 0;
    color: var(--twy-text);
    background:
        radial-gradient(circle at top left, rgba(188, 122, 76, 0.08), transparent 22%),
        radial-gradient(circle at right 18%, rgba(29, 71, 67, 0.045), transparent 24%),
        linear-gradient(180deg, #f2ede4 0%, #e7e1d6 100%);
    font-family: "Instrument Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.twy-sidebar__brand-name {
    font-family: "Newsreader", serif;
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
}

.twy-simple-shell,
.public-shell,
.operator-shell,
.qr-shell,
.twy-dashboard-main {
    min-height: 100vh;
}

.twy-card {
    background: var(--twy-surface);
    border: 1px solid rgba(221, 213, 202, 0.96);
    border-radius: 0.82rem;
    box-shadow: var(--twy-shadow);
    padding: 1.2rem;
}

.twy-toolbar {
    padding: 0.9rem;
    border: 1px solid var(--twy-border);
    border-radius: 0.82rem;
    background: var(--twy-surface-soft);
}

.twy-toolbar__row {
    display: flex;
    align-items: end;
    gap: 0.85rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
}

.twy-toolbar__row::-webkit-scrollbar {
    height: 8px;
}

.twy-toolbar__row::-webkit-scrollbar-thumb {
    background: rgba(34, 63, 60, 0.14);
    border-radius: 999px;
}

.twy-toolbar__field {
    flex: 0 0 170px;
    min-width: 170px;
}

.twy-toolbar__field--search {
    flex-basis: 280px;
    min-width: 280px;
}

.twy-toolbar__field--compact {
    flex-basis: 120px;
    min-width: 120px;
}

.twy-toolbar__meta {
    flex: 0 0 auto;
    align-self: center;
    white-space: nowrap;
    padding: 0 0.15rem;
}

.twy-toolbar__actions {
    display: inline-flex;
    align-items: end;
    gap: 0.65rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

.twy-page-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.35rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(221, 213, 202, 0.92);
}

.twy-page-header h1 {
    font-size: clamp(1.9rem, 2.7vw, 2.55rem);
    line-height: 1;
}

.twy-dashboard-stage {
    max-width: 1540px;
    margin: 0 auto;
    padding: 1.2rem 1rem 1.6rem;
}

.twy-dashboard-frame {
    padding: 1.15rem 1.2rem 1.35rem;
    border: 1px solid rgba(221, 213, 202, 0.92);
    border-radius: 1.4rem;
    background: rgba(255, 252, 247, 0.76);
    box-shadow: 0 24px 56px rgba(39, 32, 24, 0.05);
    backdrop-filter: blur(12px);
}

.twy-form-stack {
    display: grid;
    gap: 1rem;
}

.twy-form-label {
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: var(--twy-brand-deep);
}

.form-control,
.form-select,
.form-check-input,
textarea.form-control {
    border-radius: 0.68rem;
}

.form-control,
.form-select {
    min-height: 48px;
    border: 1px solid var(--twy-border);
    background: #fcfbf8;
    padding: 0.76rem 0.9rem;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(34, 63, 60, 0.42);
    box-shadow: 0 0 0 0.2rem rgba(34, 63, 60, 0.08);
    background: #ffffff;
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.twy-color-input {
    width: 100%;
    min-width: 84px;
    padding: 0.45rem;
    cursor: pointer;
}

.twy-color-input.form-control-color {
    max-width: none;
}

.form-text {
    color: var(--twy-text-soft);
}

.btn {
    border-radius: 0.68rem;
    font-weight: 600;
    padding: 0.64rem 0.94rem;
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-dark,
.btn-outline-dark:hover {
    background: var(--twy-brand-deep);
    border-color: var(--twy-brand-deep);
    color: #fbfaf7;
    box-shadow: 0 10px 20px rgba(24, 44, 42, 0.1);
}

.btn-outline-dark {
    border-color: rgba(24, 44, 42, 0.14);
    color: var(--twy-brand-deep);
    background: rgba(255, 255, 255, 0.82);
}

.btn-outline-secondary {
    border-color: rgba(116, 112, 106, 0.18);
    color: var(--twy-text);
    background: rgba(255, 255, 255, 0.92);
}

.btn-outline-danger {
    background: rgba(255, 255, 255, 0.82);
}

.btn-sm {
    padding: 0.54rem 0.88rem;
}

.twy-action-btn {
    min-height: 48px;
}

.badge.text-bg-light {
    background: #f2efe8 !important;
    color: var(--twy-brand-deep) !important;
    border: 1px solid rgba(34, 63, 60, 0.06);
}

.alert {
    border: 1px solid transparent;
    border-radius: 0.85rem;
    padding: 0.95rem 1rem;
    box-shadow: 0 10px 22px rgba(24, 31, 29, 0.035);
}

.alert-success {
    background: #eef4f0;
    border-color: #d7e4db;
    color: #23423d;
}

.alert-error,
.alert-danger {
    background: #f8eeea;
    border-color: #ead4ca;
    color: #7a3e27;
}

.alert-warning {
    background: #f8f3e9;
    border-color: #e6dac0;
    color: #71592b;
}

.alert-info {
    background: #eef2f4;
    border-color: #dce4e8;
    color: #3a5663;
}

.twy-checkbox-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.95rem;
    align-items: start;
    padding: 1rem 1.05rem;
    border: 1px solid var(--twy-border);
    border-radius: 0.9rem;
    background: #fcfbf8;
    cursor: pointer;
}

.twy-checkbox-card .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    border-color: #b9b1a6;
}

.twy-empty-state {
    border: 1px dashed var(--twy-border-strong);
    border-radius: 0.9rem;
    padding: 1.7rem 1.3rem;
    color: var(--twy-text-soft);
    text-align: center;
    background: rgba(251, 250, 247, 0.78);
}

.twy-public-form {
    padding: 2rem;
}

.twy-public-stage {
    width: min(1260px, calc(100% - 1.5rem));
    margin: 0 auto;
    padding: 1.1rem 0 2rem;
}

.twy-public-frame {
    position: relative;
    padding: 1.1rem;
    border: 1px solid rgba(217, 214, 204, 0.95);
    border-radius: 1.6rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 246, 240, 0.94) 100%);
    box-shadow:
        0 24px 48px rgba(28, 31, 26, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.twy-order-shell {
    display: grid;
    gap: 1rem;
    padding-bottom: calc(8rem + env(safe-area-inset-bottom));
}

.twy-order-shell__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.4rem 0.15rem 1rem;
    border-bottom: 1px solid rgba(220, 217, 206, 0.95);
}

.twy-order-shell__eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--twy-text-soft);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.twy-order-shell__title {
    margin: 0.4rem 0 0.18rem;
    font-size: clamp(2.05rem, 4vw, 3.2rem);
    line-height: 0.98;
}

.twy-order-shell__subtitle {
    margin: 0;
    max-width: 42rem;
    color: var(--twy-text-soft);
    font-size: 0.95rem;
    line-height: 1.5;
}

.twy-order-shell__meta {
    display: grid;
    gap: 0.65rem;
    min-width: min(235px, 100%);
}

.twy-order-meta-card {
    padding: 0.78rem 0.9rem;
    border: 1px solid rgba(224, 220, 210, 0.95);
    border-radius: 0.9rem;
    background: rgba(244, 241, 234, 0.88);
}

.twy-order-meta-card strong {
    display: block;
    font-size: 0.98rem;
    color: var(--twy-brand-deep);
}

.twy-order-meta-card__label {
    display: block;
    margin-bottom: 0.32rem;
    color: var(--twy-text-soft);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.twy-order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.twy-order-catalog {
    display: grid;
    gap: 1rem;
}

.twy-order-group {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.twy-order-group__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
    padding: 0 0.2rem;
}

.twy-order-group__eyebrow {
    margin-bottom: 0.08rem;
    color: var(--twy-text-soft);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.twy-order-group__header h2 {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.48rem;
    font-size: 1.1rem;
}

.twy-order-group__header h2 span {
    font-family: "Instrument Sans", sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--twy-text-soft);
    letter-spacing: 0;
    text-transform: none;
}

.twy-order-group__header span {
    color: var(--twy-text-soft);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.twy-order-group__header > span i {
    margin-right: 0.12rem;
    font-size: 1rem;
    vertical-align: -0.14rem;
    color: #6f8d65;
}

.twy-order-list {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(221, 217, 208, 0.92);
    border-bottom: 1px solid rgba(221, 217, 208, 0.92);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 1rem;
    overflow: hidden;
}

.twy-order-item-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.85rem;
    border-top: 1px solid rgba(231, 228, 220, 0.94);
    background: transparent;
    transition: background-color 140ms ease, border-color 140ms ease;
}

.twy-order-item-row:first-child {
    border-top: none;
}

.twy-order-item-row:hover {
    border-color: rgba(210, 206, 197, 0.95);
    background: rgba(249, 246, 239, 0.82);
}

.twy-order-item-row__media {
    width: 88px;
    height: 72px;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 0.9rem;
    background:
        radial-gradient(circle at top left, rgba(150, 115, 92, 0.1), transparent 34%),
        linear-gradient(160deg, #f1f0eb 0%, #e8e6dd 100%);
}

.twy-order-item-row__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.twy-order-item-row__placeholder {
    width: 88px;
    height: 72px;
    display: grid;
    place-items: center;
    font-family: "Newsreader", serif;
    font-size: 1.8rem;
    color: rgba(24, 44, 42, 0.36);
    text-transform: uppercase;
}

.twy-order-item-row__content {
    min-width: 0;
}

.twy-order-item-row__meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.18rem;
    flex-wrap: wrap;
}

.twy-order-item-row__type,
.twy-order-item-row__limit {
    display: inline-flex;
    align-items: center;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.twy-order-item-row__type {
    color: var(--twy-brand);
}

.twy-order-item-row__limit {
    color: var(--twy-text-soft);
}

.twy-order-item-row__limit::before {
    content: "\\2022";
    margin-right: 0.45rem;
    color: rgba(116, 112, 106, 0.6);
}

.twy-order-item-row__copy h3 {
    margin: 0 0 0.12rem;
    font-size: 0.98rem;
    font-family: "Instrument Sans", sans-serif;
    letter-spacing: -0.02em;
    color: var(--twy-brand-deep);
}

.twy-order-item-row__copy p {
    margin: 0;
    color: var(--twy-text-soft);
    font-size: 0.79rem;
    line-height: 1.42;
    max-width: 46ch;
}

.twy-order-item-row__action {
    display: grid;
    justify-items: stretch;
    gap: 0.2rem;
    min-width: 0;
    width: min(100%, 360px);
}

.twy-order-item-row__stepper-wrap {
    display: flex;
    justify-content: stretch;
}

.twy-quantity-stepper {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 0;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0.18rem;
    border: 1px solid rgba(220, 220, 213, 0.95);
    border-radius: 999px;
    background: #f8f6f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.twy-quantity-stepper .btn {
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--twy-brand-deep);
    box-shadow: none;
    font-size: 0.9rem;
}

.twy-quantity-stepper__input {
    min-height: 42px;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 1.02rem;
    padding: 0;
    box-shadow: none;
}

.twy-quantity-stepper__input:focus {
    background: transparent;
    box-shadow: none;
}

.twy-order-submit-bar {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    width: min(1180px, calc(100% - 2rem));
    padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
    border: 1px solid rgba(221, 225, 217, 0.95);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 34px rgba(24, 31, 29, 0.12);
    backdrop-filter: blur(12px);
    transform: translateX(-50%);
}

.twy-order-submit-bar__meta {
    display: grid;
    gap: 0.12rem;
}

.twy-order-submit-bar__meta strong {
    font-size: 1.02rem;
    color: var(--twy-brand-deep);
}

.twy-order-submit-bar__label {
    color: var(--twy-text-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.twy-order-submit-bar__button {
    min-width: 11rem;
    border-radius: 0.9rem;
}

.twy-public-form__header {
    margin-bottom: 1.5rem;
}

.twy-public-form__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.75rem;
    margin-bottom: 0.95rem;
    border-radius: 999px;
    background: rgba(34, 63, 60, 0.06);
    color: var(--twy-brand);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.twy-order-card {
    border-left: 4px solid rgba(34, 63, 60, 0.28);
}

.twy-order-card.is-new {
    border-left-color: var(--twy-accent);
    box-shadow: 0 18px 36px rgba(150, 115, 92, 0.16);
}

.twy-order-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.twy-status-panel,
.twy-order-card {
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.twy-status-panel--awaiting_approval,
.twy-order-card--awaiting_approval {
    border-color: #e9d4a9;
    background: linear-gradient(180deg, #fffaf0 0%, #f9f1e1 100%);
}

.twy-order-status-pill--awaiting_approval {
    background: #f8eed4;
    border-color: #ead6a1;
    color: #71592b;
}

.twy-status-panel--pending,
.twy-order-card--pending {
    border-color: #cfdad8;
    background: linear-gradient(180deg, #fbfcfb 0%, #f3f6f5 100%);
}

.twy-order-status-pill--pending {
    background: #eef3f2;
    border-color: #d8e2e0;
    color: var(--twy-brand-deep);
}

.twy-status-panel--preparing,
.twy-order-card--preparing {
    border-color: #cfe1d7;
    background: linear-gradient(180deg, #f9fcfa 0%, #edf5f0 100%);
}

.twy-order-status-pill--preparing {
    background: #eaf4ee;
    border-color: #d0e3d7;
    color: #23423d;
}

.twy-status-panel--ready,
.twy-order-card--ready {
    border-color: #dfccb7;
    background: linear-gradient(180deg, #fdfaf7 0%, #f6eee6 100%);
}

.twy-order-status-pill--ready {
    background: #f5e9dd;
    border-color: #e4c9ad;
    color: #7a4d24;
}

.twy-status-panel--collected,
.twy-order-card--collected {
    border-color: #cddfd0;
    background: linear-gradient(180deg, #fafcfb 0%, #eef5ef 100%);
}

.twy-order-status-pill--collected {
    background: #ebf3ec;
    border-color: #cfdfd2;
    color: #29503a;
}

.twy-status-panel--cancelled,
.twy-order-card--cancelled {
    border-color: #dddeda;
    background: linear-gradient(180deg, #fbfbfa 0%, #f1f2ee 100%);
}

.twy-order-status-pill--cancelled {
    background: #f0f1ed;
    border-color: #dbddd7;
    color: #666b67;
}

.twy-status-panel--rejected,
.twy-order-card--rejected,
.twy-status-panel--no_show,
.twy-order-card--no_show {
    border-color: #e8c7bf;
    background: linear-gradient(180deg, #fdf9f8 0%, #f6ece9 100%);
}

.twy-order-status-pill--rejected,
.twy-order-status-pill--no_show {
    background: #f8ece8;
    border-color: #e8c8c0;
    color: #8a4530;
}

.twy-operator-stats {
    margin-bottom: 1rem;
    padding: 0.9rem 0.95rem;
    border: 1px solid rgba(221, 225, 217, 0.95);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--twy-shadow);
}

.twy-operator-stats__headline {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.twy-operator-stats__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--twy-brand-deep);
}

.twy-operator-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.twy-operator-stat {
    display: grid;
    gap: 0.18rem;
    padding: 0.62rem 0.72rem;
    border: 1px solid rgba(221, 225, 217, 0.92);
    border-radius: 0.9rem;
    background: #fbfaf7;
    color: inherit;
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.twy-operator-stat:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(24, 31, 29, 0.06);
}

.twy-operator-stat.is-active {
    border-color: rgba(34, 63, 60, 0.26);
    box-shadow: 0 14px 26px rgba(24, 31, 29, 0.08);
}

.twy-operator-stat__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--twy-text-soft);
}

.twy-operator-stat__value {
    font-size: 1.05rem;
    line-height: 1;
    color: var(--twy-brand-deep);
}

.twy-operator-stat--all {
    background: #f7f8f4;
}

.twy-operator-stat--warning {
    background: #f8f3e9;
}

.twy-operator-stat--brand {
    background: #eef4f0;
}

.twy-operator-stat--accent {
    background: #f5efe9;
}

.twy-operator-stat--success {
    background: #edf4ee;
}

.twy-operator-stat--muted {
    background: #f3f4f1;
}

.twy-operator-stat--danger {
    background: #f8eeea;
}

.twy-menu-thumb {
    width: 3.1rem;
    height: 3.1rem;
    object-fit: cover;
    flex: 0 0 auto;
    border-radius: 0.82rem;
    border: 1px solid rgba(221, 225, 217, 0.95);
    background: #f3f4ef;
}

.twy-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.34rem 0.78rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.twy-dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.twy-sidebar {
    background:
        linear-gradient(180deg, rgba(247, 242, 234, 0.97) 0%, rgba(241, 234, 224, 0.96) 100%);
    border-right: 1px solid rgba(221, 213, 202, 0.95);
    backdrop-filter: blur(12px);
}

.twy-sidebar__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem 0.8rem 0.85rem;
    gap: 0.85rem;
}

.twy-sidebar__brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
}

.twy-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
}

.twy-sidebar__brand-mark,
.twy-sidebar__icon {
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 0.68rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.twy-sidebar__brand-mark {
    background: linear-gradient(160deg, #173a37 0%, #102a28 100%);
    color: #fbfaf7;
    font-weight: 700;
    box-shadow: none;
}

.twy-sidebar__brand-name {
    font-size: 1.32rem;
    line-height: 1;
    color: var(--twy-brand-deep);
}

.twy-sidebar__brand-copy,
.twy-sidebar__section-label {
    color: var(--twy-text-soft);
}

.twy-sidebar__brand-copy {
    font-size: 0.78rem;
}

.twy-sidebar__brand-copy-wrap {
    min-width: 0;
}

.twy-sidebar__toggle {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    justify-content: center;
    border-radius: 0.72rem;
    background: rgba(255, 252, 247, 0.7);
}

.twy-sidebar__section-label {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.38rem 0.5rem 0;
}

.twy-sidebar__nav {
    display: grid;
    gap: 0.18rem;
}

.twy-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    padding: 0.44rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.78rem;
    color: var(--twy-text);
    font-weight: 600;
    position: relative;
    font-size: 0.95rem;
}

.twy-sidebar__icon {
    background: rgba(255, 255, 255, 0.62);
    color: #6c6c67;
    font-size: 0.92rem;
}

.twy-sidebar__link:hover,
.twy-sidebar__link:focus {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(221, 213, 202, 0.92);
    color: var(--twy-brand-deep);
}

.twy-sidebar__link.is-active {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(211, 201, 188, 0.95);
    color: var(--twy-brand-deep);
    box-shadow: 0 12px 24px rgba(39, 32, 24, 0.05);
}

.twy-sidebar__link.is-active::before {
    display: none;
}

.twy-sidebar__link.is-active .twy-sidebar__icon {
    color: var(--twy-brand-deep);
    background: rgba(29, 71, 67, 0.08);
}

.twy-sidebar__label {
    white-space: nowrap;
}

.twy-sidebar__footer {
    margin-top: auto;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(221, 213, 202, 0.95);
}

.twy-sidebar__user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.6rem;
    border: 1px solid rgba(221, 213, 202, 0.88);
    border-radius: 0.82rem;
    background: rgba(255, 252, 247, 0.74);
}

.twy-sidebar__user-icon {
    background: rgba(188, 122, 76, 0.1);
    color: var(--twy-accent);
}

.twy-dashboard-main {
    flex: 1;
    min-width: 0;
}

.twy-page-header [data-sidebar-toggle] {
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    justify-content: center;
    border-radius: 0.72rem;
    background: rgba(255, 255, 255, 0.82);
}

.twy-page-header [data-sidebar-toggle] i {
    font-size: 1.02rem;
}

.twy-operator-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(221, 213, 202, 0.95);
    border-radius: 1rem;
    background: rgba(255, 252, 247, 0.88);
    box-shadow: var(--twy-shadow);
}

.operator-shell {
    background:
        radial-gradient(circle at top left, rgba(188, 122, 76, 0.07), transparent 22%),
        linear-gradient(180deg, #f2ede4 0%, #e7e0d5 100%);
}

.public-shell {
    background:
        radial-gradient(circle at top right, rgba(150, 115, 92, 0.045), transparent 22%),
        radial-gradient(circle at left 20%, rgba(34, 63, 60, 0.035), transparent 24%),
        linear-gradient(180deg, #eee9dd 0%, #e6e1d4 100%);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.public-shell .twy-card {
    border-color: rgba(229, 224, 215, 0.95);
}

.qr-shell {
    background: linear-gradient(180deg, #0f1918 0%, #132120 100%);
    color: #f8faf8;
}

.qr-code-frame {
    width: 100%;
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.4rem;
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.16);
}

.table,
.list-group-item {
    background: transparent;
}

.twy-table {
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(229, 224, 215, 0.92);
}

.twy-table thead th {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--twy-text-soft);
    border-bottom-width: 1px;
}

.twy-table tbody td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    vertical-align: middle;
}

.twy-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(229, 224, 215, 0.92);
}

.twy-pagination .page-link {
    border-radius: 0.72rem;
    border-color: rgba(24, 44, 42, 0.12);
    color: var(--twy-brand-deep);
    background: rgba(255, 255, 255, 0.92);
}

.twy-pagination .page-item.active .page-link {
    background: var(--twy-brand-deep);
    border-color: var(--twy-brand-deep);
}

.list-group-item {
    border-color: rgba(229, 224, 215, 0.82);
}

.text-body-secondary {
    color: var(--twy-text-soft) !important;
}

body.twy-sidebar-collapsed .twy-sidebar {
    width: 84px;
    min-width: 84px;
}

body.twy-sidebar-collapsed .twy-sidebar__brand-copy-wrap,
body.twy-sidebar-collapsed .twy-sidebar__section-label,
body.twy-sidebar-collapsed .twy-sidebar__label,
body.twy-sidebar-collapsed .twy-sidebar__link .badge,
body.twy-sidebar-collapsed .twy-sidebar__footer .btn i + .twy-sidebar__label {
    display: none !important;
}

body.twy-sidebar-collapsed .twy-sidebar__brand-row,
body.twy-sidebar-collapsed .twy-sidebar__user,
body.twy-sidebar-collapsed .twy-sidebar__link {
    justify-content: center;
}

body.twy-sidebar-collapsed .twy-sidebar__toggle {
    width: 2.05rem;
}

body.twy-sidebar-collapsed .twy-sidebar__link.is-active::before {
    display: none;
}

body.twy-sidebar-collapsed .twy-sidebar__footer .btn {
    padding-left: 0;
    padding-right: 0;
}

body.twy-sidebar-collapsed .twy-sidebar__footer .btn i {
    margin-right: 0 !important;
}

@media (min-width: 992px) {
    .twy-sidebar {
        position: sticky;
        top: 0;
        width: 272px;
        min-width: 272px;
        height: 100vh;
        visibility: visible !important;
        transform: none !important;
        transition: width 180ms ease, min-width 180ms ease;
    }

    .twy-sidebar .offcanvas-header {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .twy-sidebar {
        width: min(88vw, 296px);
    }

    .twy-page-header {
        margin-top: 0.25rem;
    }

    .twy-dashboard-stage {
        padding: 0.9rem 0.75rem 1.2rem;
    }

    .twy-dashboard-frame {
        padding: 1rem;
        border-radius: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .twy-dashboard-stage {
        padding: 0.7rem 0.5rem 1rem;
    }

    .twy-dashboard-frame {
        padding: 0.9rem;
        border-radius: 1rem;
    }

    .twy-public-stage {
        width: min(100%, calc(100% - 0.75rem));
        padding: 0.4rem 0 1rem;
    }

    .twy-public-frame {
        padding: 0.85rem;
        border-radius: 1.2rem;
    }

    .twy-page-header,
    .twy-operator-header,
    .twy-order-shell__header {
        flex-direction: column;
    }

    .twy-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .twy-toolbar__row {
        gap: 0.75rem;
    }

    .twy-toolbar__field {
        min-width: 150px;
    }

    .twy-toolbar__field--search {
        min-width: 240px;
    }

    .twy-card,
    .twy-public-form {
        padding: 1.15rem;
        border-radius: 1rem;
    }

    .twy-operator-stats__headline {
        flex-direction: column;
        align-items: flex-start;
    }

    .twy-operator-stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .twy-order-layout,
    .twy-order-list {
        grid-template-columns: 1fr;
    }

    .twy-order-item-row {
        grid-template-columns: 76px minmax(0, 1fr);
        align-items: start;
        gap: 0.65rem;
        padding: 0.68rem 0;
    }

    .twy-order-item-row__media,
    .twy-order-item-row__placeholder {
        width: 76px;
        height: 64px;
    }

    .twy-order-item-row__action {
        grid-column: 1 / -1;
        width: 100%;
    }

    .twy-order-shell {
        padding-bottom: calc(8.5rem + env(safe-area-inset-bottom));
    }

    .twy-order-catalog {
        overflow: visible;
    }

    .mobile-order-grid {
        display: grid;
        gap: 1rem;
    }
}
