:root {
    --tokyo-workbench-bg: #efefef;
    --tokyo-workbench-surface: rgba(255, 255, 255, 0.9);
    --tokyo-workbench-surface-strong: #ffffff;
    --tokyo-workbench-ink: #16181d;
    --tokyo-workbench-muted: #66707d;
    --tokyo-workbench-line: rgba(21, 24, 29, 0.09);
    --tokyo-workbench-line-strong: rgba(21, 24, 29, 0.15);
    --tokyo-workbench-accent: #ff855f;
    --tokyo-workbench-accent-soft: rgba(255, 133, 95, 0.12);
    --tokyo-workbench-success: #2d9a62;
    --tokyo-workbench-warning: #f0a63a;
    --tokyo-workbench-shadow: 0 18px 36px rgba(17, 24, 39, 0.07);
    --tokyo-workbench-shadow-soft: 0 10px 24px rgba(17, 24, 39, 0.05);
    --tokyo-workbench-radius-xl: 28px;
    --tokyo-workbench-radius-lg: 22px;
    --tokyo-workbench-radius-md: 16px;
    --tokyo-workbench-radius-sm: 12px;
    --tokyo-workbench-pill: 999px;
}

body.tokyo-workbench {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 248, 249, 0.95)),
        var(--tokyo-workbench-cover);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--tokyo-workbench-ink);
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.tokyo-workbench a {
    color: inherit;
    text-decoration: none;
}

.tokyo-workbench-root {
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(244, 244, 245, 0.76), rgba(244, 244, 245, 0.92));
    backdrop-filter: blur(14px);
}

.tokyo-workbench-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    padding: 18px 16px 0;
}

.tokyo-workbench-header-inner {
    width: min(1440px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(246, 246, 247, 0.82);
    box-shadow: var(--tokyo-workbench-shadow);
    backdrop-filter: blur(18px);
}

.tokyo-workbench-brand-group,
.tokyo-workbench-account {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.tokyo-workbench-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.tokyo-workbench-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    flex: 0 0 48px;
}

.tokyo-workbench-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tokyo-workbench-brand-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.tokyo-workbench-brand-kicker {
    color: var(--tokyo-workbench-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tokyo-workbench-brand-name {
    color: var(--tokyo-workbench-ink);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.tokyo-workbench-quick-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tokyo-workbench-quick-link,
.tokyo-workbench-header-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--tokyo-workbench-line);
    border-radius: var(--tokyo-workbench-pill);
    background: rgba(255, 255, 255, 0.72);
    color: var(--tokyo-workbench-muted);
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s ease;
}

.tokyo-workbench-quick-link:hover,
.tokyo-workbench-header-link:hover {
    color: var(--tokyo-workbench-ink);
    border-color: var(--tokyo-workbench-line-strong);
    transform: translateY(-1px);
}

.tokyo-workbench-balance-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    min-height: 48px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--tokyo-workbench-shadow-soft);
}

.tokyo-workbench-balance-chip span {
    color: var(--tokyo-workbench-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tokyo-workbench-balance-chip strong {
    color: var(--tokyo-workbench-ink);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.tokyo-workbench-user-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px 8px 8px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--tokyo-workbench-shadow-soft);
}

.tokyo-workbench-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.tokyo-workbench-user-meta {
    display: grid;
    gap: 2px;
}

.tokyo-workbench-user-name {
    color: var(--tokyo-workbench-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
}

.tokyo-workbench-user-role {
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
    line-height: 1.1;
}

.tokyo-workbench-stage {
    padding: 22px 16px 36px;
}

.tokyo-workbench .layui-container.fly-user-main {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 316px minmax(0, 1fr);
    gap: 22px;
}

.tokyo-workbench-sidebar {
    position: sticky;
    top: 108px;
    align-self: start;
    display: grid;
    gap: 18px;
}

.tokyo-workbench-sidebar-card {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--tokyo-workbench-radius-xl);
    background: var(--tokyo-workbench-surface);
    box-shadow: var(--tokyo-workbench-shadow);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.tokyo-workbench-sidebar-card--profile {
    padding: 20px;
}

.tokyo-workbench-sidebar-profile {
    display: grid;
    gap: 16px;
}

.tokyo-workbench-sidebar-profile-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tokyo-workbench-sidebar-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}

.tokyo-workbench-sidebar-profile-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.tokyo-workbench-sidebar-profile-copy strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.tokyo-workbench-sidebar-profile-copy span {
    color: var(--tokyo-workbench-muted);
    font-size: 13px;
}

.tokyo-workbench-sidebar-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tokyo-workbench-sidebar-stat {
    padding: 12px 14px;
    border: 1px solid var(--tokyo-workbench-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
}

.tokyo-workbench-sidebar-stat span {
    display: block;
    color: var(--tokyo-workbench-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tokyo-workbench-sidebar-stat strong {
    display: block;
    margin-top: 5px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.tokyo-workbench-sidebar-card-head {
    padding: 18px 20px 12px;
}

.tokyo-workbench-sidebar-card-head span {
    color: var(--tokyo-workbench-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tokyo-workbench-sidebar-card-head strong {
    display: block;
    margin-top: 7px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.tokyo-workbench-menu {
    width: 100% !important;
    margin: 0;
    padding: 6px 12px 14px;
    border: 0;
    background: transparent !important;
}

.tokyo-workbench-menu.layui-nav-tree .layui-nav-bar,
.tokyo-workbench-menu .layui-nav-more {
    display: none !important;
}

.tokyo-workbench-menu .layui-nav-item {
    margin-bottom: 6px;
}

.tokyo-workbench-menu .layui-nav-item:last-child {
    margin-bottom: 0;
}

.tokyo-workbench-menu .layui-nav-item > a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px !important;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent !important;
    color: var(--tokyo-workbench-muted) !important;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.tokyo-workbench-menu .layui-nav-item > a .layui-icon {
    width: 18px;
    font-size: 17px;
    text-align: center;
}

.tokyo-workbench-menu .layui-this > a,
.tokyo-workbench-menu .layui-nav-item > a:hover {
    color: var(--tokyo-workbench-ink) !important;
    border-color: rgba(21, 24, 29, 0.1);
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.06);
}

.tokyo-workbench-menu .layui-badge {
    margin-left: auto;
    border-radius: 999px;
}

.tokyo-workbench .fly-panel-user {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 34px;
    background: var(--tokyo-workbench-surface);
    box-shadow: var(--tokyo-workbench-shadow);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.tokyo-workbench .layui-tab {
    margin: 0;
}

.tokyo-workbench .layui-tab-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 30px;
    height: auto;
    min-height: 72px;
    border-bottom: 1px solid var(--tokyo-workbench-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.24));
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.tokyo-workbench .layui-tab-title li {
    height: auto;
    min-height: 42px;
    line-height: 1.2;
    margin: 14px 0;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--tokyo-workbench-muted);
    font-size: 13px;
    font-weight: 700;
    background: transparent;
}

.tokyo-workbench .layui-tab-title .layui-this {
    color: var(--tokyo-workbench-ink);
    border-color: rgba(21, 24, 29, 0.09);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--tokyo-workbench-shadow-soft);
}

.tokyo-workbench .layui-tab-title .layui-this::after,
.tokyo-workbench .layui-tab-brief > .layui-tab-title .layui-this:after {
    display: none;
}

.tokyo-workbench-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 30px 18px;
    border-bottom: 1px solid var(--tokyo-workbench-line);
}

.tokyo-workbench-page-head--compact {
    padding-bottom: 12px;
}

.tokyo-workbench-page-copy {
    min-width: 0;
}

.tokyo-workbench-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--tokyo-workbench-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tokyo-workbench-page-title,
.tokyo-workbench .content-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--tokyo-workbench-ink);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1.04;
}

.tokyo-workbench .content-header {
    padding: 30px 30px 0;
}

.tokyo-workbench-page-summary {
    margin: 12px 0 0;
    color: var(--tokyo-workbench-muted);
    font-size: 14px;
    line-height: 1.6;
}

.tokyo-workbench-page-badges {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.tokyo-workbench-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(21, 24, 29, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
    font-weight: 700;
}

.tokyo-workbench-pill strong {
    color: var(--tokyo-workbench-ink);
}

.tokyo-workbench .content-body {
    padding: 26px 30px 30px;
}

.tokyo-dashboard-grid,
.tokyo-section-grid {
    display: grid;
    gap: 18px;
}

.tokyo-dashboard-grid--stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.tokyo-dashboard-grid--details {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.tokyo-metric-card,
.tokyo-section-card {
    padding: 20px 22px;
    border: 1px solid var(--tokyo-workbench-line);
    border-radius: 24px;
    background: var(--tokyo-workbench-surface-strong);
    box-shadow: var(--tokyo-workbench-shadow-soft);
}

.tokyo-metric-card span {
    display: block;
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tokyo-metric-card strong {
    display: block;
    margin-top: 12px;
    color: var(--tokyo-workbench-ink);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
}

.tokyo-metric-card small {
    display: block;
    margin-top: 8px;
    color: var(--tokyo-workbench-muted);
    font-size: 13px;
}

.tokyo-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.tokyo-section-head h3 {
    margin: 0;
    color: var(--tokyo-workbench-ink);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.tokyo-section-head p {
    margin: 6px 0 0;
    color: var(--tokyo-workbench-muted);
    font-size: 13px;
    line-height: 1.6;
}

.tokyo-detail-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.tokyo-detail-row {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(21, 24, 29, 0.08);
}

.tokyo-detail-row:last-child {
    border-bottom: 0;
}

.tokyo-detail-row dt {
    color: var(--tokyo-workbench-muted);
    font-size: 13px;
    font-weight: 700;
}

.tokyo-detail-row dd {
    margin: 0;
    color: var(--tokyo-workbench-ink);
    font-size: 14px;
    line-height: 1.7;
    min-width: 0;
    word-break: break-all;
}

.tokyo-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tokyo-action-card {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid var(--tokyo-workbench-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    transition: 0.2s ease;
}

.tokyo-action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tokyo-workbench-shadow-soft);
}

.tokyo-action-card strong {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.tokyo-action-card span {
    color: var(--tokyo-workbench-muted);
    font-size: 13px;
    line-height: 1.55;
}

.tokyo-workbench blockquote.elem-quote,
.tokyo-workbench blockquote.elem-tips {
    margin: 0 0 18px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 133, 95, 0.14);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 133, 95, 0.1), rgba(255, 255, 255, 0.94));
    color: var(--tokyo-workbench-ink);
    box-shadow: none;
}

.tokyo-workbench blockquote.elem-tips p:last-child,
.tokyo-workbench blockquote.elem-quote p:last-child {
    margin-bottom: 0;
}

.tokyo-workbench .layui-form,
.tokyo-workbench .form-data {
    min-width: 0;
}

.tokyo-form-stack {
    display: grid;
    gap: 16px;
}

.tokyo-form-stack > div {
    padding: 18px 20px;
    border: 1px solid var(--tokyo-workbench-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
}

.tokyo-form-stack .form-header {
    margin-bottom: 10px;
    color: var(--tokyo-workbench-ink);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.tokyo-form-stack .form-body {
    color: var(--tokyo-workbench-muted);
    font-size: 14px;
}

.tokyo-workbench .layui-input,
.tokyo-workbench .layui-textarea,
.tokyo-workbench .layui-select,
.tokyo-workbench .layui-form-select .layui-input {
    width: 100% !important;
    min-height: 48px;
    border: 1px solid rgba(21, 24, 29, 0.1) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--tokyo-workbench-ink) !important;
    box-shadow: none !important;
}

.tokyo-workbench .layui-textarea {
    min-height: 140px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.tokyo-workbench .layui-form-select dl {
    border-radius: 16px;
    border-color: rgba(21, 24, 29, 0.08);
    box-shadow: var(--tokyo-workbench-shadow-soft);
}

.tokyo-workbench .layui-btn,
.tokyo-workbench .button-click,
.tokyo-workbench .optional-card,
.tokyo-workbench .send-captcha {
    border-radius: 999px !important;
    border: 1px solid rgba(21, 24, 29, 0.08) !important;
    box-shadow: none !important;
}

.tokyo-workbench .layui-btn-pink,
.tokyo-workbench .payButton,
.tokyo-workbench .save-data,
.tokyo-workbench .save-config,
.tokyo-workbench .send-captcha {
    background: var(--tokyo-workbench-ink) !important;
    color: #ffffff !important;
}

.tokyo-workbench .button-click {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.88) !important;
    color: var(--tokyo-workbench-ink) !important;
}

.tokyo-workbench .pay-list,
.tokyo-workbench .franchise-purchase-pay-list,
.tokyo-workbench .franchise-deposit-pay-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tokyo-workbench .pay-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.tokyo-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.tokyo-workbench .business-group {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 100%;
    padding: 18px 18px 16px;
    border: 1px solid var(--tokyo-workbench-line) !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: var(--tokyo-workbench-shadow-soft);
}

.tokyo-workbench .business-group hr {
    margin: 4px 0 0;
    border-color: rgba(21, 24, 29, 0.08);
}

.tokyo-workbench .bootstrap-table,
.tokyo-workbench .layui-table,
.tokyo-workbench table.table {
    border-color: rgba(21, 24, 29, 0.08) !important;
}

.tokyo-workbench table.table,
.tokyo-workbench .layui-table {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
}

.tokyo-workbench .layui-table thead tr,
.tokyo-workbench table.table thead tr,
.tokyo-workbench .bootstrap-table .table thead th {
    background: rgba(242, 242, 244, 0.92);
}

.tokyo-workbench .layui-table th,
.tokyo-workbench .layui-table td,
.tokyo-workbench table.table th,
.tokyo-workbench table.table td,
.tokyo-workbench .bootstrap-table .table th,
.tokyo-workbench .bootstrap-table .table td {
    border-color: rgba(21, 24, 29, 0.08) !important;
    color: var(--tokyo-workbench-ink);
}

.tokyo-workbench .fixed-table-container,
.tokyo-workbench .bootstrap-table .fixed-table-toolbar,
.tokyo-workbench .bootstrap-table .fixed-table-pagination {
    border-color: rgba(21, 24, 29, 0.08) !important;
}

.tokyo-workbench .bootstrap-table .fixed-table-toolbar {
    padding: 0 0 14px;
}

.tokyo-workbench .bootstrap-table .fixed-table-container {
    border-radius: 22px;
    border: 1px solid rgba(21, 24, 29, 0.08);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
}

.tokyo-workbench .bootstrap-table .fixed-table-pagination {
    padding: 16px 0 0;
}

.tokyo-workbench .bootstrap-table .search-input .layui-input,
.tokyo-workbench .bootstrap-table .fixed-table-toolbar .search-input input {
    min-height: 42px;
}

.tokyo-workbench .search-query {
    border-radius: 999px !important;
}

.tokyo-workbench .layui-badge,
.tokyo-workbench .layui-badge-rim,
.tokyo-workbench .a-badge,
.tokyo-workbench .acg-badge {
    border-radius: 999px !important;
}

.tokyo-workbench .avatar-img {
    width: 108px !important;
    height: 108px !important;
    border-radius: 28px !important;
    border: 1px solid rgba(21, 24, 29, 0.08) !important;
    box-shadow: var(--tokyo-workbench-shadow-soft) !important;
}

.tokyo-workbench .wx_qrcode,
.tokyo-workbench .wx_qrcode_temp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 120px;
    border: 1px dashed rgba(21, 24, 29, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
}

.tokyo-workbench .editor-wrapper {
    border: 1px solid rgba(21, 24, 29, 0.08);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
}

.tokyo-workbench .editor-content {
    padding: 14px;
}

.tokyo-workbench .card-views,
.tokyo-workbench .more-table {
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.tokyo-workbench .card-view .secret {
    border-radius: 18px !important;
    background: rgba(249, 250, 251, 0.96) !important;
    color: #1f7a46 !important;
}

.tokyo-workbench .logout {
    cursor: pointer;
}

@media (max-width: 1220px) {
    .tokyo-workbench-header-inner {
        border-radius: 34px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tokyo-workbench-brand-group,
    .tokyo-workbench-account {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .tokyo-workbench .layui-container.fly-user-main {
        grid-template-columns: 1fr;
    }

    .tokyo-workbench-sidebar {
        position: static;
    }

    .tokyo-dashboard-grid--stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tokyo-dashboard-grid--details,
    .tokyo-action-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .tokyo-workbench-header {
        padding: 12px 12px 0;
    }

    .tokyo-workbench-header-inner {
        padding: 14px;
    }

    .tokyo-workbench-stage {
        padding: 16px 12px 28px;
    }

    .tokyo-workbench .content-header,
    .tokyo-workbench-page-head {
        padding-left: 20px;
        padding-right: 20px;
    }

    .tokyo-workbench .content-body {
        padding: 20px;
    }

    .tokyo-workbench-page-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .tokyo-workbench-page-badges {
        justify-content: flex-start;
    }

    .tokyo-dashboard-grid--stats,
    .tokyo-workbench-sidebar-stats {
        grid-template-columns: 1fr;
    }

    .tokyo-workbench .layui-tab-title {
        padding-left: 20px;
        padding-right: 20px;
    }

    .tokyo-detail-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .tokyo-form-stack > div {
        padding: 16px;
    }
}

/* 1.2.93 final table overrides (kept last so legacy workspace rules cannot
   change the column contract used by the merchant console). */
.tokyo-workbench .franchise-strategy-table--category .franchise-table-head,
.tokyo-workbench .franchise-strategy-table--category .franchise-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(82px, .8fr) minmax(118px, 1fr) 52px;
}
.tokyo-workbench .franchise-strategy-table--commodity .franchise-table-head,
.tokyo-workbench .franchise-strategy-table--commodity .franchise-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(94px, .8fr) minmax(74px, .65fr) minmax(126px, 1fr) 52px;
}
.tokyo-workbench .franchise-strategy-table .franchise-row,
.tokyo-workbench .franchise-member-table .franchise-row--member {
    min-width: 0;
    min-height: 58px;
    padding: 9px 11px;
    box-sizing: border-box;
}
.tokyo-workbench .franchise-strategy-table .franchise-row__amount { display: grid; grid-template-columns: auto minmax(64px, 1fr); align-items: center; gap: 5px; }
.tokyo-workbench .franchise-strategy-table .franchise-row__amount .franchise-inline { width: 100%; min-height: 34px; padding: 6px 8px; border-radius: 9px; }
.tokyo-workbench .franchise-strategy-table .franchise-row__amount small { grid-column: 1 / -1; }
.tokyo-workbench .franchise-strategy-table .franchise-row__toggle { min-width: 0; justify-content: flex-start; font-size: 10px; }
.tokyo-workbench .franchise-strategy-table .layui-btn { width: 100%; min-height: 34px; margin: 0; padding-inline: 7px; border-radius: 9px; font-size: 10px; }
.tokyo-workbench .franchise-member-table .franchise-table-head,
.tokyo-workbench .franchise-member-table .franchise-row--member {
    grid-template-columns: minmax(0, 1.5fr) minmax(80px, .65fr) minmax(82px, .65fr) minmax(142px, auto);
}
.tokyo-workbench .franchise-member-table .franchise-row--member { min-height: 64px; }
.tokyo-workbench .franchise-member-table .franchise-member-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tokyo-workbench .franchise-member-table .franchise-member-actions .layui-btn { grid-column: auto; grid-row: auto; min-height: 34px; margin: 0; border-radius: 9px; font-size: 10px; }
.tokyo-workbench .franchise-table-empty { min-width: 0; grid-column: 1 / -1; }

@media (max-width: 760px) {
    .tokyo-workbench .franchise-catalog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .tokyo-workbench .franchise-strategy-table { overflow: visible; border: 0; background: transparent; }
    .tokyo-workbench .franchise-strategy-table .franchise-table-head,
    .tokyo-workbench .franchise-member-table .franchise-table-head { display: none; }
    .tokyo-workbench .franchise-strategy-table .franchise-row,
    .tokyo-workbench .franchise-member-table .franchise-row--member {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 0;
        margin-bottom: 8px;
        padding: 13px;
        border: 1px solid rgba(105, 78, 48, 0.12);
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.7);
    }
    .tokyo-workbench .franchise-strategy-table .franchise-category-identity,
    .tokyo-workbench .franchise-strategy-table .franchise-product-identity,
    .tokyo-workbench .franchise-member-table .franchise-member-identity { grid-column: 1 / -1; }
    .tokyo-workbench .franchise-strategy-table .franchise-row > [data-label]::before,
    .tokyo-workbench .franchise-member-table .franchise-row--member > [data-label]::before {
        display: block;
        margin-bottom: 4px;
        color: var(--tokyo-workbench-muted);
        content: attr(data-label);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: .04em;
    }
    .tokyo-workbench .franchise-strategy-table .franchise-row__toggle { justify-self: end; }
    .tokyo-workbench .franchise-strategy-table .franchise-row__amount,
    .tokyo-workbench .franchise-strategy-table .franchise-row > .layui-btn,
    .tokyo-workbench .franchise-member-table .franchise-member-actions { grid-column: 1 / -1; }
    .tokyo-workbench .franchise-strategy-table .franchise-row > .layui-btn { min-height: 40px; }
    .tokyo-workbench .franchise-member-table .franchise-row__balance { grid-column: 1; }
    .tokyo-workbench .franchise-member-table .franchise-member-status { justify-self: end; }
    .tokyo-workbench .franchise-member-table .franchise-member-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 3px; }
    .tokyo-workbench .franchise-member-table .franchise-member-actions .layui-btn { min-height: 40px; }
}

/* Each wallet uses an entire row so a full-length address has room to edit. */
.tokyo-workbench .franchise-chain-address-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 14px 0 16px;
}
.tokyo-workbench .franchise-chain-address-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: start;
    align-content: start;
    gap: 12px 20px;
    min-width: 0;
    margin: 0;
    padding: 15px;
    border: 1px solid rgba(105, 78, 48, .15);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(249, 246, 239, .72));
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tokyo-workbench .franchise-wallet-card .franchise-chain-address-heading {
    display: grid;
    align-content: start;
    gap: 7px;
    margin: 7px 0 0;
}
.tokyo-workbench .franchise-chain-address-field { min-width: 0; }
.tokyo-workbench .franchise-chain-address-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 8px;
}
.tokyo-workbench .franchise-chain-address-card:focus-within,
.tokyo-workbench .franchise-chain-address-card:hover {
    border-color: rgba(217, 111, 61, .42);
    box-shadow: 0 12px 24px rgba(80, 62, 40, .08);
    transform: translateY(-1px);
}
.tokyo-workbench .franchise-chain-address-label {
    color: var(--tokyo-workbench-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.tokyo-workbench .franchise-chain-address-card strong {
    color: var(--tokyo-workbench-ink);
    font-size: 14px;
}
.tokyo-workbench .franchise-chain-address-card small {
    min-height: 0;
    color: var(--tokyo-workbench-muted);
    font-size: 11px;
    line-height: 1.5;
}
.tokyo-workbench .franchise-wallet-card .franchise-chain-address-card input {
    min-width: 0;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}
.tokyo-workbench .franchise-chain-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 9px;
    min-height: 18px;
}
.tokyo-workbench .franchise-chain-links a {
    color: var(--tokyo-workbench-teal);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}
.tokyo-workbench .franchise-chain-links a:hover,
.tokyo-workbench .franchise-chain-links a:focus-visible {
    color: var(--tokyo-workbench-accent);
    text-decoration: underline;
}
.tokyo-workbench .franchise-payment-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.tokyo-workbench .franchise-payment-actions small {
    color: var(--tokyo-workbench-muted);
    line-height: 1.5;
}
@media (max-width: 680px) {
    .tokyo-workbench .franchise-chain-address-card { grid-template-columns: minmax(0, 1fr); padding: 13px; }
    .tokyo-workbench .franchise-wallet-card .franchise-chain-address-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 12px; margin: 0; }
    .tokyo-workbench .franchise-chain-address-footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .tokyo-workbench .franchise-payment-actions { align-items: stretch; flex-direction: column; }
    .tokyo-workbench .franchise-payment-actions .layui-btn { width: 100%; }
}
@media (max-width: 360px) {
    .tokyo-workbench .franchise-member-table .franchise-member-actions { grid-template-columns: 1fr; }
}

/* Managed store studio --------------------------------------------------- */
.tokyo-workbench .tokyo-workbench-menu-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    margin-left: auto;
    padding: 0 7px;
    border: 1px solid rgba(217, 111, 61, 0.18);
    border-radius: 999px;
    background: rgba(217, 111, 61, 0.08);
    color: var(--tokyo-workbench-accent);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.tokyo-workbench .tokyo-action-card--merchant {
    border-color: rgba(217, 111, 61, 0.26);
    background:
        radial-gradient(circle at 92% 8%, rgba(36, 127, 114, 0.16), transparent 36%),
        linear-gradient(145deg, rgba(255, 246, 235, 0.98), rgba(244, 252, 248, 0.94));
}

.tokyo-workbench .tokyo-action-card__eyebrow,
.tokyo-workbench .franchise-purchase-label,
.tokyo-workbench .franchise-card-index {
    color: var(--tokyo-workbench-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tokyo-workbench .tokyo-action-card__arrow {
    position: absolute;
    top: 18px;
    right: 20px;
    color: var(--tokyo-workbench-teal);
    font-size: 22px;
    line-height: 1;
}

.tokyo-workbench .franchise-purchase-head {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 16%, rgba(217, 111, 61, 0.16), transparent 30%),
        radial-gradient(circle at 98% 90%, rgba(36, 127, 114, 0.14), transparent 35%);
}

.tokyo-workbench .franchise-purchase-head-mark {
    display: grid;
    place-items: center;
    width: 104px;
    min-width: 104px;
    height: 104px;
    border: 1px solid rgba(217, 111, 61, 0.22);
    border-radius: 28px;
    background: rgba(255, 250, 242, 0.75);
    color: var(--tokyo-workbench-accent);
    transform: rotate(6deg);
}

.tokyo-workbench .franchise-purchase-head-mark span {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 0.9;
}

.tokyo-workbench .franchise-purchase-head-mark b {
    font-size: 9px;
    letter-spacing: 0.15em;
    line-height: 1.35;
    text-align: center;
}

.tokyo-workbench .franchise-purchase {
    display: grid;
    gap: 24px;
}

.tokyo-workbench .franchise-purchase-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 24px;
    padding: 26px;
    border: 1px solid rgba(217, 111, 61, 0.16);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 250, 242, 0.95), rgba(244, 252, 248, 0.92)),
        var(--tokyo-workbench-surface);
    box-shadow: var(--tokyo-workbench-shadow-soft);
}

.tokyo-workbench .franchise-purchase-hero h2,
.tokyo-workbench .franchise-section-heading h2 {
    margin: 8px 0 0;
    color: var(--tokyo-workbench-ink);
    font-size: clamp(22px, 3vw, 30px);
    letter-spacing: -0.06em;
}

.tokyo-workbench .franchise-purchase-hero p {
    max-width: 560px;
    margin: 12px 0 0;
    color: var(--tokyo-workbench-muted);
    font-size: 14px;
    line-height: 1.75;
}

.tokyo-workbench .franchise-purchase-steps {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tokyo-workbench .franchise-purchase-steps li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    padding: 11px 14px;
    border: 1px solid rgba(21, 24, 29, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
}

.tokyo-workbench .franchise-purchase-steps li span {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--tokyo-workbench-accent-soft);
    color: var(--tokyo-workbench-accent);
    font-size: 11px;
    font-weight: 800;
}

.tokyo-workbench .franchise-purchase-steps strong {
    color: var(--tokyo-workbench-ink);
    font-size: 14px;
}

.tokyo-workbench .franchise-purchase-steps small {
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
}

.tokyo-workbench .franchise-price-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(185, 130, 47, 0.22);
    border-radius: 14px;
    background: var(--tokyo-workbench-gold-soft);
    color: var(--tokyo-workbench-muted);
    font-size: 13px;
    line-height: 1.65;
}

.tokyo-workbench .franchise-price-note strong {
    flex: 0 0 auto;
    color: #916221;
}

.tokyo-workbench .franchise-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.tokyo-workbench .franchise-section-heading h2 {
    font-size: 22px;
}

.tokyo-workbench .franchise-section-hint {
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
}

.tokyo-workbench .tokyo-plan-grid {
    align-items: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tokyo-workbench .franchise-plan {
    position: relative;
    display: grid;
    align-content: start;
    gap: 9px;
    min-width: 0;
    min-height: 236px;
    padding: 20px;
    border: 1px solid var(--tokyo-workbench-line) !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: var(--tokyo-workbench-shadow-soft);
    color: var(--tokyo-workbench-muted);
    cursor: pointer;
    text-align: left;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.tokyo-workbench .franchise-plan:hover,
.tokyo-workbench .franchise-plan:focus-visible,
.tokyo-workbench .franchise-plan.is-selected {
    border-color: rgba(217, 111, 61, 0.5) !important;
    background: linear-gradient(145deg, rgba(255, 249, 241, 0.98), rgba(244, 252, 248, 0.96)) !important;
    box-shadow: 0 20px 38px rgba(88, 65, 38, 0.13);
    outline: none;
    transform: translateY(-3px);
}

.tokyo-workbench .franchise-plan:focus-visible {
    box-shadow: 0 0 0 4px rgba(217, 111, 61, 0.15), 0 20px 38px rgba(88, 65, 38, 0.13);
}

.tokyo-workbench .franchise-plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tokyo-workbench .franchise-plan-top strong {
    color: var(--tokyo-workbench-ink);
    font-size: 17px;
}

.tokyo-workbench .franchise-plan-check {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--tokyo-workbench-line-strong);
    border-radius: 50%;
    color: transparent;
    font-size: 13px;
    font-style: normal;
}

.tokyo-workbench .franchise-plan.is-selected .franchise-plan-check {
    border-color: var(--tokyo-workbench-accent);
    background: var(--tokyo-workbench-accent);
    color: white;
}

.tokyo-workbench .franchise-plan-price {
    color: var(--tokyo-workbench-accent);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
}

.tokyo-workbench .franchise-plan-caption {
    color: var(--tokyo-workbench-muted);
    font-size: 11px;
}

.tokyo-workbench .franchise-plan-detail {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(21, 24, 29, 0.07);
    font-size: 12px;
}

.tokyo-workbench .franchise-plan-detail b {
    color: var(--tokyo-workbench-muted);
    font-weight: 600;
}

.tokyo-workbench .franchise-plan-detail em {
    color: var(--tokyo-workbench-ink);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.tokyo-workbench .franchise-plan-bonus {
    margin-top: auto;
    color: var(--tokyo-workbench-teal);
    font-size: 11px;
    font-weight: 700;
}

.tokyo-workbench .franchise-purchase-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0 4px;
}

.tokyo-workbench .franchise-selection-summary {
    display: grid;
    gap: 3px;
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
}

.tokyo-workbench .franchise-selection-summary strong {
    color: var(--tokyo-workbench-ink);
    font-size: 15px;
}

.tokyo-workbench .franchise-purchase-submit span {
    margin-left: 6px;
    font-size: 17px;
}

.tokyo-workbench .franchise-console {
    display: grid;
    gap: 16px;
}

.tokyo-workbench .franchise-console-shell {
    display: grid;
    grid-template-columns: minmax(188px, 0.27fr) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.tokyo-workbench .franchise-console-sidebar {
    position: sticky;
    top: 16px;
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 17px 12px 12px;
    border: 1px solid rgba(105, 78, 48, 0.13);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(247, 250, 247, 0.95));
    box-shadow: var(--tokyo-workbench-shadow-soft);
}

.tokyo-workbench .franchise-console-sidebar-head {
    display: grid;
    gap: 5px;
    padding: 2px 8px 8px;
}

.tokyo-workbench .franchise-console-sidebar-head strong {
    color: var(--tokyo-workbench-ink);
    font-size: 16px;
    letter-spacing: -0.04em;
}

.tokyo-workbench .franchise-console-sidebar-head small,
.tokyo-workbench .franchise-console-sidebar-foot p {
    margin: 0;
    color: var(--tokyo-workbench-muted);
    font-size: 11px;
    line-height: 1.55;
}

.tokyo-workbench .franchise-console-nav {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.tokyo-workbench .franchise-console-nav a {
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    column-gap: 8px;
    align-items: center;
    min-width: 0;
    padding: 10px 9px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--tokyo-workbench-muted);
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.tokyo-workbench .franchise-console-nav a:hover,
.tokyo-workbench .franchise-console-nav a:focus-visible,
.tokyo-workbench .franchise-console-nav a.is-active {
    border-color: rgba(217, 111, 61, 0.18);
    background: rgba(255, 255, 255, 0.82);
    color: var(--tokyo-workbench-ink);
    outline: none;
    transform: translateX(2px);
}

.tokyo-workbench .franchise-console-nav a.is-active {
    box-shadow: 0 8px 20px rgba(80, 62, 40, 0.08);
}

.tokyo-workbench .franchise-console-nav a > span {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 9px;
    background: rgba(217, 111, 61, 0.09);
    color: var(--tokyo-workbench-accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.tokyo-workbench .franchise-console-nav a strong {
    min-width: 0;
    color: inherit;
    font-size: 12px;
    line-height: 1.35;
}

.tokyo-workbench .franchise-console-nav a small {
    min-width: 0;
    overflow: hidden;
    color: var(--tokyo-workbench-muted);
    font-size: 10px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tokyo-workbench .franchise-console-sidebar-foot {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 8px 3px;
    border-top: 1px solid rgba(105, 78, 48, 0.1);
}

.tokyo-workbench .franchise-console-sidebar-foot-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--tokyo-workbench-teal);
    box-shadow: 0 0 0 4px var(--tokyo-workbench-teal-soft);
}

.tokyo-workbench .franchise-console-panels {
    display: grid;
    min-width: 0;
    gap: 16px;
}

.tokyo-workbench .franchise-console-panel[hidden] {
    display: none !important;
}

.tokyo-workbench .franchise-console-panel {
    scroll-margin-top: 24px;
}

.tokyo-workbench .franchise-console-overview {
    min-height: 310px;
}

.tokyo-workbench .franchise-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tokyo-workbench .franchise-overview-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(105, 78, 48, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.64);
    color: var(--tokyo-workbench-ink);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tokyo-workbench .franchise-overview-card:hover,
.tokyo-workbench .franchise-overview-card:focus-visible {
    border-color: rgba(217, 111, 61, 0.35);
    box-shadow: 0 14px 28px rgba(80, 62, 40, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.tokyo-workbench .franchise-overview-card-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--tokyo-workbench-teal-soft);
    color: var(--tokyo-workbench-teal);
}

.tokyo-workbench .franchise-overview-card > span:nth-child(2) {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.tokyo-workbench .franchise-overview-card strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tokyo-workbench .franchise-overview-card small {
    overflow: hidden;
    color: var(--tokyo-workbench-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tokyo-workbench .franchise-overview-card > .layui-icon {
    color: var(--tokyo-workbench-accent);
    font-size: 15px;
}

.tokyo-workbench .franchise-overview-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(36, 127, 114, 0.14);
    border-radius: 13px;
    background: var(--tokyo-workbench-teal-soft);
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
    line-height: 1.6;
}

.tokyo-workbench .franchise-overview-note .layui-icon { color: var(--tokyo-workbench-teal); }

.tokyo-workbench .tokyo-console-card {
    padding: 24px;
    border: 1px solid rgba(105, 78, 48, 0.13);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 251, 244, 0.94), rgba(255, 255, 255, 0.84));
    box-shadow: var(--tokyo-workbench-shadow-soft);
}

.tokyo-workbench .franchise-console-card--primary {
    border-top: 3px solid var(--tokyo-workbench-accent);
}

.tokyo-workbench .tokyo-console-card__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.tokyo-workbench .tokyo-console-card__head h2 {
    margin: 5px 0 0;
    color: var(--tokyo-workbench-ink);
    font-size: 20px;
    letter-spacing: -0.04em;
}

.tokyo-workbench .tokyo-console-card__head > span {
    max-width: 48%;
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
    line-height: 1.55;
    text-align: right;
}

.tokyo-workbench .tokyo-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tokyo-workbench .franchise-settings label,
.tokyo-workbench .franchise-domain label,
.tokyo-workbench .franchise-payment label,
.tokyo-workbench .franchise-merchant-actions label {
    display: grid;
    gap: 7px;
    margin: 0 0 14px;
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
    font-weight: 700;
}

.tokyo-workbench .franchise-settings input,
.tokyo-workbench .franchise-settings textarea,
.tokyo-workbench .franchise-domain input,
.tokyo-workbench .franchise-payment input,
.tokyo-workbench .franchise-payment textarea,
.tokyo-workbench .franchise-merchant-actions input,
.tokyo-workbench .franchise-inline {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    border: 1px solid rgba(105, 78, 48, 0.17);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--tokyo-workbench-ink);
    padding: 10px 12px;
    font: inherit;
}

.tokyo-workbench .franchise-settings textarea,
.tokyo-workbench .franchise-payment textarea { min-height: 118px; resize: vertical; }

.tokyo-workbench .franchise-mail-form input:focus,
.tokyo-workbench .franchise-mail-form select:focus {
    border-color: rgba(217, 111, 61, 0.5);
    outline: none;
    box-shadow: 0 0 0 4px rgba(217, 111, 61, 0.12);
}

.tokyo-workbench .franchise-mail-form .franchise-form-actions > span {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.tokyo-workbench .franchise-settings input:focus,
.tokyo-workbench .franchise-settings textarea:focus,
.tokyo-workbench .franchise-domain input:focus,
.tokyo-workbench .franchise-payment input:focus,
.tokyo-workbench .franchise-payment textarea:focus,
.tokyo-workbench .franchise-merchant-actions input:focus,
.tokyo-workbench .franchise-inline:focus {
    border-color: rgba(217, 111, 61, 0.5);
    outline: none;
    box-shadow: 0 0 0 4px rgba(217, 111, 61, 0.12);
}

.tokyo-workbench .franchise-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
}

.tokyo-workbench .franchise-form-actions small {
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
}

.tokyo-workbench .franchise-console-pair,
.tokyo-workbench .franchise-catalog-grid,
.tokyo-workbench .franchise-split-lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tokyo-workbench .franchise-console-pair > .tokyo-console-card {
    min-width: 0;
}

.tokyo-workbench .franchise-console-pair.franchise-channel-panel {
    grid-template-columns: minmax(0, 1fr);
}

/* Target the actual card, not its nested form: the form is not a grid child. */
.tokyo-workbench .franchise-console-pair > .franchise-wallet-card {
    grid-column: 1 / -1;
}

.tokyo-workbench .franchise-domain-current {
    min-height: 42px;
    margin: 0 0 14px;
    padding: 11px 13px;
    border: 1px solid rgba(36, 127, 114, 0.16);
    border-radius: 12px;
    background: var(--tokyo-workbench-teal-soft);
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
    line-height: 1.6;
}

.tokyo-workbench .franchise-domain-current strong { color: var(--tokyo-workbench-teal); overflow-wrap: anywhere; }
.tokyo-workbench .franchise-domain-current span { color: var(--tokyo-workbench-warning); }
.tokyo-workbench .franchise-domain-aliases { margin: 0 0 18px; min-width: 0; font-size: 13px; line-height: 1.7; }
.tokyo-workbench .franchise-domain-aliases p { color: var(--tokyo-workbench-muted); margin: 0 0 8px; }
.tokyo-workbench .franchise-domain-aliases ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-height: 220px; overflow-y: auto; }
.tokyo-workbench .franchise-domain-aliases a { display: block; padding: 8px 12px; border: 1px solid rgba(29,105,91,.16); border-radius: 10px; color: var(--tokyo-workbench-teal); overflow-wrap: anywhere; }
.tokyo-workbench .franchise-domain-aliases a:hover { background: rgba(29,105,91,.05); }
.tokyo-workbench .franchise-domain-aliases a:focus-visible { outline: 2px solid var(--tokyo-workbench-teal); outline-offset: 2px; }

.tokyo-workbench .franchise-domain-fee {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 10px;
    margin: -4px 0 14px;
    padding: 10px 12px;
    border: 1px solid rgba(217, 111, 61, 0.18);
    border-radius: 12px;
    background: rgba(255, 246, 237, 0.76);
    color: var(--tokyo-workbench-muted);
    font-size: 11px;
    line-height: 1.45;
}

.tokyo-workbench .franchise-domain-fee > span { font-weight: 700; }
.tokyo-workbench .franchise-domain-fee > strong {
    color: var(--tokyo-workbench-orange, #d96f3d);
    font-size: 12px;
}
.tokyo-workbench .franchise-domain-fee > small {
    flex: 1 0 100%;
    color: var(--tokyo-workbench-muted);
}

.tokyo-workbench .franchise-payment-chip {
    display: inline-flex;
    align-items: center;
    margin: 9px 8px 0 0;
    padding: 7px 10px;
    border: 1px solid rgba(36, 127, 114, 0.18);
    border-radius: 999px;
    background: var(--tokyo-workbench-teal-soft);
    color: var(--tokyo-workbench-teal);
    font-size: 11px;
    font-weight: 700;
}

.tokyo-workbench .franchise-catalog-grid h3,
.tokyo-workbench .franchise-split-lists h3 {
    margin: 0 0 10px;
    color: var(--tokyo-workbench-ink);
    font-size: 13px;
}

.tokyo-workbench .franchise-console-list {
    display: grid;
    gap: 0;
}

.tokyo-workbench .franchise-data-table {
    overflow-x: auto;
    border: 1px solid rgba(105, 78, 48, 0.11);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.42);
}

.tokyo-workbench .franchise-table-head {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(100px, 0.8fr) minmax(80px, 0.55fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 520px;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(105, 78, 48, 0.11);
    background: rgba(245, 239, 230, 0.46);
    color: var(--tokyo-workbench-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tokyo-workbench .franchise-data-table .franchise-row {
    min-width: 520px;
    padding: 9px 12px;
    border-bottom-color: rgba(105, 78, 48, 0.08);
}

.tokyo-workbench .franchise-data-table .franchise-row__name {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.tokyo-workbench .franchise-data-table .franchise-row__name small {
    overflow: hidden;
    color: var(--tokyo-workbench-muted);
    font-size: 10px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tokyo-workbench .franchise-row__status.is-supplemented {
    color: var(--tokyo-workbench-teal);
    font-weight: 800;
}

.tokyo-workbench .franchise-member-actions {
    display: inline-flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
}

.tokyo-workbench .franchise-member-actions .layui-btn {
    min-height: 30px;
    padding-inline: 8px;
    border-radius: 8px;
    font-size: 10px;
}

.tokyo-workbench .franchise-table-empty {
    min-width: 520px;
    padding: 20px 12px;
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
    text-align: center;
}

.tokyo-workbench .franchise-table-muted {
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
}

.tokyo-workbench .franchise-recharge-supplement {
    min-height: 30px;
    padding: 0 9px;
    border-radius: 9px;
    background: var(--tokyo-workbench-ink);
    color: white;
    font-size: 11px;
}

.tokyo-workbench .franchise-recharge-supplement:disabled {
    cursor: wait;
    opacity: .58;
}

.tokyo-workbench .franchise-table-toolbar {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 12px;
}

.tokyo-workbench .franchise-table-toolbar label {
    display: grid;
    gap: 5px;
    min-width: min(270px, 100%);
    color: var(--tokyo-workbench-muted);
    font-size: 11px;
    font-weight: 700;
}

.tokyo-workbench .franchise-table-toolbar label.franchise-page-size {
    min-width: 92px;
    margin-left: auto;
}

.tokyo-workbench .franchise-table-toolbar input,
.tokyo-workbench .franchise-table-toolbar select {
    min-height: 38px;
    box-sizing: border-box;
    border: 1px solid rgba(105, 78, 48, 0.17);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--tokyo-workbench-ink);
    padding: 8px 10px;
    font: inherit;
}

.tokyo-workbench .franchise-table-toolbar input:focus,
.tokyo-workbench .franchise-table-toolbar select:focus {
    border-color: rgba(217, 111, 61, 0.5);
    outline: none;
    box-shadow: 0 0 0 4px rgba(217, 111, 61, 0.12);
}

.tokyo-workbench .franchise-table-toolbar .layui-btn {
    min-height: 38px;
    margin: 0;
    border-radius: 10px;
    white-space: nowrap;
}

.tokyo-workbench .franchise-catalog-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.tokyo-workbench .franchise-catalog-heading h3 { margin-bottom: 0; }
.tokyo-workbench .franchise-catalog-heading > span {
    color: var(--tokyo-workbench-muted);
    font-size: 10px;
    white-space: nowrap;
}

.tokyo-workbench .franchise-catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(130px, .7fr) auto auto 80px;
    align-items: end;
    gap: 8px;
    margin-bottom: 12px;
}

.tokyo-workbench .franchise-catalog-toolbar label {
    display: grid;
    gap: 5px;
    min-width: 0;
    color: var(--tokyo-workbench-muted);
    font-size: 10px;
    font-weight: 700;
}

.tokyo-workbench .franchise-catalog-toolbar input,
.tokyo-workbench .franchise-catalog-toolbar select {
    width: 100%;
    min-height: 36px;
    box-sizing: border-box;
    border: 1px solid rgba(105, 78, 48, 0.17);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--tokyo-workbench-ink);
    padding: 7px 9px;
    font: inherit;
}

.tokyo-workbench .franchise-catalog-toolbar input:focus,
.tokyo-workbench .franchise-catalog-toolbar select:focus {
    border-color: rgba(217, 111, 61, 0.5);
    outline: none;
    box-shadow: 0 0 0 4px rgba(217, 111, 61, 0.12);
}

.tokyo-workbench .franchise-catalog-toolbar .layui-btn {
    min-height: 36px;
    margin: 0;
    padding-inline: 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.tokyo-workbench .franchise-ledger-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(105, 78, 48, 0.1);
}

.tokyo-workbench .franchise-ledger-tabs button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(105, 78, 48, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.56);
    color: var(--tokyo-workbench-muted);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
}

.tokyo-workbench .franchise-ledger-tabs button:hover,
.tokyo-workbench .franchise-ledger-tabs button:focus-visible,
.tokyo-workbench .franchise-ledger-tabs button.is-active {
    border-color: rgba(217, 111, 61, 0.34);
    background: rgba(217, 111, 61, 0.1);
    color: var(--tokyo-workbench-ink);
    outline: none;
}

.tokyo-workbench .franchise-ledger-view[hidden] { display: none !important; }

.tokyo-workbench .franchise-data-table .franchise-table-head > *,
.tokyo-workbench .franchise-data-table .franchise-row--member > * {
    min-width: 0;
    padding-right: 10px;
    border-right: 1px solid rgba(105, 78, 48, 0.09);
}

.tokyo-workbench .franchise-data-table .franchise-table-head > *:last-child,
.tokyo-workbench .franchise-data-table .franchise-row--member > *:last-child {
    padding-right: 0;
    border-right: 0;
}

/* Keep the audit stream readable as it grows. The detail column is clipped
   to one line on desktop and remains available through its title tooltip. */
.tokyo-workbench .franchise-ledger-table--log .franchise-table-head,
.tokyo-workbench .franchise-ledger-table--log .franchise-row {
    grid-template-columns: minmax(150px, .9fr) minmax(180px, 1.4fr) minmax(150px, auto);
}
.tokyo-workbench .franchise-ledger-table--log .franchise-row > * {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 601px) {
    .tokyo-workbench .franchise-data-table .franchise-row > * {
        min-width: 0;
        padding-right: 10px;
        border-right: 1px solid rgba(105, 78, 48, 0.09);
    }
    .tokyo-workbench .franchise-data-table .franchise-row > *:last-child {
        padding-right: 0;
        border-right: 0;
    }
}

.tokyo-workbench .franchise-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 32px;
    margin-top: 10px;
    color: var(--tokyo-workbench-muted);
    font-size: 11px;
}

.tokyo-workbench .franchise-pagination button {
    min-width: 32px;
    min-height: 30px;
    padding: 0 8px;
    border: 1px solid rgba(105, 78, 48, 0.15);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--tokyo-workbench-ink);
    cursor: pointer;
    font: inherit;
}

.tokyo-workbench .franchise-pagination button:hover,
.tokyo-workbench .franchise-pagination button:focus-visible {
    border-color: rgba(217, 111, 61, 0.38);
    outline: none;
}

.tokyo-workbench .franchise-pagination button:disabled {
    cursor: default;
    opacity: .42;
}

.tokyo-workbench .franchise-pagination strong {
    color: var(--tokyo-workbench-ink);
    font-variant-numeric: tabular-nums;
}

.tokyo-workbench .franchise-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(82px, 100px) auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(105, 78, 48, 0.1);
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
}

.tokyo-workbench .franchise-row:last-child { border-bottom: 0; }
.tokyo-workbench .franchise-row strong { color: var(--tokyo-workbench-ink); overflow-wrap: anywhere; }
.tokyo-workbench .franchise-row label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tokyo-workbench .franchise-positive { color: var(--tokyo-workbench-success); font-weight: 800; }
.tokyo-workbench .franchise-negative { color: var(--tokyo-workbench-rose); font-weight: 800; }

.tokyo-workbench .franchise-merchant-actions {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
}

.tokyo-workbench .franchise-deposit-pill.is-warning {
    border-color: rgba(201, 86, 111, 0.32);
    background: var(--tokyo-workbench-rose-soft);
}

.tokyo-workbench .franchise-deposit-pill.is-warning strong {
    color: var(--tokyo-workbench-rose);
}

.tokyo-workbench .franchise-operations-grid {
    display: grid;
    grid-template-columns: minmax(180px, .85fr) minmax(0, 1.65fr);
    align-items: start;
    gap: 14px;
}

.tokyo-workbench .franchise-operations-side {
    display: grid;
    align-content: start;
    min-width: 0;
    gap: 14px;
}

.tokyo-workbench .franchise-operation-block {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(105, 78, 48, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.58);
}

.tokyo-workbench .franchise-operation-block > div:first-child {
    display: grid;
    gap: 4px;
}

.tokyo-workbench .franchise-operation-block strong {
    color: var(--tokyo-workbench-ink);
    font-size: 14px;
}

.tokyo-workbench .franchise-operation-block small {
    color: var(--tokyo-workbench-muted);
    font-size: 11px;
    line-height: 1.5;
}

.tokyo-workbench .franchise-balance-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    margin: 1px 0 2px;
}

.tokyo-workbench .franchise-balance-card {
    display: grid;
    align-content: start;
    gap: 3px;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid rgba(105, 78, 48, 0.13);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.tokyo-workbench .franchise-balance-card > span {
    color: var(--tokyo-workbench-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.35;
}

.tokyo-workbench .franchise-balance-card > strong {
    color: var(--tokyo-workbench-ink);
    font-size: 18px;
    letter-spacing: -.02em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.tokyo-workbench .franchise-balance-card > small {
    margin-top: 1px;
    font-size: 10px;
}

.tokyo-workbench .franchise-balance-card--deposit {
    border-color: rgba(217, 111, 61, 0.24);
    background: rgba(255, 246, 237, 0.82);
}

.tokyo-workbench .franchise-balance-card--deposit > strong {
    color: var(--tokyo-workbench-orange, #d96f3d);
}

.tokyo-workbench .franchise-balance-card--wallet {
    border-color: rgba(36, 127, 114, 0.2);
    background: rgba(238, 249, 246, 0.78);
}

.tokyo-workbench .franchise-balance-card--wallet > strong {
    color: var(--tokyo-workbench-teal);
}

.tokyo-workbench .franchise-operation-block label {
    margin: 0;
}

.tokyo-workbench .franchise-operation-block input {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    border: 1px solid rgba(105, 78, 48, 0.17);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--tokyo-workbench-ink);
    padding: 10px 12px;
    font: inherit;
}

.tokyo-workbench .franchise-operation-block input:focus {
    border-color: rgba(217, 111, 61, 0.5);
    outline: none;
    box-shadow: 0 0 0 4px rgba(217, 111, 61, 0.12);
}

.tokyo-workbench .franchise-merchant-actions .layui-btn,
.tokyo-workbench .franchise-domain .layui-btn,
.tokyo-workbench .franchise-payment .layui-btn,
.tokyo-workbench .franchise-settings .layui-btn {
    min-height: 42px;
    border-radius: 12px;
    white-space: nowrap;
}

.tokyo-workbench .franchise-feedback,
.tokyo-workbench #franchise-feedback {
    padding: 12px 14px;
    border: 1px solid rgba(36, 127, 114, 0.2);
    border-radius: 12px;
    background: var(--tokyo-workbench-teal-soft);
    color: var(--tokyo-workbench-teal);
}

@media (max-width: 900px) {
    .tokyo-workbench .tokyo-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tokyo-workbench .franchise-console-shell { grid-template-columns: 1fr; }
    .tokyo-workbench .franchise-console-sidebar { position: static; }
    .tokyo-workbench .franchise-console-nav { grid-template-columns: minmax(0, 1fr); }
    .tokyo-workbench .franchise-purchase-hero,
    .tokyo-workbench .franchise-console-pair,
    .tokyo-workbench .franchise-catalog-grid,
    .tokyo-workbench .franchise-split-lists { grid-template-columns: 1fr; }
    .tokyo-workbench .franchise-merchant-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tokyo-workbench .franchise-operations-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .tokyo-workbench .franchise-purchase-head-mark { display: none; }
    .tokyo-workbench .tokyo-plan-grid { grid-template-columns: 1fr; }
    .tokyo-workbench .franchise-purchase-hero,
    .tokyo-workbench .tokyo-console-card { padding: 18px; border-radius: 18px; }
    .tokyo-workbench .franchise-console-sidebar { padding: 14px 10px 10px; border-radius: 18px; }
    .tokyo-workbench .franchise-console-nav { display: grid; gap: 5px; }
    .tokyo-workbench .franchise-overview-grid { grid-template-columns: 1fr; }
    .tokyo-workbench .franchise-table-toolbar { align-items: stretch; }
    .tokyo-workbench .franchise-table-toolbar label,
    .tokyo-workbench .franchise-table-toolbar label.franchise-page-size { min-width: 100%; margin-left: 0; }
    .tokyo-workbench .franchise-table-toolbar .layui-btn { flex: 1 1 0; }
    .tokyo-workbench .franchise-catalog-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
    .tokyo-workbench .franchise-catalog-toolbar { grid-template-columns: 1fr 1fr; }
    .tokyo-workbench .franchise-catalog-toolbar .layui-btn { width: 100%; }
    .tokyo-workbench .franchise-pagination { justify-content: center; }
    .tokyo-workbench #franchise-member-list .franchise-table-head,
    .tokyo-workbench #franchise-member-list .franchise-data-table .franchise-row--member {
        min-width: 0;
    }
    .tokyo-workbench #franchise-member-list .franchise-table-head {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
    }
    .tokyo-workbench .franchise-purchase-steps { margin-top: 4px; }
    .tokyo-workbench .franchise-section-heading,
    .tokyo-workbench .tokyo-console-card__head,
    .tokyo-workbench .franchise-form-actions,
    .tokyo-workbench .franchise-purchase-footer { align-items: stretch; flex-direction: column; }
    .tokyo-workbench .franchise-mail-form .franchise-form-actions > span { display: grid; width: 100%; }
    .tokyo-workbench .tokyo-console-card__head > span { max-width: none; text-align: left; }
    .tokyo-workbench .tokyo-form-grid,
    .tokyo-workbench .franchise-merchant-actions { grid-template-columns: 1fr; }
    .tokyo-workbench .franchise-purchase-submit,
    .tokyo-workbench .franchise-form-actions .layui-btn,
    .tokyo-workbench .franchise-merchant-actions .layui-btn { width: 100%; }
    .tokyo-workbench .franchise-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; padding: 12px 0; }
    .tokyo-workbench .franchise-row .franchise-inline { grid-column: 1; width: 100%; }
    .tokyo-workbench .franchise-row button { grid-column: 2; grid-row: 2; min-height: 40px; }
}

@media (max-width: 420px) {
    .tokyo-workbench .franchise-purchase-hero,
    .tokyo-workbench .tokyo-console-card { padding: 15px; }
    .tokyo-workbench .franchise-plan { min-height: 0; padding: 16px; }
    .tokyo-workbench .franchise-plan-price { font-size: 28px; }
    .tokyo-workbench .franchise-price-note { display: grid; gap: 4px; }
    .tokyo-workbench .franchise-balance-compare { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .tokyo-workbench .franchise-chain-address-card,
    .tokyo-workbench .franchise-plan,
    .tokyo-workbench .franchise-console-nav a,
    .tokyo-workbench .tokyo-action-card { transition: none; }
    .tokyo-workbench .franchise-chain-address-card:hover,
    .tokyo-workbench .franchise-chain-address-card:focus-within { transform: none; }
}

/* Merchant strategy and member tables
   Keep the desktop columns stable and turn each row into a labelled card on
   narrow screens. This avoids the previous header/row mismatch while keeping
   the server-side pages light enough for a large catalogue. */
.tokyo-workbench .franchise-catalog-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 16px;
    padding: 11px 14px;
    border: 1px solid rgba(36, 127, 114, 0.15);
    border-radius: 13px;
    background: rgba(235, 247, 242, 0.7);
    color: var(--tokyo-workbench-muted);
    font-size: 11px;
}
.tokyo-workbench .franchise-catalog-intro > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.tokyo-workbench .franchise-catalog-intro strong { color: var(--tokyo-workbench-ink); font-size: 12px; }
.tokyo-workbench .franchise-catalog-intro span { color: var(--tokyo-workbench-teal); font-weight: 800; letter-spacing: .01em; }
.tokyo-workbench .franchise-catalog-intro small { line-height: 1.5; text-align: right; }
.tokyo-workbench .franchise-strategy-pane {
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(105, 78, 48, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.36);
}
.tokyo-workbench .franchise-strategy-pane__head,
.tokyo-workbench .franchise-catalog-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 11px;
}
.tokyo-workbench .franchise-strategy-pane__head h3,
.tokyo-workbench .franchise-catalog-heading h3 { margin: 0; }
.tokyo-workbench .franchise-strategy-pane__head small,
.tokyo-workbench .franchise-catalog-heading small {
    display: block;
    margin-top: 3px;
    color: var(--tokyo-workbench-muted);
    font-size: 10px;
    line-height: 1.45;
}
.tokyo-workbench .franchise-table-summary {
    flex: 0 0 auto;
    color: var(--tokyo-workbench-muted);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
    white-space: nowrap;
}
.tokyo-workbench .franchise-table-summary--standalone { margin: -3px 0 9px; }
.tokyo-workbench .franchise-strategy-table {
    overflow: hidden;
    border: 1px solid rgba(105, 78, 48, 0.12);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.56);
}
.tokyo-workbench .franchise-strategy-table .franchise-table-head,
.tokyo-workbench .franchise-strategy-table .franchise-row {
    min-width: 0;
    box-sizing: border-box;
}
.tokyo-workbench .franchise-strategy-table .franchise-table-head {
    padding: 9px 11px;
    gap: 9px;
    border-bottom-color: rgba(105, 78, 48, 0.13);
    background: rgba(245, 239, 230, 0.58);
    font-size: 9px;
}
.tokyo-workbench .franchise-strategy-table .franchise-row {
    min-height: 58px;
    padding: 9px 11px;
    gap: 9px;
    border-bottom: 1px solid rgba(105, 78, 48, 0.09);
    background: rgba(255, 255, 255, 0.24);
}
.tokyo-workbench .franchise-strategy-table .franchise-row:last-child { border-bottom: 0; }
.tokyo-workbench .franchise-strategy-table--category .franchise-table-head,
.tokyo-workbench .franchise-strategy-table--category .franchise-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(82px, .8fr) minmax(118px, 1fr) 52px;
}
.tokyo-workbench .franchise-strategy-table--commodity .franchise-table-head,
.tokyo-workbench .franchise-strategy-table--commodity .franchise-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(94px, .8fr) minmax(74px, .65fr) minmax(126px, 1fr) 52px;
}
.tokyo-workbench .franchise-strategy-table .franchise-row__name { line-height: 1.35; }
.tokyo-workbench .franchise-category-identity,
.tokyo-workbench .franchise-product-identity {
    display: grid;
    min-width: 0;
    gap: 3px;
}
.tokyo-workbench .franchise-category-identity small,
.tokyo-workbench .franchise-product-identity small,
.tokyo-workbench .franchise-row__amount small {
    overflow: hidden;
    color: var(--tokyo-workbench-muted);
    font-size: 10px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tokyo-workbench .franchise-product-prices {
    display: grid;
    min-width: 0;
    gap: 3px;
    text-align: right;
    white-space: nowrap;
}
.tokyo-workbench .franchise-product-prices small { color: var(--tokyo-workbench-muted); font-size: 10px; }
.tokyo-workbench .franchise-product-prices strong { color: var(--tokyo-workbench-teal); font-size: 11px; }
.tokyo-workbench .franchise-strategy-table .franchise-row__toggle {
    justify-content: flex-start;
    min-width: 0;
    color: var(--tokyo-workbench-muted);
    font-size: 10px;
}
.tokyo-workbench .franchise-strategy-table .franchise-row__toggle input { flex: 0 0 auto; }
.tokyo-workbench .franchise-strategy-table .franchise-row__amount {
    display: grid;
    grid-template-columns: auto minmax(64px, 1fr);
    align-items: center;
    gap: 5px;
    min-width: 0;
    font-size: 10px;
}
.tokyo-workbench .franchise-strategy-table .franchise-row__amount .franchise-inline {
    width: 100%;
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 9px;
}
.tokyo-workbench .franchise-strategy-table .franchise-row__amount small { grid-column: 1 / -1; }
.tokyo-workbench .franchise-strategy-table .layui-btn {
    width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 0 7px;
    border-radius: 9px;
    font-size: 10px;
}
.tokyo-workbench .franchise-table-empty {
    min-width: 0;
    grid-column: 1 / -1;
    padding: 22px 12px;
}
.tokyo-workbench .franchise-member-table .franchise-table-head,
.tokyo-workbench .franchise-member-table .franchise-row--member {
    grid-template-columns: minmax(0, 1.5fr) minmax(80px, .65fr) minmax(82px, .65fr) minmax(142px, auto);
}
.tokyo-workbench .franchise-member-table .franchise-row--member { min-height: 64px; }
.tokyo-workbench .franchise-member-identity {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.tokyo-workbench .franchise-member-identity small {
    color: var(--tokyo-workbench-muted);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}
.tokyo-workbench .franchise-member-identity em {
    overflow: hidden;
    color: var(--tokyo-workbench-muted);
    font-size: 10px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tokyo-workbench .franchise-member-table .franchise-row__balance {
    color: var(--tokyo-workbench-ink);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    white-space: nowrap;
}
.tokyo-workbench .franchise-member-status {
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    white-space: nowrap;
}
.tokyo-workbench .franchise-member-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tokyo-workbench .franchise-member-status.is-active { color: var(--tokyo-workbench-success); }
.tokyo-workbench .franchise-member-status.is-disabled { color: var(--tokyo-workbench-muted); }
.tokyo-workbench .franchise-member-table .franchise-member-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 6px;
}
.tokyo-workbench .franchise-member-table .franchise-member-actions .layui-btn { min-height: 34px; margin: 0; border-radius: 9px; font-size: 10px; }

@media (max-width: 760px) {
    .tokyo-workbench .franchise-catalog-intro { align-items: flex-start; flex-direction: column; gap: 6px; }
    .tokyo-workbench .franchise-catalog-intro small { text-align: left; }
    .tokyo-workbench .franchise-catalog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .tokyo-workbench .franchise-strategy-pane { padding: 12px; }
    .tokyo-workbench .franchise-strategy-pane__head,
    .tokyo-workbench .franchise-catalog-heading { gap: 6px; }
    .tokyo-workbench .franchise-table-summary { font-size: 9px; }
    .tokyo-workbench .franchise-strategy-table { overflow: visible; border: 0; background: transparent; }
    .tokyo-workbench .franchise-strategy-table .franchise-table-head,
    .tokyo-workbench .franchise-member-table .franchise-table-head { display: none; }
    .tokyo-workbench .franchise-strategy-table .franchise-row,
    .tokyo-workbench .franchise-member-table .franchise-row--member {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 0;
        margin-bottom: 8px;
        padding: 13px;
        border: 1px solid rgba(105, 78, 48, 0.12);
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.7);
    }
    .tokyo-workbench .franchise-strategy-table .franchise-row:last-child,
    .tokyo-workbench .franchise-member-table .franchise-row--member:last-child { margin-bottom: 0; }
    .tokyo-workbench .franchise-strategy-table .franchise-row > [data-label]::before,
    .tokyo-workbench .franchise-member-table .franchise-row--member > [data-label]::before {
        display: block;
        margin-bottom: 4px;
        color: var(--tokyo-workbench-muted);
        content: attr(data-label);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: .04em;
    }
    .tokyo-workbench .franchise-strategy-table .franchise-category-identity,
    .tokyo-workbench .franchise-strategy-table .franchise-product-identity,
    .tokyo-workbench .franchise-member-table .franchise-member-identity { grid-column: 1 / -1; }
    .tokyo-workbench .franchise-strategy-table .franchise-row__toggle { justify-self: end; }
    .tokyo-workbench .franchise-strategy-table .franchise-row__amount { grid-column: 1 / -1; }
    .tokyo-workbench .franchise-strategy-table .franchise-row > .layui-btn { grid-column: 1 / -1; min-height: 40px; }
    .tokyo-workbench .franchise-strategy-table .franchise-product-prices { justify-self: start; text-align: left; }
    .tokyo-workbench .franchise-member-table .franchise-row__balance { grid-column: 1; }
    .tokyo-workbench .franchise-member-table .franchise-member-status { justify-self: end; }
    .tokyo-workbench .franchise-member-table .franchise-member-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 3px; }
    .tokyo-workbench .franchise-member-table .franchise-member-actions .layui-btn { min-height: 40px; }
}

@media (max-width: 360px) {
    .tokyo-workbench .franchise-strategy-pane { padding: 10px; }
    .tokyo-workbench .franchise-strategy-table .franchise-row,
    .tokyo-workbench .franchise-member-table .franchise-row--member { padding: 11px; }
    .tokyo-workbench .franchise-member-table .franchise-member-actions { grid-template-columns: 1fr; }
}

/* Payment profile form -------------------------------------------------- */
.tokyo-workbench .franchise-payment-lede {
    max-width: 620px;
    margin: -2px 0 18px;
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
    line-height: 1.7;
}

.tokyo-workbench .franchise-payment select,
.tokyo-workbench .franchise-payment-fields input,
.tokyo-workbench .franchise-payment-fields select,
.tokyo-workbench .franchise-payment-fields textarea,
.tokyo-workbench .franchise-payment-custom input,
.tokyo-workbench .franchise-payment-advanced textarea {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    border: 1px solid rgba(105, 78, 48, 0.17);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--tokyo-workbench-ink);
    padding: 10px 12px;
    font: inherit;
}

.tokyo-workbench .franchise-payment select:focus,
.tokyo-workbench .franchise-payment-fields input:focus,
.tokyo-workbench .franchise-payment-fields select:focus,
.tokyo-workbench .franchise-payment-fields textarea:focus,
.tokyo-workbench .franchise-payment-custom input:focus,
.tokyo-workbench .franchise-payment-advanced textarea:focus {
    border-color: rgba(217, 111, 61, 0.5);
    outline: none;
    box-shadow: 0 0 0 4px rgba(217, 111, 61, 0.12);
}

.tokyo-workbench .franchise-payment-fields {
    margin-top: 2px;
    padding: 15px;
    border: 1px solid rgba(36, 127, 114, 0.14);
    border-radius: 16px;
    background: rgba(244, 252, 248, 0.64);
}

.tokyo-workbench .franchise-payment-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tokyo-workbench .franchise-payment-field-wrap,
.tokyo-workbench .franchise-payment-custom label {
    display: grid;
    align-content: start;
    gap: 7px;
    margin: 0;
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
    font-weight: 700;
}

.tokyo-workbench .franchise-payment-field-wrap small,
.tokyo-workbench .franchise-payment-custom small,
.tokyo-workbench .franchise-payment-advanced p {
    color: var(--tokyo-workbench-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
}

.tokyo-workbench .franchise-payment-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    color: var(--tokyo-workbench-ink);
    font-size: 12px;
    font-weight: 600;
}

.tokyo-workbench .franchise-payment-check input {
    width: 17px;
    min-height: 17px;
    accent-color: var(--tokyo-workbench-teal);
}

.tokyo-workbench .franchise-payment-empty {
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
    line-height: 1.6;
}

.tokyo-workbench .franchise-payment-custom {
    display: grid;
    gap: 5px;
    margin-top: 12px;
    padding: 13px 15px;
    border: 1px dashed rgba(217, 111, 61, 0.3);
    border-radius: 14px;
    background: rgba(255, 249, 241, 0.55);
}

.tokyo-workbench .franchise-payment-custom[hidden],
.tokyo-workbench .franchise-payment-field-wrap[hidden] { display: none; }

.tokyo-workbench .franchise-payment-advanced {
    margin-top: 14px;
    border-top: 1px solid rgba(105, 78, 48, 0.1);
    padding-top: 12px;
}

.tokyo-workbench .franchise-payment-advanced summary {
    width: fit-content;
    color: var(--tokyo-workbench-muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.tokyo-workbench .franchise-payment-advanced p { margin: 10px 0 8px; }
.tokyo-workbench .franchise-payment-fields textarea { min-height: 88px; resize: vertical; }
.tokyo-workbench .franchise-payment-advanced textarea { min-height: 88px; resize: vertical; }

.tokyo-workbench .franchise-payment-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 15px;
}

.tokyo-workbench .franchise-payment-actions small {
    max-width: 360px;
    color: var(--tokyo-workbench-muted);
    font-size: 11px;
    line-height: 1.5;
}

.tokyo-workbench .franchise-payment-actions .layui-btn[disabled] {
    cursor: not-allowed;
    opacity: .46;
}

@media (max-width: 600px) {
    .tokyo-workbench .franchise-payment-field-grid { grid-template-columns: 1fr; }
    .tokyo-workbench .franchise-payment-actions { align-items: stretch; flex-direction: column; }
    .tokyo-workbench .franchise-payment-actions .layui-btn { width: 100%; }
}

/* Dynamic console lists use explicit row types so a ledger or audit item does
   not inherit the four-column product editor layout. The name column can
   shrink, while metadata wraps instead of pushing the action off screen. */
.tokyo-workbench .franchise-row {
    min-width: 0;
}

.tokyo-workbench .franchise-row__name,
.tokyo-workbench .franchise-row__meta,
.tokyo-workbench .franchise-row__time {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tokyo-workbench .franchise-row__name {
    color: var(--tokyo-workbench-ink);
}

.tokyo-workbench .franchise-row__meta {
    color: var(--tokyo-workbench-muted);
}

.tokyo-workbench .franchise-row__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
}

.tokyo-workbench .franchise-row__amount {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--tokyo-workbench-muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.tokyo-workbench .franchise-row__amount .franchise-inline {
    width: 92px;
    min-height: 36px;
    padding: 7px 9px;
    text-align: right;
}

.tokyo-workbench .franchise-row--category {
    grid-template-columns: minmax(0, 1fr) auto minmax(132px, 156px) auto;
}

.tokyo-workbench .franchise-row--commodity {
    grid-template-columns: minmax(0, 1fr) auto auto minmax(132px, 156px) auto;
}

/* The catalog editor is a two-column card even on desktop. Keep each editor
   row to two readable tracks inside that card instead of letting fixed price
   controls squeeze a short product name into a vertical strip. */
.tokyo-workbench .franchise-catalog-grid .franchise-row--category,
.tokyo-workbench .franchise-catalog-grid .franchise-row--commodity {
    grid-template-columns: minmax(0, 1fr) auto;
}

.tokyo-workbench .franchise-catalog-grid .franchise-row--category .franchise-row__amount {
    grid-column: 1;
    grid-row: 2;
}

.tokyo-workbench .franchise-catalog-grid .franchise-row--category > button {
    grid-column: 2;
    grid-row: 2;
}

.tokyo-workbench .franchise-catalog-grid .franchise-row--commodity .franchise-row__meta {
    justify-self: end;
    text-align: right;
}

.tokyo-workbench .franchise-catalog-grid .franchise-row--commodity .franchise-row__toggle {
    grid-column: 1 / -1;
    grid-row: 2;
}

.tokyo-workbench .franchise-catalog-grid .franchise-row--commodity .franchise-row__amount {
    grid-column: 1;
    grid-row: 3;
}

.tokyo-workbench .franchise-catalog-grid .franchise-row--commodity > button {
    grid-column: 2;
    grid-row: 3;
}

.tokyo-workbench .franchise-row--member {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto auto;
}

.tokyo-workbench .franchise-row--recharge {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.tokyo-workbench .franchise-row--bill,
.tokyo-workbench .franchise-row--log {
    grid-template-columns: minmax(0, 1fr) auto;
}

.tokyo-workbench .franchise-row__balance,
.tokyo-workbench .franchise-row__amount-text,
.tokyo-workbench .franchise-row__status,
.tokyo-workbench .franchise-row__time {
    white-space: nowrap;
}

.tokyo-workbench .franchise-row__status {
    display: inline-flex;
    justify-content: flex-end;
    font-size: 11px;
    font-weight: 700;
}

.tokyo-workbench .franchise-row__status.is-complete { color: var(--tokyo-workbench-success); }
.tokyo-workbench .franchise-row__status.is-pending { color: var(--tokyo-workbench-warning); }
.tokyo-workbench .franchise-row__time { color: var(--tokyo-workbench-muted); font-size: 11px; }

@media (max-width: 600px) {
    .tokyo-workbench .franchise-row--category {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .tokyo-workbench .franchise-row--category .franchise-row__amount {
        grid-column: 1;
        grid-row: 2;
    }

    .tokyo-workbench .franchise-row--category > button {
        grid-column: 2;
        grid-row: 2;
    }

    .tokyo-workbench .franchise-row--commodity {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .tokyo-workbench .franchise-row--commodity .franchise-row__meta {
        justify-self: end;
    }

    .tokyo-workbench .franchise-row--commodity .franchise-row__toggle {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .tokyo-workbench .franchise-row--commodity .franchise-row__amount {
        grid-column: 1;
        grid-row: 3;
    }

    .tokyo-workbench .franchise-row--commodity > button {
        grid-column: 2;
        grid-row: 3;
    }

    .tokyo-workbench .franchise-row--member {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .tokyo-workbench .franchise-row--member .franchise-row__meta {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .tokyo-workbench .franchise-row--member .franchise-row__balance {
        grid-column: 1;
        grid-row: 3;
    }

    .tokyo-workbench .franchise-row--member > button {
        grid-column: 2;
        grid-row: 1;
    }

    .tokyo-workbench .franchise-row--member .franchise-member-actions {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-items: flex-end;
        flex-direction: column;
    }

    .tokyo-workbench .franchise-row--recharge {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .tokyo-workbench .franchise-row--recharge .franchise-row__status {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }

    .tokyo-workbench .franchise-row--bill,
    .tokyo-workbench .franchise-row--log {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .tokyo-workbench .franchise-row__amount .franchise-inline {
        width: 104px;
    }
}

@media (max-width: 360px) {
    .tokyo-workbench .franchise-row__amount .franchise-inline {
        width: 86px;
    }

    .tokyo-workbench .franchise-row > button {
        padding-inline: 9px;
    }
}

/* TokyoGrid4 user workspace refresh */
:root {
    --tokyo-workbench-bg: #f1f1f3;
    --tokyo-workbench-surface: rgba(255, 255, 255, 0.86);
    --tokyo-workbench-surface-strong: #ffffff;
    --tokyo-workbench-ink: #17191f;
    --tokyo-workbench-muted: #646b75;
    --tokyo-workbench-line: rgba(23, 25, 31, 0.1);
    --tokyo-workbench-line-strong: rgba(23, 25, 31, 0.18);
    --tokyo-workbench-accent: #d94f38;
    --tokyo-workbench-accent-soft: rgba(217, 79, 56, 0.1);
    --tokyo-workbench-success: #217b57;
    --tokyo-workbench-warning: #a86912;
    --tokyo-workbench-blue: #245d9d;
    --tokyo-workbench-shadow: 0 18px 42px rgba(22, 26, 34, 0.08);
    --tokyo-workbench-shadow-soft: 0 8px 22px rgba(22, 26, 34, 0.06);
}

body.tokyo-workbench,
body.tokyo-auth-workbench {
    min-height: 100vh;
    margin: 0;
    color: var(--tokyo-workbench-ink);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    letter-spacing: 0;
    background:
        linear-gradient(180deg, rgba(246, 246, 247, 0.92), rgba(238, 239, 241, 0.96)),
        var(--tokyo-workbench-cover);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.tokyo-workbench *,
.tokyo-auth-workbench * {
    letter-spacing: 0;
}

.tokyo-workbench-root {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.36) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.36) 1px, transparent 1px),
        rgba(242, 242, 244, 0.82);
    background-size: 36px 36px;
    backdrop-filter: blur(12px);
}

.tokyo-workbench-header {
    padding: 14px 16px 0;
}

.tokyo-workbench-header-inner {
    width: min(1380px, 100%);
    min-height: 70px;
    padding: 10px 12px 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(246, 246, 247, 0.88);
    box-shadow: 0 12px 30px rgba(22, 26, 34, 0.07);
}

.tokyo-workbench-brand-group {
    flex: 0 0 auto;
}

.tokyo-workbench-brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border: 1px solid rgba(23, 25, 31, 0.08);
    background: #fff;
    box-shadow: 0 7px 18px rgba(22, 26, 34, 0.08);
}

.tokyo-workbench-brand-kicker {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--tokyo-workbench-muted);
}

.tokyo-workbench-brand-name {
    font-size: 17px;
    font-weight: 800;
}

.tokyo-workbench-mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--tokyo-workbench-line);
    border-radius: 999px;
    background: #fff;
    color: var(--tokyo-workbench-ink);
    align-items: center;
    justify-content: center;
}

.tokyo-workbench-quick-links {
    flex: 1 1 auto;
    justify-content: center;
    gap: 8px;
}

.tokyo-workbench-quick-link,
.tokyo-workbench-header-link {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--tokyo-workbench-muted);
    font-size: 13px;
    font-weight: 700;
}

.tokyo-workbench-quick-link:hover,
.tokyo-workbench-header-link:hover {
    color: var(--tokyo-workbench-ink);
    background: #fff;
    text-decoration: none;
}

.tokyo-workbench-account {
    flex: 0 0 auto;
}

.tokyo-workbench-balance-chip {
    min-height: 42px;
    padding: 7px 12px;
    border-radius: 14px;
    background: #fff;
}

.tokyo-workbench-balance-chip span {
    font-size: 10px;
}

.tokyo-workbench-balance-chip strong {
    font-size: 14px;
}

.tokyo-workbench-user-card {
    min-height: 44px;
    padding: 6px 12px 6px 6px;
    background: #fff;
}

.tokyo-workbench-user-avatar {
    width: 34px;
    height: 34px;
}

.tokyo-workbench-stage {
    padding: 18px 16px 38px;
}

.tokyo-workbench .layui-container.fly-user-main {
    width: min(1380px, 100%);
    grid-template-columns: 276px minmax(0, 1fr);
    gap: 18px;
}

.tokyo-workbench-sidebar {
    top: 96px;
}

.tokyo-workbench-sidebar-card {
    border-color: rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--tokyo-workbench-shadow-soft);
}

.tokyo-workbench-sidebar-card--profile {
    padding: 16px;
}

.tokyo-workbench-sidebar-profile-avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
}

.tokyo-workbench-sidebar-profile-copy strong {
    font-size: 16px;
}

.tokyo-workbench-sidebar-stats {
    gap: 8px;
}

.tokyo-workbench-sidebar-stat {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(248, 248, 249, 0.9);
}

.tokyo-workbench-sidebar-stat strong {
    font-size: 16px;
}

.tokyo-workbench-sidebar-card-head {
    padding: 16px 16px 8px;
}

.tokyo-workbench-sidebar-card-head strong {
    font-size: 17px;
}

.tokyo-workbench-menu {
    padding: 6px 10px 12px;
}

.tokyo-workbench-menu .layui-nav-item > a {
    min-height: 44px;
    padding: 0 12px !important;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
}

.tokyo-workbench-menu .layui-this > a,
.tokyo-workbench-menu .layui-nav-item > a:hover {
    border-color: rgba(23, 25, 31, 0.08);
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(22, 26, 34, 0.07);
}

.tokyo-workbench .fly-panel-user {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--tokyo-workbench-shadow);
}

.tokyo-workbench-page-head {
    padding: 26px 28px 18px;
}

.tokyo-workbench-kicker {
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
}

.tokyo-workbench-page-title,
.tokyo-workbench .content-header {
    font-size: 30px;
    font-weight: 850;
    line-height: 1.1;
}

.tokyo-workbench-page-summary {
    max-width: 680px;
    margin-top: 10px;
    color: var(--tokyo-workbench-muted);
    font-size: 14px;
}

.tokyo-workbench .content-body {
    padding: 22px 28px 28px;
}

.tokyo-workbench-pill {
    min-height: 34px;
    background: #fff;
}

.tokyo-dashboard-grid--stats {
    gap: 14px;
}

.tokyo-metric-card,
.tokyo-section-card,
.tokyo-action-card {
    border-radius: 18px;
    border-color: rgba(23, 25, 31, 0.08);
    background: rgba(255, 255, 255, 0.92);
}

.tokyo-metric-card {
    position: relative;
    overflow: hidden;
}

.tokyo-metric-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tokyo-workbench-ink), rgba(23, 25, 31, 0));
}

.tokyo-metric-card strong {
    font-size: 28px;
}

.tokyo-section-head h3,
.tokyo-action-card strong {
    font-weight: 850;
}

.tokyo-action-card {
    min-height: 112px;
}

.tokyo-action-card:hover {
    color: var(--tokyo-workbench-ink);
    text-decoration: none;
}

.tokyo-workbench blockquote.elem-quote,
.tokyo-workbench blockquote.elem-tips {
    border-color: rgba(36, 93, 157, 0.16);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(36, 93, 157, 0.08), rgba(255, 255, 255, 0.92));
}

.tokyo-form-stack {
    gap: 14px;
}

.tokyo-form-stack > div {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
}

.tokyo-form-stack .form-header {
    font-size: 14px;
}

.tokyo-workbench .layui-input,
.tokyo-workbench .layui-textarea,
.tokyo-workbench .layui-select,
.tokyo-workbench .layui-form-select .layui-input {
    min-height: 44px;
    border-radius: 12px !important;
}

.tokyo-workbench .layui-btn,
.tokyo-workbench .button-click,
.tokyo-workbench .optional-card,
.tokyo-workbench .send-captcha {
    min-height: 42px;
    border-radius: 999px !important;
    font-weight: 700;
}

.tokyo-workbench .layui-btn-pink,
.tokyo-workbench .payButton,
.tokyo-workbench .save-data,
.tokyo-workbench .save-config,
.tokyo-workbench .send-captcha {
    background: #17191f !important;
}

.tokyo-workbench .button-click.checked,
.tokyo-workbench .business-group.checked,
.tokyo-workbench .cash-wallet-btn.checked,
.tokyo-workbench .btn-pay.checked {
    border-color: rgba(217, 79, 56, 0.36) !important;
    background: rgba(217, 79, 56, 0.1) !important;
    color: #8f2c1f !important;
}

.tokyo-workbench .bootstrap-table .fixed-table-container {
    border-radius: 18px;
    background: #fff;
}

.tokyo-workbench .bootstrap-table .fixed-table-toolbar {
    padding-bottom: 12px;
}

.tokyo-workbench .table,
.tokyo-workbench .layui-table {
    margin-bottom: 0;
}

.tokyo-workbench .layui-tab-title {
    min-height: 64px;
    padding: 0 28px;
}

.tokyo-workbench .layui-tab-title li {
    min-height: 38px;
    margin: 12px 0;
    border-radius: 999px;
}

.tokyo-workbench .avatar-img {
    border-radius: 18px !important;
}

.site-mobile-shade {
    display: none;
}

body.tokyo-auth-workbench {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(246, 246, 247, 0.9), rgba(236, 237, 239, 0.96)),
        var(--tokyo-workbench-cover);
    background-position: center;
    background-size: cover;
}

.tokyo-auth-stage {
    width: min(1080px, 100%);
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
    gap: 18px;
}

.tokyo-auth-brand-panel,
.tokyo-auth-card,
.auth-card {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--tokyo-workbench-shadow);
    backdrop-filter: blur(16px);
}

.tokyo-auth-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.58)),
        linear-gradient(180deg, rgba(23, 25, 31, 0.05), rgba(23, 25, 31, 0));
}

.tokyo-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--tokyo-workbench-ink);
    font-size: 18px;
    font-weight: 850;
    text-decoration: none;
}

.tokyo-auth-brand:hover {
    color: var(--tokyo-workbench-ink);
    text-decoration: none;
}

.tokyo-auth-brand img {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    object-fit: cover;
    background: #fff;
    border: 1px solid rgba(23, 25, 31, 0.08);
}

.tokyo-auth-copy {
    max-width: 520px;
}

.tokyo-auth-kicker,
.tokyo-auth-card-head span {
    display: block;
    color: var(--tokyo-workbench-muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.tokyo-auth-copy h1 {
    margin: 12px 0 12px;
    color: var(--tokyo-workbench-ink);
    font-size: 46px;
    font-weight: 850;
    line-height: 1.05;
}

.tokyo-auth-copy p {
    max-width: 420px;
    margin: 0;
    color: var(--tokyo-workbench-muted);
    font-size: 15px;
    line-height: 1.8;
}

.tokyo-auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tokyo-auth-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(23, 25, 31, 0.08);
    border-radius: 999px;
    background: #fff;
    color: var(--tokyo-workbench-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.tokyo-auth-links a:hover {
    color: var(--tokyo-workbench-ink);
}

.tokyo-auth-card {
    padding: 30px;
}

.tokyo-auth-card-head {
    margin-bottom: 22px;
}

.tokyo-auth-card-head h2 {
    margin: 8px 0 0;
    color: var(--tokyo-workbench-ink);
    font-size: 28px;
    font-weight: 850;
}

.tokyo-auth-workbench .auth-wrapper {
    width: min(460px, 100%);
    min-height: auto;
    display: block;
}

.tokyo-auth-workbench .auth-card {
    width: 100%;
    padding: 30px;
}

.tokyo-auth-workbench .brand-logo {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 18px;
    overflow: hidden;
}

.tokyo-auth-workbench .brand-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tokyo-auth-workbench .form-control {
    min-height: 52px;
    border: 1px solid rgba(23, 25, 31, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--tokyo-workbench-ink);
    box-shadow: none;
}

.tokyo-auth-workbench .form-control:focus {
    border-color: rgba(23, 25, 31, 0.28);
    box-shadow: 0 0 0 4px rgba(23, 25, 31, 0.06);
}

.tokyo-auth-captcha {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 12px;
    align-items: center;
}

.tokyo-auth-captcha .form-floating {
    min-width: 0;
}

.tokyo-auth-captcha .image-code,
.tokyo-auth-workbench .image-code {
    width: 132px;
    height: 52px;
    border-radius: 14px;
    object-fit: contain;
    border: 1px solid rgba(23, 25, 31, 0.1);
    background: #fff;
    cursor: pointer;
}

.tokyo-auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 22px;
    color: var(--tokyo-workbench-muted);
    font-size: 13px;
}

.tokyo-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.tokyo-auth-meta a,
.tokyo-auth-footnote a,
.tokyo-auth-workbench .text-link {
    color: var(--tokyo-workbench-blue);
    font-weight: 700;
    text-decoration: none;
}

.tokyo-auth-submit,
.tokyo-auth-workbench .btn-gradient {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    background: #17191f !important;
    color: #fff !important;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(23, 25, 31, 0.18);
}

.tokyo-auth-footnote {
    margin: 18px 0 0;
    text-align: center;
    color: var(--tokyo-workbench-muted);
    font-size: 13px;
}

@media (max-width: 1220px) {
    .tokyo-workbench-header-inner {
        border-radius: 26px;
    }

    .tokyo-workbench-quick-links {
        order: 3;
        width: 100%;
    }
}

@media (max-width: 980px) {
    .tokyo-workbench-mobile-toggle {
        display: inline-flex;
    }

    .tokyo-workbench-account .tokyo-workbench-balance-chip,
    .tokyo-workbench-account .tokyo-workbench-header-link span,
    .tokyo-workbench-quick-links {
        display: none;
    }

    .tokyo-workbench .layui-container.fly-user-main {
        display: block;
    }

    .tokyo-workbench-sidebar {
        position: fixed;
        z-index: 1060;
        top: 0;
        left: 0;
        width: min(310px, 86vw);
        height: 100vh;
        padding: 14px;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        background: rgba(241, 241, 243, 0.96);
        box-shadow: 18px 0 40px rgba(23, 25, 31, 0.18);
    }

    body.site-mobile .tokyo-workbench-sidebar {
        transform: translateX(0);
    }

    body.site-mobile .site-mobile-shade {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1050;
        background: rgba(23, 25, 31, 0.38);
        backdrop-filter: blur(2px);
    }

    .tokyo-dashboard-grid--stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tokyo-auth-stage {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .tokyo-auth-brand-panel {
        min-height: 280px;
    }
}

@media (max-width: 767px) {
    body.tokyo-auth-workbench {
        padding: 14px;
    }

    .tokyo-workbench-header-inner {
        min-height: 62px;
        padding: 10px;
        border-radius: 22px;
    }

    .tokyo-workbench-brand-name {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tokyo-workbench-user-meta,
    .tokyo-workbench-header-link {
        display: none;
    }

    .tokyo-workbench-user-card {
        padding: 5px;
    }

    .tokyo-workbench-stage {
        padding: 14px 12px 30px;
    }

    .tokyo-workbench .fly-panel-user {
        border-radius: 20px;
    }

    .tokyo-workbench-page-head,
    .tokyo-workbench .content-header {
        padding: 22px 20px 16px;
    }

    .tokyo-workbench-page-title,
    .tokyo-workbench .content-header {
        font-size: 24px;
    }

    .tokyo-workbench .content-body {
        padding: 18px 20px 22px;
    }

    .tokyo-dashboard-grid--stats {
        grid-template-columns: 1fr;
    }

    .tokyo-metric-card strong {
        font-size: 24px;
    }

    .tokyo-auth-brand-panel,
    .tokyo-auth-card,
    .tokyo-auth-workbench .auth-card {
        border-radius: 20px;
        padding: 22px;
    }

    .tokyo-auth-copy h1 {
        font-size: 34px;
    }

    .tokyo-auth-captcha {
        grid-template-columns: minmax(0, 1fr) 96px;
        gap: 8px;
    }

    .tokyo-auth-captcha .image-code,
    .tokyo-auth-workbench .image-code {
        width: 96px;
        height: 46px;
        border-radius: 12px;
    }

    .tokyo-auth-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* TokyoGrid4 shared component polish */
.tokyo-workbench .table-search {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid rgba(23, 25, 31, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.tokyo-workbench .table-search .layui-input-inline {
    width: auto;
    min-width: 172px;
    margin: 0 !important;
}

.tokyo-workbench .table-search .layui-input-inline[style*="width: 10px"] {
    min-width: 16px;
    width: 16px !important;
    color: var(--tokyo-workbench-muted);
    line-height: 42px;
}

.tokyo-workbench .table-search .layui-input {
    height: 42px;
    min-height: 42px;
    border-radius: 999px !important;
    background: #fff !important;
}

.tokyo-workbench .table-search .layui-form-select .layui-input {
    padding-right: 34px;
}

.tokyo-workbench .query-button,
.tokyo-workbench .layui-btn-primary.query-button {
    height: 42px !important;
    min-height: 42px;
    padding: 0 18px !important;
    border: 1px solid rgba(23, 25, 31, 0.1) !important;
    border-radius: 999px !important;
    background: #17191f !important;
    color: #fff !important;
    font-weight: 800;
}

.tokyo-workbench .query-button i {
    color: inherit !important;
}

.tokyo-workbench .table-switch-state {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px !important;
}

.tokyo-workbench .table-switch-state.mt-26 {
    margin-top: 0 !important;
}

.tokyo-workbench .table-switch-state button {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(23, 25, 31, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--tokyo-workbench-muted);
    font-size: 13px;
    font-weight: 700;
}

.tokyo-workbench .table-switch-state button.active,
.tokyo-workbench .table-switch-state button:hover {
    background: #fff;
    color: var(--tokyo-workbench-ink);
    box-shadow: var(--tokyo-workbench-shadow-soft);
}

.tokyo-workbench .bootstrap-table {
    color: var(--tokyo-workbench-ink);
}

.tokyo-workbench .bootstrap-table .fixed-table-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0 0 14px;
}

.tokyo-workbench .bootstrap-table .fixed-table-toolbar::after,
.tokyo-workbench .bootstrap-table .fixed-table-toolbar::before {
    display: none;
}

.tokyo-workbench .bootstrap-table .fixed-table-toolbar .bs-bars,
.tokyo-workbench .bootstrap-table .fixed-table-toolbar .columns,
.tokyo-workbench .bootstrap-table .fixed-table-toolbar .search {
    margin: 0 !important;
}

.tokyo-workbench .bootstrap-table .fixed-table-toolbar .btn,
.tokyo-workbench .bootstrap-table .fixed-table-pagination .btn,
.tokyo-workbench .bootstrap-table .page-link {
    border: 1px solid rgba(23, 25, 31, 0.08) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--tokyo-workbench-ink) !important;
    font-weight: 700;
    box-shadow: none !important;
}

.tokyo-workbench .bootstrap-table .page-item.active .page-link,
.tokyo-workbench .bootstrap-table .page-link:hover {
    background: #17191f !important;
    border-color: #17191f !important;
    color: #fff !important;
}

.tokyo-workbench .bootstrap-table .fixed-table-container {
    border-radius: 18px;
    border: 1px solid rgba(23, 25, 31, 0.08);
    overflow: hidden;
    background: #fff;
}

.tokyo-workbench .bootstrap-table .fixed-table-container .table {
    margin: 0;
}

.tokyo-workbench .bootstrap-table .table thead th {
    border-bottom: 1px solid rgba(23, 25, 31, 0.08) !important;
    background: #f5f5f6 !important;
    color: var(--tokyo-workbench-muted) !important;
    font-size: 12px;
    font-weight: 800;
}

.tokyo-workbench .bootstrap-table .table tbody tr:hover > * {
    background: rgba(23, 25, 31, 0.025) !important;
}

.tokyo-workbench .bootstrap-table .fixed-table-pagination {
    margin: 0;
    padding-top: 14px;
    color: var(--tokyo-workbench-muted);
    font-size: 13px;
}

.tokyo-workbench .bootstrap-table .pagination {
    gap: 6px;
}

.tokyo-workbench .bootstrap-table .card-views {
    margin: 0 0 12px;
    padding: 16px !important;
    border: 1px solid rgba(23, 25, 31, 0.08) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: var(--tokyo-workbench-shadow-soft) !important;
}

.tokyo-workbench .bootstrap-table .card-view {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 8px 0 !important;
    border-bottom: 1px dashed rgba(23, 25, 31, 0.08);
}

.tokyo-workbench .bootstrap-table .card-view:last-child {
    border-bottom: 0;
}

.tokyo-workbench .bootstrap-table .card-view-title {
    color: var(--tokyo-workbench-muted) !important;
    font-size: 12px;
    font-weight: 800 !important;
}

.tokyo-workbench .bootstrap-table .card-view-value {
    min-width: 0;
    color: var(--tokyo-workbench-ink);
    font-size: 13px;
    line-height: 1.6;
    word-break: break-word;
}

.tokyo-workbench .bootstrap-table .card-view .secret,
.tokyo-workbench .card-views .card-view .secret {
    width: 100%;
    min-height: 92px;
    border: 1px solid rgba(23, 25, 31, 0.08) !important;
    border-radius: 14px !important;
    background: rgba(246, 248, 246, 0.96) !important;
    color: #1f7a46 !important;
    box-shadow: none !important;
}

.tokyo-workbench .bootstrap-table .secret-download,
.tokyo-workbench .card-views .card-view .secret-download {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-top: 8px;
    padding: 0 12px !important;
    border: 1px solid rgba(23, 25, 31, 0.08) !important;
    border-radius: 999px !important;
    background: #fff;
    color: var(--tokyo-workbench-blue) !important;
    font-size: 12px !important;
    font-weight: 800;
}

.tokyo-workbench .tokyo-secret-source {
    display: none !important;
}

.tokyo-workbench .tokyo-secret-viewer,
.tokyo-workbench .tokyo-secret {
    min-width: 0;
    width: 100%;
}

.tokyo-workbench .tokyo-secret {
    display: grid;
    gap: 12px;
    color: var(--tokyo-workbench-ink);
}

.tokyo-workbench .tokyo-secret-summary,
.tokyo-workbench .tokyo-secret-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tokyo-workbench .tokyo-secret-summary {
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid rgba(23, 25, 31, 0.08);
    border-radius: 14px;
    background: rgba(246, 246, 247, 0.9);
}

.tokyo-workbench .tokyo-secret-summary span {
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
    font-weight: 800;
}

.tokyo-workbench .tokyo-secret-list {
    display: grid;
    gap: 10px;
}

.tokyo-workbench .tokyo-secret-item {
    display: grid;
    gap: 10px;
    padding: 13px;
    border: 1px solid rgba(23, 25, 31, 0.09);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 18px rgba(22, 26, 34, 0.04);
}

.tokyo-workbench .tokyo-secret-item-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.tokyo-workbench .tokyo-secret-item-head strong {
    min-width: 0;
    color: var(--tokyo-workbench-ink);
    font-size: 14px;
    font-weight: 800;
}

.tokyo-workbench .tokyo-secret-item-head span {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(23, 25, 31, 0.06);
    color: var(--tokyo-workbench-muted);
    font-size: 11px;
    font-weight: 800;
}

.tokyo-workbench .tokyo-secret-fields {
    display: grid;
    gap: 8px;
}

.tokyo-workbench .tokyo-secret-row {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(23, 25, 31, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
}

.tokyo-workbench .tokyo-secret-label {
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
    font-weight: 800;
}

.tokyo-workbench .tokyo-secret-value,
.tokyo-workbench .tokyo-secret-plain-box {
    min-width: 0;
    margin: 0;
    color: var(--tokyo-workbench-ink);
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

.tokyo-workbench .tokyo-secret-value {
    display: block;
    padding: 7px 9px;
    border-radius: 10px;
    background: rgba(246, 246, 247, 0.9);
}

.tokyo-workbench .tokyo-secret-value--link {
    color: var(--tokyo-workbench-blue);
    text-decoration: none;
}

.tokyo-workbench .tokyo-secret-copy,
.tokyo-workbench .tokyo-secret-download,
.tokyo-workbench .tokyo-secret-txt-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(23, 25, 31, 0.1);
    border-radius: 999px;
    background: #17191f;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.tokyo-workbench .tokyo-secret-download,
.tokyo-workbench .tokyo-secret-txt-download {
    background: #fff;
    color: var(--tokyo-workbench-ink) !important;
}

.tokyo-workbench .tokyo-secret-row--image {
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: start;
}

.tokyo-workbench .tokyo-secret-image-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tokyo-workbench .tokyo-secret-image-preview {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 76px;
    padding: 6px;
    border: 1px solid rgba(23, 25, 31, 0.08);
    border-radius: 14px;
    background: #fff;
    color: var(--tokyo-workbench-ink);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.tokyo-workbench .tokyo-secret-image-preview img {
    width: auto;
    max-width: min(280px, 62vw);
    height: 64px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(23, 25, 31, 0.05);
}

.tokyo-workbench .tokyo-secret-plain-box {
    padding: 13px;
    border: 1px solid rgba(23, 25, 31, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
}

.tokyo-workbench .layui-tab-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.tokyo-workbench .layui-tab-title li {
    color: var(--tokyo-workbench-muted) !important;
}

.tokyo-workbench .layui-tab-title li.layui-this,
.tokyo-workbench .layui-tab-title li:hover {
    color: var(--tokyo-workbench-ink) !important;
}

.tokyo-workbench .layui-tab-title .layui-badge {
    margin-left: 6px;
    background: #17191f !important;
    color: #fff !important;
}

.tokyo-workbench .layui-form-checkbox[lay-skin=primary] span,
.tokyo-workbench .layui-form-radio,
.tokyo-workbench .layui-form-select dl dd,
.tokyo-workbench .layui-form-select dl dt {
    color: var(--tokyo-workbench-ink);
}

.tokyo-workbench .layui-form-select dl dd.layui-this {
    background: #17191f !important;
    color: #fff !important;
}

.tokyo-workbench xm-select {
    min-height: 42px;
    border-color: rgba(23, 25, 31, 0.1) !important;
    border-radius: 14px !important;
    background: #fff !important;
}

.tokyo-workbench xm-select .xm-label-block {
    border-radius: 999px !important;
}

.tokyo-recharge-welfare {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(23, 25, 31, 0.08);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(244, 245, 246, 0.76)),
        radial-gradient(circle at 88% 12%, rgba(45, 154, 98, 0.14), transparent 26%);
    box-shadow: var(--tokyo-workbench-shadow-soft);
}

.tokyo-recharge-welfare-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tokyo-recharge-welfare-head i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: #17191f;
    color: #fff;
    font-size: 20px;
}

.tokyo-recharge-welfare-head strong {
    display: block;
    color: var(--tokyo-workbench-ink);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.tokyo-recharge-welfare-head span {
    display: block;
    margin-top: 4px;
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
    font-weight: 700;
}

.tokyo-recharge-welfare-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tokyo-recharge-welfare-list span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(45, 154, 98, 0.18);
    border-radius: 999px;
    background: rgba(45, 154, 98, 0.08);
    color: #247a51;
    font-size: 13px;
    font-weight: 800;
}

.tokyo-discount-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(29, 35, 42, 0.94), rgba(54, 61, 68, 0.9));
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 24px rgba(21, 24, 29, 0.12);
}

.tokyo-discount-badge.is-muted {
    background: rgba(21, 24, 29, 0.08);
    color: rgba(21, 24, 29, 0.52);
    box-shadow: none;
}

.tokyo-usdt-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid rgba(202, 73, 55, 0.3);
    border-left: 4px solid #ca4937;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(202, 73, 55, 0.1), rgba(185, 130, 47, 0.08)),
        #fffaf2;
    box-shadow: 0 10px 24px rgba(128, 66, 45, 0.1);
    color: #5e332b;
}

.tokyo-usdt-alert-icon {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ca4937;
    color: #fff;
    box-shadow: 0 6px 14px rgba(202, 73, 55, 0.24);
}

.tokyo-usdt-alert-icon .layui-icon {
    font-size: 20px;
}

.tokyo-usdt-alert-content {
    min-width: 0;
}

.tokyo-usdt-alert-content > strong {
    display: block;
    margin-bottom: 5px;
    color: #a63227;
    font-size: 16px;
    line-height: 1.4;
}

.tokyo-usdt-alert-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
}

.tokyo-usdt-alert-content p strong {
    color: #b2362a;
    font-weight: 900;
}

.tokyo-usdt-alert-content a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-left: 3px;
    padding: 0 10px;
    border: 1px solid rgba(202, 73, 55, 0.32);
    border-radius: 6px;
    background: #fff;
    color: #b2362a !important;
    font-weight: 900;
    text-decoration: none !important;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tokyo-usdt-alert-content a:hover,
.tokyo-usdt-alert-content a:focus-visible {
    border-color: #ca4937;
    background: #ca4937;
    color: #fff !important;
}

.tokyo-recharge-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
}

.tokyo-recruit-entry {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(23, 25, 31, 0.12);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(23, 25, 31, 0.94), rgba(47, 66, 61, 0.92)),
        radial-gradient(circle at 88% 15%, rgba(255, 193, 96, 0.28), transparent 28%);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 16px 34px rgba(20, 27, 31, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tokyo-recruit-entry:hover,
.tokyo-recruit-entry:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(20, 27, 31, 0.2);
}

.tokyo-recruit-entry-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #ffd36b;
    color: #2b2113;
    font-size: 12px;
    font-weight: 900;
}

.tokyo-recruit-entry-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.tokyo-recruit-entry-copy strong {
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
}

.tokyo-recruit-entry-copy em {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.55;
}

.tokyo-recruit-entry-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: #ffd36b;
    font-size: 13px;
    font-weight: 900;
}

.tokyo-usdt-tutorial-link,
.tokyo-usdt-guide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(23, 25, 31, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--tokyo-workbench-ink) !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tokyo-usdt-tutorial-link:hover,
.tokyo-usdt-guide-button:hover {
    transform: translateY(-1px);
    border-color: rgba(23, 25, 31, 0.18);
    background: #fff;
}

.tokyo-usdt-guide-head {
    align-items: stretch;
}

.tokyo-usdt-guide-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.tokyo-usdt-guide-button {
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    background: #17191f;
    color: #fff !important;
}

.tokyo-usdt-guide-button:hover {
    background: #242832;
    color: #fff !important;
}

.tokyo-recruit-page {
    display: grid;
    gap: 18px;
}

.tokyo-recruit-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(23, 25, 31, 0.1);
    border-radius: 26px;
    background:
        radial-gradient(circle at 90% 12%, rgba(255, 211, 107, 0.28), transparent 26%),
        linear-gradient(135deg, #ffffff, rgba(244, 247, 246, 0.92));
    box-shadow: var(--tokyo-workbench-shadow-soft);
}

.tokyo-recruit-hero-copy {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.tokyo-recruit-hero-copy > span,
.tokyo-recruit-role-top span,
.tokyo-recruit-process-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(45, 154, 98, 0.12);
    color: #247a51;
    font-size: 12px;
    font-weight: 900;
}

.tokyo-recruit-hero-copy h2 {
    margin: 0;
    color: var(--tokyo-workbench-ink);
    font-size: 38px;
    font-weight: 900;
    line-height: 1.08;
}

.tokyo-recruit-hero-copy p,
.tokyo-recruit-role-card p,
.tokyo-recruit-process-list p,
.tokyo-recruit-note p {
    margin: 0;
    color: var(--tokyo-workbench-muted);
    font-size: 14px;
    line-height: 1.75;
}

.tokyo-recruit-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.tokyo-recruit-hero-actions > span {
    color: var(--tokyo-workbench-muted);
    font-size: 13px;
    line-height: 1.6;
}

.tokyo-recruit-mail-button,
.tokyo-recruit-note a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #17191f;
    color: #fff !important;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none !important;
    transition: transform 0.2s ease, background 0.2s ease;
}

.tokyo-recruit-mail-button:hover,
.tokyo-recruit-note a:hover {
    transform: translateY(-1px);
    background: #2d9a62;
}

.tokyo-recruit-highlight {
    display: grid;
    align-content: center;
    gap: 8px;
    min-height: 210px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(160deg, #17191f, #2d473e);
    color: #fff;
    box-shadow: 0 16px 34px rgba(23, 25, 31, 0.16);
}

.tokyo-recruit-highlight span,
.tokyo-recruit-highlight em {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.tokyo-recruit-highlight strong {
    color: #ffd36b;
    font-size: 60px;
    font-weight: 900;
    line-height: 1;
}

.tokyo-recruit-role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tokyo-recruit-role-card,
.tokyo-recruit-process,
.tokyo-recruit-note {
    border: 1px solid var(--tokyo-workbench-line);
    border-radius: 22px;
    background: var(--tokyo-workbench-surface-strong);
    box-shadow: var(--tokyo-workbench-shadow-soft);
}

.tokyo-recruit-role-card {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.tokyo-recruit-role-card.is-primary {
    border-color: rgba(45, 154, 98, 0.24);
    background:
        radial-gradient(circle at 86% 12%, rgba(45, 154, 98, 0.16), transparent 28%),
        #fff;
}

.tokyo-recruit-role-card.is-muted {
    background: rgba(255, 255, 255, 0.7);
}

.tokyo-recruit-role-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tokyo-recruit-role-top strong {
    color: var(--tokyo-workbench-ink);
    font-size: 20px;
    font-weight: 900;
}

.tokyo-recruit-role-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.tokyo-recruit-role-card dl > div {
    display: grid;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px dashed rgba(21, 24, 29, 0.1);
}

.tokyo-recruit-role-card dt {
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
    font-weight: 900;
}

.tokyo-recruit-role-card dd {
    margin: 0;
    color: var(--tokyo-workbench-ink);
    font-size: 14px;
    line-height: 1.65;
}

.tokyo-recruit-process {
    padding: 22px;
}

.tokyo-recruit-process-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.tokyo-recruit-process-list > div {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--tokyo-workbench-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
}

.tokyo-recruit-process-list strong {
    color: var(--tokyo-workbench-ink);
    font-size: 16px;
    font-weight: 900;
}

.tokyo-recruit-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
}

.tokyo-recruit-note > div {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.tokyo-recruit-note strong {
    color: var(--tokyo-workbench-ink);
    font-size: 17px;
    font-weight: 900;
}

.tokyo-usdt-guide {
    display: grid;
    gap: 18px;
}

.tokyo-usdt-hero-card,
.tokyo-usdt-note-card,
.tokyo-usdt-step-card {
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--tokyo-workbench-shadow-soft);
}

.tokyo-usdt-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
    gap: 18px;
    align-items: stretch;
    padding: 20px;
}

.tokyo-usdt-hero-card span,
.tokyo-usdt-section-head span {
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tokyo-usdt-hero-card h2,
.tokyo-usdt-section-head h2,
.tokyo-usdt-note-head h2 {
    margin: 6px 0 0;
    color: var(--tokyo-workbench-ink);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.tokyo-usdt-hero-card p,
.tokyo-usdt-note-card p,
.tokyo-usdt-note-card li,
.tokyo-usdt-step-card p {
    color: var(--tokyo-workbench-muted);
    font-size: 14px;
    line-height: 1.75;
}

.tokyo-usdt-hero-visual {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    min-height: 190px;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(23, 25, 31, 0.94), rgba(45, 48, 57, 0.9)),
        radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.2), transparent 30%);
    color: #fff;
}

.tokyo-usdt-hero-visual strong {
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 900;
    letter-spacing: -0.08em;
}

.tokyo-usdt-hero-visual em {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.tokyo-usdt-section {
    display: grid;
    gap: 14px;
}

.tokyo-usdt-section-head {
    display: grid;
    gap: 2px;
    padding: 0 4px;
}

.tokyo-usdt-step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.tokyo-usdt-step-card {
    overflow: hidden;
}

.tokyo-usdt-shot {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(23, 25, 31, 0.08), transparent),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(235, 236, 239, 0.82));
}

.tokyo-usdt-shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tokyo-usdt-shot span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: #17191f;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.tokyo-usdt-step-card h3 {
    margin: 16px 16px 0;
    color: var(--tokyo-workbench-ink);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.tokyo-usdt-step-card p {
    margin: 8px 16px 18px;
}

.tokyo-usdt-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tokyo-usdt-note-card {
    padding: 18px;
}

.tokyo-usdt-note-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tokyo-usdt-note-head i {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #17191f;
    color: #fff;
    font-size: 21px;
}

.tokyo-usdt-note-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.tokyo-usdt-note-card code {
    display: inline-block;
    margin-top: 4px;
    padding: 4px 8px;
    border: 1px solid rgba(23, 25, 31, 0.09);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--tokyo-workbench-ink);
    font-size: 12px;
    word-break: break-all;
}

.tokyo-usdt-doc-guide {
    gap: 22px;
}

.tokyo-usdt-doc-hero,
.tokyo-usdt-doc-warning,
.tokyo-usdt-doc-section,
.tokyo-usdt-doc-footer-note {
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--tokyo-workbench-shadow-soft);
}

.tokyo-usdt-doc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 22px;
    align-items: center;
    overflow: hidden;
    padding: 22px;
    background:
        radial-gradient(circle at 88% 8%, rgba(31, 126, 85, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(243, 244, 246, 0.86));
}

.tokyo-usdt-doc-hero-copy {
    display: grid;
    gap: 14px;
}

.tokyo-usdt-doc-hero-copy > span,
.tokyo-usdt-doc-section-head > span {
    color: var(--tokyo-workbench-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tokyo-usdt-doc-hero-copy h2,
.tokyo-usdt-doc-section-head h2 {
    margin: 0;
    color: var(--tokyo-workbench-ink);
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 900;
    letter-spacing: -0.07em;
    line-height: 1.05;
}

.tokyo-usdt-doc-hero-copy p,
.tokyo-usdt-doc-section-head p,
.tokyo-usdt-phone-copy p,
.tokyo-usdt-doc-warning p,
.tokyo-usdt-doc-footer-note p {
    margin: 0;
    color: var(--tokyo-workbench-muted);
    font-size: 14px;
    line-height: 1.75;
}

.tokyo-usdt-doc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tokyo-usdt-doc-tags em {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(23, 25, 31, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--tokyo-workbench-ink);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.tokyo-usdt-doc-hero-shot {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.tokyo-usdt-doc-hero-shot img {
    display: block;
    width: min(100%, 238px);
    height: auto;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 22px 42px rgba(22, 26, 34, 0.16);
}

.tokyo-usdt-doc-warning {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-color: rgba(23, 25, 31, 0.08);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 246, 247, 0.84)),
        radial-gradient(circle at 3% 0%, rgba(217, 79, 56, 0.08), transparent 24%);
}

.tokyo-usdt-doc-warning strong,
.tokyo-usdt-doc-footer-note strong {
    color: var(--tokyo-workbench-ink);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.tokyo-usdt-doc-section {
    display: grid;
    gap: 18px;
    padding: 20px;
}

.tokyo-usdt-doc-section-head {
    display: grid;
    gap: 8px;
    max-width: 880px;
}

.tokyo-usdt-phone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.tokyo-usdt-phone-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tokyo-usdt-phone-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid rgba(23, 25, 31, 0.08);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 249, 0.92));
    box-shadow: 0 10px 24px rgba(22, 26, 34, 0.05);
}

.tokyo-usdt-phone-copy {
    display: grid;
    gap: 8px;
    padding: 16px 17px 0;
}

.tokyo-usdt-phone-copy span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: #17191f;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.tokyo-usdt-phone-copy h3 {
    margin: 0;
    color: var(--tokyo-workbench-ink);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.tokyo-usdt-phone-copy .tokyo-usdt-step-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 4px;
    padding: 10px 12px;
    border: 1px solid rgba(202, 73, 55, 0.24);
    border-radius: 8px;
    background: rgba(202, 73, 55, 0.08);
    color: #a63227;
    font-weight: 800;
}

.tokyo-usdt-step-alert .layui-icon {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #ca4937;
    font-size: 16px;
}

.tokyo-usdt-phone-card figure {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0;
    padding: 16px;
    background:
        radial-gradient(circle at 50% 0%, rgba(23, 25, 31, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(244, 245, 247, 0.86), rgba(255, 255, 255, 0.64));
}

.tokyo-usdt-phone-card figure img {
    display: block;
    width: min(100%, 236px);
    height: auto;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 34px rgba(22, 26, 34, 0.12);
}

.tokyo-usdt-phone-card--wide {
    grid-column: span 2;
    grid-template-columns: minmax(0, 0.74fr) minmax(250px, 1fr);
    grid-template-rows: auto;
    align-items: stretch;
}

.tokyo-usdt-phone-card--wide .tokyo-usdt-phone-copy {
    align-content: center;
    padding: 20px;
}

.tokyo-usdt-phone-card--wide figure {
    align-items: center;
}

.tokyo-usdt-doc-footer-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
}

.tokyo-usdt-doc-footer-note > div {
    display: grid;
    gap: 6px;
    min-width: 0;
}

@media (max-width: 980px) {
    .tokyo-usdt-hero-card,
    .tokyo-usdt-step-grid,
    .tokyo-usdt-split {
        grid-template-columns: 1fr;
    }

    .tokyo-usdt-doc-hero,
    .tokyo-usdt-phone-grid--compact,
    .tokyo-usdt-phone-card--wide {
        grid-template-columns: 1fr;
    }

    .tokyo-usdt-phone-card--wide {
        grid-column: auto;
    }

    .tokyo-usdt-doc-footer-note {
        align-items: stretch;
        flex-direction: column;
    }

    .tokyo-recruit-hero,
    .tokyo-recruit-role-grid,
    .tokyo-recruit-process-list {
        grid-template-columns: 1fr;
    }

    .tokyo-recruit-highlight {
        min-height: 160px;
    }
}

@media (max-width: 767px) {
    .tokyo-workbench .table-search {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tokyo-workbench .table-search .layui-input-inline {
        width: 100% !important;
        min-width: 0;
    }

    .tokyo-workbench .bootstrap-table .card-view {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .tokyo-recharge-actions,
    .tokyo-recharge-actions .layui-btn,
    .tokyo-recruit-entry,
    .tokyo-usdt-tutorial-link,
    .tokyo-usdt-guide-button {
        width: 100%;
    }

    .tokyo-recruit-entry {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .tokyo-recruit-note {
        align-items: stretch;
        flex-direction: column;
    }

    .tokyo-recruit-entry-action {
        justify-content: space-between;
    }

    .tokyo-recruit-hero,
    .tokyo-recruit-role-card,
    .tokyo-recruit-process,
    .tokyo-recruit-note {
        padding: 16px;
        border-radius: 18px;
    }

    .tokyo-recruit-hero-copy h2 {
        font-size: 28px;
    }

    .tokyo-usdt-guide-actions {
        justify-content: stretch;
    }

    .tokyo-usdt-alert {
        gap: 11px;
        padding: 14px;
    }

    .tokyo-usdt-alert-icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }

    .tokyo-usdt-alert-content > strong {
        font-size: 15px;
    }

    .tokyo-usdt-alert-content p {
        line-height: 1.7;
    }

    .tokyo-usdt-hero-card,
    .tokyo-usdt-note-card {
        padding: 16px;
        border-radius: 22px;
    }

    .tokyo-usdt-doc-hero,
    .tokyo-usdt-doc-section,
    .tokyo-usdt-doc-warning,
    .tokyo-usdt-doc-footer-note {
        padding: 16px;
        border-radius: 22px;
    }

    .tokyo-usdt-phone-grid {
        grid-template-columns: 1fr;
    }

    .tokyo-usdt-phone-card figure img,
    .tokyo-usdt-doc-hero-shot img {
        width: min(100%, 230px);
    }
}

/* TokyoGrid4 final spacing and backdrop tune */
body.tokyo-workbench {
    background:
        linear-gradient(180deg, rgba(246, 246, 247, 0.48), rgba(238, 239, 241, 0.68)),
        var(--tokyo-workbench-cover);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.tokyo-workbench-root {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
        rgba(242, 242, 244, 0.48);
    background-size: 36px 36px;
}

.tokyo-workbench .layui-container.fly-user-main {
    gap: 8px;
}

.tokyo-workbench .layui-container.fly-user-main > .tokyo-workbench-sidebar {
    grid-column: 1;
}

.tokyo-workbench .layui-container.fly-user-main > .fly-panel,
.tokyo-workbench .layui-container.fly-user-main > .fly-panel-user {
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    grid-column: 2;
}

@media (max-width: 980px) {
    .tokyo-workbench .layui-container.fly-user-main {
        gap: 0;
    }

    .tokyo-workbench .layui-container.fly-user-main > .tokyo-workbench-sidebar,
    .tokyo-workbench .layui-container.fly-user-main > .fly-panel,
    .tokyo-workbench .layui-container.fly-user-main > .fly-panel-user {
        grid-column: auto;
    }
}

/* TokyoGrid4 mobile header navigation tune */
@media (max-width: 980px) {
    .tokyo-workbench .tokyo-workbench-header {
        padding: 10px 10px 0;
    }

    .tokyo-workbench .tokyo-workbench-header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        min-height: 0;
        padding: 10px;
        border-radius: 24px;
    }

    .tokyo-workbench .tokyo-workbench-brand-group,
    .tokyo-workbench .tokyo-workbench-account {
        width: auto;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .tokyo-workbench .tokyo-workbench-brand-group {
        grid-column: 1;
        justify-content: flex-start;
        gap: 8px;
    }

    .tokyo-workbench .tokyo-workbench-brand {
        min-width: 0;
    }

    .tokyo-workbench .tokyo-workbench-brand-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .tokyo-workbench .tokyo-workbench-mobile-toggle {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .tokyo-workbench .tokyo-workbench-account {
        grid-column: 2;
        justify-content: flex-end;
        gap: 8px;
    }

    .tokyo-workbench .tokyo-workbench-quick-links {
        display: flex !important;
        grid-column: 1 / -1;
        order: 3;
        width: 100%;
        margin: 0;
        padding: 2px 1px 4px;
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .tokyo-workbench .tokyo-workbench-quick-links::-webkit-scrollbar {
        display: none;
    }

    .tokyo-workbench .tokyo-workbench-quick-link {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 0 12px;
        gap: 6px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.78);
        box-shadow: none;
        font-size: 12px;
        line-height: 1;
        white-space: nowrap;
    }

    .tokyo-workbench .tokyo-workbench-quick-link i {
        font-size: 14px;
        line-height: 1;
    }

    .tokyo-workbench .tokyo-workbench-header-link {
        width: 38px;
        min-width: 38px;
        min-height: 38px;
        padding: 0;
        justify-content: center;
    }

    .tokyo-workbench .tokyo-workbench-user-card {
        min-height: 38px;
        padding: 4px;
        border-radius: 999px;
    }

    .tokyo-workbench .tokyo-workbench-user-avatar {
        width: 30px;
        height: 30px;
    }

    .tokyo-workbench .tokyo-workbench-stage {
        padding-top: 12px;
    }
}

@media (max-width: 420px) {
    .tokyo-workbench .tokyo-workbench-brand-kicker {
        display: none;
    }

    .tokyo-workbench .tokyo-workbench-brand-name {
        max-width: min(42vw, 150px);
        font-size: 15px;
    }

    .tokyo-workbench .tokyo-workbench-quick-link {
        min-height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .tokyo-workbench .tokyo-secret-summary {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .tokyo-workbench .tokyo-secret-row,
    .tokyo-workbench .tokyo-secret-row--image {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .tokyo-workbench .tokyo-secret-copy,
    .tokyo-workbench .tokyo-secret-download,
    .tokyo-workbench .tokyo-secret-txt-download {
        width: fit-content;
    }
}

/* TokyoGrid4 color expression layer */
:root {
    --tokyo-workbench-bg: #f4efe8;
    --tokyo-workbench-surface: rgba(255, 251, 244, 0.9);
    --tokyo-workbench-surface-strong: #fffaf2;
    --tokyo-workbench-muted: #726a61;
    --tokyo-workbench-line: rgba(105, 78, 48, 0.13);
    --tokyo-workbench-line-strong: rgba(105, 78, 48, 0.22);
    --tokyo-workbench-accent: #d96f3d;
    --tokyo-workbench-accent-soft: rgba(217, 111, 61, 0.14);
    --tokyo-workbench-success: #218761;
    --tokyo-workbench-warning: #b9822f;
    --tokyo-workbench-blue: #3b6ea8;
    --tokyo-workbench-teal: #247f72;
    --tokyo-workbench-teal-soft: rgba(36, 127, 114, 0.13);
    --tokyo-workbench-sky: #3b6ea8;
    --tokyo-workbench-sky-soft: rgba(59, 110, 168, 0.13);
    --tokyo-workbench-rose: #c9566f;
    --tokyo-workbench-rose-soft: rgba(201, 86, 111, 0.13);
    --tokyo-workbench-gold: #b9822f;
    --tokyo-workbench-gold-soft: rgba(185, 130, 47, 0.15);
    --tokyo-workbench-shadow: 0 18px 46px rgba(88, 65, 38, 0.12);
    --tokyo-workbench-shadow-soft: 0 10px 24px rgba(88, 65, 38, 0.08);
}

body.tokyo-workbench,
body.tokyo-auth-workbench {
    background:
        radial-gradient(circle at 10% 8%, rgba(217, 111, 61, 0.2), transparent 31%),
        radial-gradient(circle at 90% 10%, rgba(36, 127, 114, 0.15), transparent 28%),
        radial-gradient(circle at 48% 96%, rgba(59, 110, 168, 0.13), transparent 34%),
        linear-gradient(180deg, rgba(255, 250, 243, 0.9), rgba(239, 241, 236, 0.95)),
        var(--tokyo-workbench-cover);
}

.tokyo-workbench-root {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px),
        radial-gradient(circle at 14% 16%, rgba(217, 111, 61, 0.1), transparent 30%),
        radial-gradient(circle at 84% 20%, rgba(36, 127, 114, 0.09), transparent 28%),
        rgba(246, 239, 229, 0.72);
}

.tokyo-workbench-header-inner {
    border-color: rgba(255, 255, 255, 0.8);
    background:
        linear-gradient(135deg, rgba(255, 250, 242, 0.95), rgba(244, 252, 248, 0.9)),
        linear-gradient(90deg, rgba(217, 111, 61, 0.08), rgba(36, 127, 114, 0.06));
    box-shadow: 0 14px 34px rgba(88, 65, 38, 0.1);
}

.tokyo-workbench-brand-mark,
.tokyo-workbench-user-avatar,
.tokyo-workbench-sidebar-profile-avatar,
.tokyo-auth-brand img,
.tokyo-auth-workbench .brand-icon {
    border: 2px solid rgba(255, 250, 242, 0.92);
    box-shadow:
        0 0 0 4px rgba(217, 111, 61, 0.1),
        0 12px 24px rgba(88, 65, 38, 0.12);
}

.tokyo-workbench-brand-mark {
    background:
        linear-gradient(135deg, rgba(217, 111, 61, 0.12), rgba(36, 127, 114, 0.1)),
        #fffaf2;
}

.tokyo-workbench-quick-link,
.tokyo-workbench-header-link,
.tokyo-workbench-user-card,
.tokyo-workbench-pill {
    border: 1px solid rgba(255, 255, 255, 0.78);
    background: rgba(255, 250, 242, 0.78);
}

.tokyo-workbench-quick-link i,
.tokyo-workbench-header-link i {
    color: var(--tokyo-workbench-sky);
}

.tokyo-workbench-quick-link:hover,
.tokyo-workbench-header-link:hover {
    background: rgba(255, 255, 255, 0.96);
    color: var(--tokyo-workbench-accent);
    box-shadow: 0 10px 22px rgba(217, 111, 61, 0.12);
}

.tokyo-workbench-balance-chip:first-child {
    border-color: rgba(185, 130, 47, 0.22);
    background: var(--tokyo-workbench-gold-soft);
}

.tokyo-workbench-balance-chip:first-child strong {
    color: #916221;
}

.tokyo-workbench-balance-chip:nth-child(2) {
    border-color: rgba(36, 127, 114, 0.22);
    background: var(--tokyo-workbench-teal-soft);
}

.tokyo-workbench-balance-chip:nth-child(2) strong {
    color: var(--tokyo-workbench-teal);
}

.tokyo-workbench-sidebar-card,
.tokyo-workbench .fly-panel-user,
.tokyo-section-card,
.tokyo-action-card,
.tokyo-metric-card,
.tokyo-workbench .bootstrap-table .fixed-table-container,
.tokyo-form-stack > div,
.tokyo-auth-card,
.auth-card,
.tokyo-auth-brand-panel {
    border-color: rgba(255, 255, 255, 0.78);
    background:
        linear-gradient(180deg, rgba(255, 251, 244, 0.92), rgba(255, 255, 255, 0.86)),
        rgba(255, 251, 244, 0.88);
}

.tokyo-workbench-sidebar-card--profile {
    background:
        radial-gradient(circle at 18% 0%, rgba(217, 111, 61, 0.16), transparent 42%),
        radial-gradient(circle at 100% 26%, rgba(36, 127, 114, 0.12), transparent 40%),
        rgba(255, 251, 244, 0.9);
}

.tokyo-workbench-sidebar-profile-copy strong,
.tokyo-workbench-user-name,
.tokyo-section-head h3,
.tokyo-action-card strong,
.tokyo-auth-card-head h2 {
    color: #1d2024;
}

.tokyo-workbench-sidebar-stat:first-child,
.tokyo-workbench-sidebar-stat:nth-child(4n+1) {
    border-color: rgba(59, 110, 168, 0.2);
    background: var(--tokyo-workbench-sky-soft);
}

.tokyo-workbench-sidebar-stat:nth-child(2),
.tokyo-workbench-sidebar-stat:nth-child(4n+2) {
    border-color: rgba(185, 130, 47, 0.22);
    background: var(--tokyo-workbench-gold-soft);
}

.tokyo-workbench-sidebar-stat:nth-child(3),
.tokyo-workbench-sidebar-stat:nth-child(4n+3) {
    border-color: rgba(36, 127, 114, 0.22);
    background: var(--tokyo-workbench-teal-soft);
}

.tokyo-workbench-sidebar-stat:nth-child(4n) {
    border-color: rgba(201, 86, 111, 0.2);
    background: var(--tokyo-workbench-rose-soft);
}

.tokyo-workbench-sidebar-stat strong {
    color: #20242a;
}

.tokyo-workbench-menu .layui-nav-item > a {
    position: relative;
}

.tokyo-workbench-menu .layui-nav-item > a .layui-icon {
    color: var(--tokyo-workbench-sky);
}

.tokyo-workbench-menu .layui-this > a,
.tokyo-workbench-menu .layui-nav-item > a:hover {
    border-color: rgba(217, 111, 61, 0.18);
    background:
        linear-gradient(90deg, rgba(217, 111, 61, 0.16), rgba(36, 127, 114, 0.1)),
        rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 12px 24px rgba(217, 111, 61, 0.12);
}

.tokyo-workbench-menu .layui-this > a::before,
.tokyo-workbench-menu .layui-nav-item > a:hover::before {
    content: "";
    width: 5px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--tokyo-workbench-accent), var(--tokyo-workbench-teal));
}

.tokyo-workbench-menu .layui-this > a .layui-icon,
.tokyo-workbench-menu .layui-nav-item > a:hover .layui-icon {
    color: var(--tokyo-workbench-accent);
}

.tokyo-workbench .layui-tab-title {
    background:
        linear-gradient(90deg, rgba(217, 111, 61, 0.08), rgba(36, 127, 114, 0.07)),
        rgba(255, 251, 244, 0.72);
}

.tokyo-workbench .layui-tab-title li:hover,
.tokyo-workbench .layui-tab-title .layui-this {
    color: var(--tokyo-workbench-accent) !important;
    border-color: rgba(217, 111, 61, 0.2);
    background: rgba(255, 255, 255, 0.86);
}

.tokyo-workbench .layui-tab-title .layui-this:after {
    border-color: transparent !important;
}

.tokyo-metric-card:nth-child(4n+1)::before {
    background: linear-gradient(90deg, var(--tokyo-workbench-accent), rgba(217, 111, 61, 0));
}

.tokyo-metric-card:nth-child(4n+2)::before {
    background: linear-gradient(90deg, var(--tokyo-workbench-teal), rgba(36, 127, 114, 0));
}

.tokyo-metric-card:nth-child(4n+3)::before {
    background: linear-gradient(90deg, var(--tokyo-workbench-sky), rgba(59, 110, 168, 0));
}

.tokyo-metric-card:nth-child(4n)::before {
    background: linear-gradient(90deg, var(--tokyo-workbench-gold), rgba(185, 130, 47, 0));
}

.tokyo-metric-card:nth-child(4n+1) {
    background: linear-gradient(180deg, rgba(255, 248, 241, 0.96), rgba(255, 255, 255, 0.9));
}

.tokyo-metric-card:nth-child(4n+2) {
    background: linear-gradient(180deg, rgba(242, 252, 248, 0.96), rgba(255, 255, 255, 0.9));
}

.tokyo-metric-card:nth-child(4n+3) {
    background: linear-gradient(180deg, rgba(243, 248, 255, 0.96), rgba(255, 255, 255, 0.9));
}

.tokyo-metric-card:nth-child(4n) {
    background: linear-gradient(180deg, rgba(255, 250, 236, 0.96), rgba(255, 255, 255, 0.9));
}

.tokyo-metric-card strong {
    color: #17191f;
}

.tokyo-action-card {
    position: relative;
    overflow: hidden;
}

.tokyo-action-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--tokyo-workbench-accent), var(--tokyo-workbench-teal));
    opacity: 0.72;
}

.tokyo-action-card:nth-child(3n+2)::before {
    background: linear-gradient(180deg, var(--tokyo-workbench-sky), var(--tokyo-workbench-teal));
}

.tokyo-action-card:nth-child(3n)::before {
    background: linear-gradient(180deg, var(--tokyo-workbench-gold), var(--tokyo-workbench-rose));
}

.tokyo-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(88, 65, 38, 0.12);
}

.tokyo-workbench blockquote.elem-quote,
.tokyo-workbench blockquote.elem-tips {
    border-color: rgba(59, 110, 168, 0.2);
    background:
        linear-gradient(135deg, rgba(59, 110, 168, 0.1), rgba(36, 127, 114, 0.08)),
        rgba(255, 255, 255, 0.88);
}

.tokyo-workbench .layui-input,
.tokyo-workbench .layui-textarea,
.tokyo-workbench .layui-select,
.tokyo-workbench .layui-form-select .layui-input,
.tokyo-auth-workbench .form-control {
    border-color: rgba(105, 78, 48, 0.16) !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.tokyo-workbench .layui-input:focus,
.tokyo-workbench .layui-textarea:focus,
.tokyo-workbench .layui-form-select .layui-input:focus,
.tokyo-auth-workbench .form-control:focus {
    border-color: rgba(217, 111, 61, 0.42) !important;
    box-shadow: 0 0 0 4px rgba(217, 111, 61, 0.12) !important;
}

.tokyo-workbench .layui-btn-pink,
.tokyo-workbench .payButton,
.tokyo-workbench .save-data,
.tokyo-workbench .save-config,
.tokyo-workbench .send-captcha,
.tokyo-auth-submit,
.tokyo-auth-workbench .btn-gradient {
    border: 0 !important;
    background: linear-gradient(135deg, #20242a, #d96f3d 56%, #247f72) !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(217, 111, 61, 0.2);
}

.tokyo-workbench .layui-btn-pink:hover,
.tokyo-workbench .payButton:hover,
.tokyo-workbench .save-data:hover,
.tokyo-workbench .save-config:hover,
.tokyo-workbench .send-captcha:hover,
.tokyo-auth-submit:hover,
.tokyo-auth-workbench .btn-gradient:hover {
    filter: saturate(1.08) brightness(1.02);
    box-shadow: 0 16px 28px rgba(217, 111, 61, 0.24);
}

.tokyo-workbench .button-click.checked,
.tokyo-workbench .business-group.checked,
.tokyo-workbench .cash-wallet-btn.checked,
.tokyo-workbench .btn-pay.checked,
.tokyo-workbench .optional-card.checked {
    border-color: rgba(217, 111, 61, 0.34) !important;
    background:
        linear-gradient(135deg, rgba(217, 111, 61, 0.15), rgba(36, 127, 114, 0.1)),
        #fffaf2 !important;
    color: #8f4326 !important;
    box-shadow: 0 10px 22px rgba(217, 111, 61, 0.12);
}

.tokyo-workbench .bootstrap-table .table thead th,
.tokyo-workbench .layui-table thead tr {
    background:
        linear-gradient(90deg, rgba(217, 111, 61, 0.1), rgba(36, 127, 114, 0.08)),
        rgba(255, 251, 244, 0.94) !important;
}

.tokyo-workbench .bootstrap-table .table tbody tr:hover,
.tokyo-workbench .layui-table tbody tr:hover {
    background: rgba(217, 111, 61, 0.06) !important;
}

.tokyo-workbench .pagination > .active > a,
.tokyo-workbench .pagination > .active > span,
.tokyo-workbench .layui-laypage .layui-laypage-curr .layui-laypage-em {
    background: linear-gradient(135deg, var(--tokyo-workbench-accent), var(--tokyo-workbench-teal)) !important;
    border-color: transparent !important;
}

.tokyo-recharge-welfare-head i,
.tokyo-auth-links a,
.tokyo-auth-kicker,
.tokyo-auth-card-head span,
.tokyo-workbench-kicker {
    color: var(--tokyo-workbench-accent);
}

.tokyo-recharge-welfare-head i {
    background:
        linear-gradient(135deg, rgba(217, 111, 61, 0.15), rgba(36, 127, 114, 0.12)),
        #fffaf2;
}

.tokyo-auth-brand-panel {
    background:
        radial-gradient(circle at 18% 16%, rgba(217, 111, 61, 0.18), transparent 36%),
        radial-gradient(circle at 92% 10%, rgba(36, 127, 114, 0.16), transparent 34%),
        linear-gradient(160deg, rgba(255, 251, 244, 0.96), rgba(244, 252, 248, 0.9));
}

.tokyo-auth-links a {
    border-color: rgba(217, 111, 61, 0.18);
    background: rgba(255, 250, 242, 0.86);
}

.tokyo-auth-links a:hover {
    border-color: rgba(36, 127, 114, 0.24);
    color: var(--tokyo-workbench-teal);
    background: rgba(244, 252, 248, 0.95);
}

/* Keep recharge payment choices compact on phones; desktop sizing stays unchanged. */
@media (max-width: 767px) {
    .tokyo-workbench .tokyo-recharge-pay-list {
        gap: 8px;
    }

    .tokyo-workbench .tokyo-recharge-pay-list .btn-pay {
        box-sizing: border-box;
        min-height: 38px;
        padding: 6px 11px;
        margin: 0;
        gap: 6px;
        font-size: 13px;
    }

    .tokyo-workbench .tokyo-recharge-pay-list .btn-pay .pay-icon {
        width: 20px;
        height: 20px;
        margin-top: 0;
    }
}
/* TokyoGrid4 merchant tables — final cascade for 1.2.93 */
.tokyo-workbench .franchise-category-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto 76px;
    align-items: end;
    gap: 7px;
    margin: 0 0 10px;
}
.tokyo-workbench .franchise-category-toolbar label {
    display: grid;
    gap: 4px;
    min-width: 0;
    color: var(--tokyo-workbench-muted);
    font-size: 10px;
    font-weight: 700;
}
.tokyo-workbench .franchise-category-toolbar label.franchise-page-size { min-width: 76px; }
.tokyo-workbench .franchise-category-toolbar input,
.tokyo-workbench .franchise-category-toolbar select {
    width: 100%;
    min-height: 34px;
    box-sizing: border-box;
    border: 1px solid rgba(105, 78, 48, 0.17);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--tokyo-workbench-ink);
    padding: 6px 8px;
    font: inherit;
}
.tokyo-workbench .franchise-category-toolbar .layui-btn {
    min-height: 34px;
    margin: 0;
    padding-inline: 9px;
    border-radius: 9px;
    white-space: nowrap;
}
.tokyo-workbench .franchise-strategy-table--category .franchise-table-head,
.tokyo-workbench .franchise-strategy-table--category .franchise-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(82px, .8fr) minmax(118px, 1fr) 52px;
}
.tokyo-workbench .franchise-strategy-table--commodity .franchise-table-head,
.tokyo-workbench .franchise-strategy-table--commodity .franchise-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(94px, .8fr) minmax(74px, .65fr) minmax(126px, 1fr) 52px;
}
.tokyo-workbench .franchise-strategy-table .franchise-row,
.tokyo-workbench .franchise-member-table .franchise-row--member {
    min-width: 0;
    min-height: 58px;
    padding: 9px 11px;
    box-sizing: border-box;
}
.tokyo-workbench .franchise-strategy-table .franchise-row__amount {
    display: grid;
    grid-template-columns: auto minmax(64px, 1fr);
    align-items: center;
    gap: 5px;
}
.tokyo-workbench .franchise-strategy-table .franchise-row__amount .franchise-inline {
    width: 100%;
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 9px;
}
.tokyo-workbench .franchise-strategy-table .franchise-row__amount small { grid-column: 1 / -1; }
.tokyo-workbench .franchise-strategy-table .franchise-row__toggle { min-width: 0; justify-content: flex-start; font-size: 10px; }
.tokyo-workbench .franchise-strategy-table .layui-btn { width: 100%; min-height: 34px; margin: 0; padding-inline: 7px; border-radius: 9px; font-size: 10px; }
.tokyo-workbench .franchise-member-table .franchise-table-head,
.tokyo-workbench .franchise-member-table .franchise-row--member {
    grid-template-columns: minmax(0, 1.5fr) minmax(80px, .65fr) minmax(82px, .65fr) minmax(142px, auto);
}
.tokyo-workbench .franchise-member-table .franchise-row--member { min-height: 64px; }
.tokyo-workbench .franchise-member-table .franchise-member-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tokyo-workbench .franchise-member-table .franchise-member-actions .layui-btn { min-height: 34px; margin: 0; border-radius: 9px; font-size: 10px; }
.tokyo-workbench .franchise-table-empty { min-width: 0; grid-column: 1 / -1; }

@media (max-width: 760px) {
    .tokyo-workbench .franchise-catalog-grid { grid-template-columns: 1fr; }
    .tokyo-workbench .franchise-category-toolbar { grid-template-columns: 1fr 1fr; }
    .tokyo-workbench .franchise-category-toolbar label:first-child { grid-column: 1 / -1; }
    .tokyo-workbench .franchise-category-toolbar .layui-btn { width: 100%; }
}
@media (max-width: 600px) {
    .tokyo-workbench .franchise-strategy-table { overflow: visible; border: 0; background: transparent; }
    .tokyo-workbench .franchise-strategy-table .franchise-table-head,
    .tokyo-workbench .franchise-member-table .franchise-table-head { display: none; }
    .tokyo-workbench .franchise-strategy-table .franchise-row,
    .tokyo-workbench .franchise-member-table .franchise-row--member {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 0;
        margin-bottom: 8px;
        padding: 13px;
        border: 1px solid rgba(105, 78, 48, 0.12);
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.7);
    }
    .tokyo-workbench .franchise-strategy-table .franchise-category-identity,
    .tokyo-workbench .franchise-strategy-table .franchise-product-identity,
    .tokyo-workbench .franchise-member-table .franchise-member-identity { grid-column: 1 / -1; }
    .tokyo-workbench .franchise-strategy-table .franchise-row > [data-label]::before,
    .tokyo-workbench .franchise-member-table .franchise-row--member > [data-label]::before {
        display: block;
        margin-bottom: 4px;
        color: var(--tokyo-workbench-muted);
        content: attr(data-label);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: .04em;
    }
    .tokyo-workbench .franchise-strategy-table .franchise-row__toggle { justify-self: end; }
    .tokyo-workbench .franchise-strategy-table .franchise-row__amount,
    .tokyo-workbench .franchise-strategy-table .franchise-row > .layui-btn,
    .tokyo-workbench .franchise-member-table .franchise-member-actions { grid-column: 1 / -1; }
    .tokyo-workbench .franchise-strategy-table .franchise-row > .layui-btn { min-height: 40px; }
    .tokyo-workbench .franchise-member-table .franchise-row__balance { grid-column: 1; }
    .tokyo-workbench .franchise-member-table .franchise-member-status { justify-self: end; }
    .tokyo-workbench .franchise-member-table .franchise-member-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 3px; }
    .tokyo-workbench .franchise-member-table .franchise-member-actions .layui-btn { min-height: 40px; }
}
@media (max-width: 360px) {
    .tokyo-workbench .franchise-member-table .franchise-member-actions { grid-template-columns: 1fr; }
}
/* 1.2.93 catalog readability: each strategy surface gets the full console width. */
.tokyo-workbench .franchise-catalog-grid { grid-template-columns: minmax(0, 1fr); }
.tokyo-workbench .franchise-strategy-pane { min-width: 0; }
@media (max-width: 760px) { .tokyo-workbench .franchise-catalog-grid { grid-template-columns: minmax(0, 1fr); } }
/* Keep the two member actions in separate touch targets on narrow cards. */
.tokyo-workbench .franchise-member-table .franchise-member-actions .franchise-member-toggle {
  grid-column: 1;
  grid-row: 1;
  margin-top: 0;
}
.tokyo-workbench .franchise-member-table .franchise-member-actions .franchise-member-balance {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0;
}
@media (max-width: 360px) {
  .tokyo-workbench .franchise-member-table .franchise-member-actions .franchise-member-toggle {
    grid-column: 1;
    grid-row: 1;
  }
  .tokyo-workbench .franchise-member-table .franchise-member-actions .franchise-member-balance {
    grid-column: 1;
    grid-row: 2;
  }
}

/* Merchant console tables keep one row per record at every viewport.
   The bounded region scrolls horizontally; cells never become stacked cards. */
.tokyo-workbench .franchise-console-list { min-width: 0; max-width: 100%; }
.tokyo-workbench .franchise-table-scroll-hint {
    display: none;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: var(--tokyo-workbench-muted);
    font-size: 11px;
    line-height: 1.5;
}
.tokyo-workbench .franchise-table-scroll-hint > span { color: var(--tokyo-workbench-teal); font-size: 16px; }
.tokyo-workbench .franchise-table-scroll:focus-visible { outline: 3px solid rgba(36, 127, 114, .28); outline-offset: 3px; }
.tokyo-workbench .franchise-table-scroll {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(105, 78, 48, .16);
    border-radius: 13px;
    background: rgba(255, 255, 255, .62);
    -webkit-overflow-scrolling: touch;
}
.tokyo-workbench table.franchise-real-table {
    display: table !important;
    width: 100%;
    min-width: 760px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--tokyo-workbench-ink);
}
.tokyo-workbench table.franchise-strategy-table--category { min-width: 600px; }
.tokyo-workbench table.franchise-strategy-table--commodity { min-width: 1100px; }
.tokyo-workbench table.franchise-member-table { min-width: 760px; }
.tokyo-workbench table.franchise-member-table th:first-child { width: 40%; }
.tokyo-workbench table.franchise-member-table th:last-child { width: 24%; }
.tokyo-workbench table.franchise-real-table thead { display: table-header-group !important; }
.tokyo-workbench table.franchise-real-table tbody { display: table-row-group !important; }
.tokyo-workbench table.franchise-real-table tr,
.tokyo-workbench table.franchise-real-table tr.franchise-row,
.tokyo-workbench table.franchise-real-table tr.franchise-table-head {
    display: table-row !important;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.tokyo-workbench table.franchise-real-table th,
.tokyo-workbench table.franchise-real-table td {
    display: table-cell !important;
    box-sizing: border-box;
    height: 58px;
    padding: 10px 12px;
    vertical-align: middle;
    border-right: 1px solid rgba(105, 78, 48, .11);
    border-bottom: 1px solid rgba(105, 78, 48, .11);
    text-align: left;
    white-space: nowrap;
}
.tokyo-workbench table.franchise-real-table tr.franchise-row > td[data-label]::before {
    display: none !important;
    content: none !important;
}
.tokyo-workbench table.franchise-real-table td.franchise-row__name {
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tokyo-workbench table.franchise-real-table th:last-child,
.tokyo-workbench table.franchise-real-table td:last-child { border-right: 0; }
.tokyo-workbench table.franchise-real-table tbody tr:last-child td { border-bottom: 0; }
.tokyo-workbench table.franchise-real-table th {
    height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
    background: rgba(245, 239, 230, .78);
    color: var(--tokyo-workbench-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
}
.tokyo-workbench table.franchise-real-table tbody tr.franchise-row:hover td {
    background: rgba(247, 251, 247, .82);
}
.tokyo-workbench table.franchise-real-table td:first-child,
.tokyo-workbench table.franchise-real-table th:first-child { padding-left: 15px; }
.tokyo-workbench table.franchise-real-table td:last-child,
.tokyo-workbench table.franchise-real-table th:last-child { padding-right: 15px; }
.tokyo-workbench table.franchise-real-table .franchise-category-identity,
.tokyo-workbench table.franchise-real-table .franchise-product-identity,
.tokyo-workbench table.franchise-real-table .franchise-member-identity {
    overflow: hidden;
    text-overflow: ellipsis;
}
.tokyo-workbench table.franchise-real-table .franchise-row__name {
    display: inline-block;
    max-width: 64%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}
.tokyo-workbench table.franchise-real-table .franchise-cell-meta {
    display: inline-block;
    max-width: 34%;
    margin-left: 7px;
    overflow: hidden;
    color: var(--tokyo-workbench-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}
.tokyo-workbench table.franchise-real-table .franchise-row__toggle,
.tokyo-workbench table.franchise-real-table .franchise-row__amount {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    white-space: nowrap;
}
.tokyo-workbench table.franchise-real-table .franchise-row__amount .franchise-inline {
    width: 92px;
    min-height: 34px;
    box-sizing: border-box;
    padding: 6px 8px;
}
.tokyo-workbench table.franchise-real-table .franchise-product-price,
.tokyo-workbench table.franchise-real-table .franchise-row__balance {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    white-space: nowrap;
}
.tokyo-workbench table.franchise-real-table .franchise-product-sale { color: var(--tokyo-workbench-teal); }
.tokyo-workbench table.franchise-real-table .franchise-member-status { display: table-cell !important; }
.tokyo-workbench table.franchise-real-table .franchise-member-owner {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    margin-left: 6px;
    padding: 1px 6px;
    border: 1px solid rgba(36, 127, 114, .22);
    border-radius: 999px;
    color: var(--tokyo-workbench-teal);
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}
.tokyo-workbench table.franchise-real-table .franchise-member-owner-lock {
    color: var(--tokyo-workbench-muted);
    font-size: 10px;
    white-space: nowrap;
}
.tokyo-workbench table.franchise-real-table .franchise-member-status i {
    display: inline-block;
    vertical-align: middle;
}
.tokyo-workbench table.franchise-real-table .franchise-member-actions {
    display: table-cell !important;
    margin: 0;
    white-space: nowrap;
}
.tokyo-workbench table.franchise-real-table .franchise-member-action-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
}
.tokyo-workbench table.franchise-real-table .franchise-member-actions .layui-btn,
.tokyo-workbench table.franchise-real-table td > .layui-btn {
    min-width: 64px;
    min-height: 34px;
    margin: 0;
    border-radius: 8px;
    white-space: nowrap;
}
.tokyo-workbench table.franchise-real-table .franchise-table-empty td {
    height: 80px;
    color: var(--tokyo-workbench-muted);
    text-align: center;
    white-space: normal;
}

@media (max-width: 600px) {
    .tokyo-workbench .franchise-table-scroll-hint { display: flex; }
    .tokyo-workbench table.franchise-real-table .franchise-table-empty td { text-align: left; }
    .tokyo-workbench table.franchise-member-table th:first-child { width: 200px; }
    .tokyo-workbench table.franchise-real-table td .layui-btn,
    .tokyo-workbench table.franchise-real-table .franchise-row__amount .franchise-inline { min-height: 40px; }
}

/* The pricing table has more columns than a narrow workbench can show at
   once. Keep the identity and save action available while the middle price
   columns scroll, so a row never loses its context or primary action. */
@media (min-width: 601px) {
    .tokyo-workbench table.franchise-strategy-table--commodity { overflow: visible !important; }
    .tokyo-workbench table.franchise-strategy-table--commodity th:first-child,
    .tokyo-workbench table.franchise-strategy-table--commodity td:first-child {
        position: sticky;
        left: 0;
        z-index: 3;
        width: 220px;
        min-width: 220px;
                overflow: visible !important;
        background: rgba(255, 255, 255, .96);
        box-shadow: 8px 0 12px -12px rgba(72, 50, 28, .38);
    }
    .tokyo-workbench table.franchise-strategy-table--commodity th:last-child,
    .tokyo-workbench table.franchise-strategy-table--commodity td:last-child {
        position: sticky;
        right: 0;
        z-index: 3;
        width: 118px;
        min-width: 118px;
        background: rgba(255, 255, 255, .96);
        box-shadow: -8px 0 12px -12px rgba(72, 50, 28, .38);
    }
    .tokyo-workbench table.franchise-strategy-table--commodity thead th:first-child,
    .tokyo-workbench table.franchise-strategy-table--commodity thead th:last-child {
        z-index: 4;
        background: rgba(245, 239, 230, .98);
    }
    .tokyo-workbench table.franchise-strategy-table--commodity tbody tr.franchise-row:hover td:first-child,
    .tokyo-workbench table.franchise-strategy-table--commodity tbody tr.franchise-row:hover td:last-child {
        background: rgba(247, 251, 247, .98);
    }
}

@media (max-width: 600px) {
    .tokyo-workbench table.franchise-strategy-table--commodity th:first-child,
    .tokyo-workbench table.franchise-strategy-table--commodity td:first-child,
    .tokyo-workbench table.franchise-strategy-table--commodity th:last-child,
    .tokyo-workbench table.franchise-strategy-table--commodity td:last-child {
        position: static;
        width: auto;
        min-width: 0;
        box-shadow: none;
        background: transparent;
    }
}

/* The merchant console already owns its mobile content gutter. Avoid
   stacking the legacy panel padding around that gutter and wallet cards. */
@media (max-width: 767px) {
    .tokyo-workbench .fly-panel-user:has(> .content-body.franchise-console) {
        padding-left: 0;
        padding-right: 0;
    }
    .tokyo-workbench .fly-panel-user > .content-body.franchise-console {
        padding-left: 8px;
        padding-right: 8px;
    }
}
@media (max-width: 680px) {
    .tokyo-workbench .franchise-console .franchise-wallet-card .franchise-chain-address-card {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* 1.4.7 — direct root payment for opening a managed store. */
.tokyo-workbench .franchise-purchase-route {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 0 0 22px;
    margin: 0;
    border-bottom: 1px solid var(--tokyo-workbench-line);
    list-style: none;
}
.tokyo-workbench .franchise-purchase-route li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tokyo-workbench .franchise-purchase-route li > span { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 10px; color: var(--tokyo-workbench-accent); background: var(--tokyo-workbench-accent-soft); font-size: 11px; font-weight: 800; }
.tokyo-workbench .franchise-purchase-route strong { color: var(--tokyo-workbench-muted); font-size: 12px; line-height: 1.5; font-weight: 600; }
.tokyo-workbench .franchise-purchase .tokyo-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tokyo-workbench .franchise-purchase .franchise-plan { min-height: 256px; gap: 0; padding: 22px 18px 18px; font-family: inherit; line-height: 1.5; }
.tokyo-workbench .franchise-purchase .franchise-plan-top { margin-bottom: 28px; }
.tokyo-workbench .franchise-purchase .franchise-plan-top strong { overflow-wrap: anywhere; }
.tokyo-workbench .franchise-purchase .franchise-plan-check { flex: 0 0 24px; }
.tokyo-workbench .franchise-purchase .franchise-plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: clamp(26px, 2.5vw, 34px); letter-spacing: -.055em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tokyo-workbench .franchise-purchase .franchise-plan-price small { font-size: 11px; font-weight: 700; letter-spacing: .035em; color: var(--tokyo-workbench-muted); }
.tokyo-workbench .franchise-plan-pay-price { display: block; margin-top: 9px; color: var(--tokyo-workbench-muted); font-size: 12px; }
.tokyo-workbench .franchise-plan-pay-price strong { font-weight: 700; color: var(--tokyo-workbench-ink); font-variant-numeric: tabular-nums; }
.tokyo-workbench .franchise-plan-benefits { display: grid; gap: 10px; margin: 24px 0 14px; }
.tokyo-workbench .franchise-purchase .franchise-plan-detail { align-items: flex-start; font-size: 12px; }
.tokyo-workbench .franchise-purchase .franchise-plan-detail em { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.tokyo-workbench .franchise-plan-footnote { margin: 14px 0 0; color: var(--tokyo-workbench-muted); font-size: 12px; line-height: 1.8; }
.tokyo-workbench .franchise-purchase .franchise-plan:disabled { cursor: not-allowed; opacity: .65; transform: none; box-shadow: none; }
.tokyo-workbench .franchise-plan-unavailable { min-height: 34px; color: var(--tokyo-workbench-muted); font-size: 24px; font-weight: 750; }
.tokyo-workbench .franchise-purchase-payment,
.tokyo-workbench .franchise-purchase-order { min-width: 0; padding: 24px; border: 1px solid var(--tokyo-workbench-line-strong); border-radius: 22px; background: rgba(255, 255, 255, .72); }
.tokyo-workbench .franchise-purchase-payment .franchise-section-heading h2,
.tokyo-workbench .franchise-order-heading h2 { margin: 6px 0 0; color: var(--tokyo-workbench-ink); font-size: 20px; line-height: 1.4; letter-spacing: -.035em; }
.tokyo-workbench .franchise-purchase-pay-list { margin: 20px 0; }
/* Payment size, pill shape, icon and checked state are shared with the recharge center. */
.tokyo-workbench .franchise-purchase-pay,
.tokyo-workbench .franchise-deposit-pay { box-sizing: content-box; max-width: 100%; font-family: inherit; font-size: 14px; line-height: 22px; text-align: left; cursor: pointer; }
.tokyo-workbench .franchise-purchase-pay span,
.tokyo-workbench .franchise-deposit-pay span { min-width: 0; overflow-wrap: anywhere; }
.tokyo-workbench .franchise-purchase-pay .pay-icon,
.tokyo-workbench .franchise-deposit-pay .pay-icon { flex: 0 0 auto; }
.tokyo-workbench .franchise-purchase-pay:focus-visible,
.tokyo-workbench .franchise-deposit-pay:focus-visible,
.tokyo-workbench .franchise-purchase .layui-btn:focus-visible { outline: 3px solid rgba(217, 111, 61, .35); outline-offset: 3px; }
.tokyo-workbench .franchise-purchase-pay:disabled { cursor: wait; }
.tokyo-workbench .franchise-deposit-methods { display: grid; min-width: 0; gap: 9px; }
.tokyo-workbench .franchise-deposit-methods > span { color: var(--tokyo-workbench-muted); font-size: 12px; font-weight: 650; }
.tokyo-workbench .franchise-deposit-pay-list { min-width: 0; gap: 8px; }
.tokyo-workbench .franchise-deposit-pay { box-sizing: border-box; min-width: 0; min-height: 46px; margin: 0; padding: 10px 14px; }
.tokyo-workbench .franchise-deposit-pay-status { color: var(--tokyo-workbench-muted); font-size: 12px; line-height: 1.6; }
.tokyo-workbench .franchise-purchase-empty { padding: 16px; border: 1px dashed var(--tokyo-workbench-line-strong); border-radius: 12px; color: var(--tokyo-workbench-muted); line-height: 1.7; }
.tokyo-workbench .franchise-purchase-checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .75fr); gap: 24px; padding: 20px 0 16px; border-top: 1px solid var(--tokyo-workbench-line); }
.tokyo-workbench .franchise-purchase .franchise-selection-summary { align-content: start; gap: 6px; }
.tokyo-workbench .franchise-purchase .franchise-selection-summary strong { line-height: 1.6; overflow-wrap: anywhere; }
.tokyo-workbench .franchise-purchase .franchise-selection-summary small { color: var(--tokyo-workbench-muted); font-size: 12px; }
.tokyo-workbench .franchise-purchase-totals { display: grid; gap: 8px; margin: 0; }
.tokyo-workbench .franchise-purchase-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.tokyo-workbench .franchise-purchase-totals dt { color: var(--tokyo-workbench-muted); font-weight: 400; font-size: 12px; }
.tokyo-workbench .franchise-purchase-totals dd { margin: 0; color: var(--tokyo-workbench-ink); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tokyo-workbench .franchise-purchase-total { padding-top: 10px; margin-top: 3px; border-top: 1px solid var(--tokyo-workbench-line); }
.tokyo-workbench .franchise-purchase-total dd { color: var(--tokyo-workbench-accent); font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.tokyo-workbench .franchise-purchase-footer { padding: 16px 0 0; border-top: 1px solid var(--tokyo-workbench-line); }
.tokyo-workbench .franchise-purchase-footer > p { max-width: 390px; margin: 0; font-size: 12px; color: var(--tokyo-workbench-muted); line-height: 1.8; }
.tokyo-workbench .franchise-purchase-submit { flex-shrink: 0; min-height: 46px; }
.tokyo-workbench .franchise-purchase-submit span { margin: 0; font-size: 14px; }
.tokyo-workbench .franchise-purchase-submit > span + span { margin-left: 12px; font-size: 18px; }
.tokyo-workbench .franchise-purchase-submit:disabled { opacity: .5; cursor: not-allowed; }
.tokyo-workbench .franchise-purchase-submit.is-loading { cursor: wait; }
.tokyo-workbench .franchise-purchase-order { background: linear-gradient(130deg, rgba(247, 250, 247, .95), rgba(255, 250, 240, .85)); }
.tokyo-workbench .franchise-order-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.tokyo-workbench .franchise-order-status { border-radius: 8px; padding: 5px 9px; background: var(--tokyo-workbench-accent-soft); color: var(--tokyo-workbench-accent); font-size: 12px; }
.tokyo-workbench .franchise-order-summary { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 18px 0 8px; color: var(--tokyo-workbench-ink); font-size: 14px; }
.tokyo-workbench .franchise-order-number { margin: 0 0 16px; color: var(--tokyo-workbench-muted); font-size: 12px; overflow-wrap: anywhere; }
.tokyo-workbench .franchise-order-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.tokyo-workbench .franchise-order-actions .layui-btn { margin: 0; min-height: 42px; }
.tokyo-workbench .franchise-order-actions > span { color: var(--tokyo-workbench-muted); font-size: 12px; line-height: 1.7; }
.tokyo-workbench .franchise-purchase [hidden] { display: none !important; }
@media (max-width: 1100px) and (min-width: 768px) {
    .tokyo-workbench .franchise-purchase .franchise-plan { padding: 20px 12px 16px; }
    .tokyo-workbench .franchise-purchase .franchise-plan-price { font-size: 26px; }
    .tokyo-workbench .franchise-purchase .franchise-plan-top strong { font-size: 15px; }
}
@media (max-width: 767px) {
    .tokyo-workbench .fly-panel-user.franchise-purchase-workspace { padding-left: 0; padding-right: 0; }
    .tokyo-workbench .franchise-purchase-workspace > .content-body.franchise-purchase { padding-left: 8px; padding-right: 8px; gap: 20px; }
    .tokyo-workbench .franchise-purchase .tokyo-plan-grid { grid-template-columns: 1fr; gap: 12px; }
    .tokyo-workbench .franchise-purchase .franchise-plan { min-height: 0; padding: 20px; }
    .tokyo-workbench .franchise-purchase .franchise-plan-top { margin-bottom: 20px; }
    .tokyo-workbench .franchise-purchase .franchise-plan-price { font-size: 32px; }
    .tokyo-workbench .franchise-purchase-route { gap: 8px; padding-bottom: 18px; }
    .tokyo-workbench .franchise-purchase-route li { flex-direction: column; align-items: flex-start; gap: 8px; }
    .tokyo-workbench .franchise-purchase-route strong { font-size: 11px; }
    .tokyo-workbench .franchise-purchase-payment,
    .tokyo-workbench .franchise-purchase-order { padding: 18px 14px; border-radius: 18px; }
    .tokyo-workbench .franchise-purchase-checkout { grid-template-columns: 1fr; gap: 20px; }
    .tokyo-workbench .franchise-purchase-footer { flex-direction: column; align-items: stretch; gap: 16px; }
    .tokyo-workbench .franchise-purchase-submit { width: 100%; white-space: normal; height: auto; padding-top: 10px; padding-bottom: 10px; }
    .tokyo-workbench .franchise-order-actions > span { flex-basis: 100%; }
    .tokyo-workbench .franchise-order-actions .layui-btn { flex: 1 1 0; white-space: normal; height: auto; }
}

/* 1.4.8 — a consistent merchant guide entrance before and after opening a store. */
.tokyo-workbench .franchise-doc-entry {
    display: flex;
    align-items: center;
    align-self: center;
    flex: 0 1 240px;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    padding: 16px;
    border: 1px solid var(--tokyo-workbench-line-strong);
    border-radius: 18px;
    color: var(--tokyo-workbench-ink);
    background: rgba(255, 255, 255, .82);
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease;
}
.tokyo-workbench .franchise-doc-entry-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 40px; border-radius: 12px; color: var(--tokyo-workbench-teal); background: rgba(36, 127, 114, .09); }
.tokyo-workbench .franchise-doc-entry-icon svg { width: 22px; height: 22px; }
.tokyo-workbench .franchise-doc-entry-copy { display: grid; gap: 5px; min-width: 0; }
.tokyo-workbench .franchise-doc-entry-copy strong { font-size: 14px; line-height: 1.5; }
.tokyo-workbench .franchise-doc-entry-copy small { color: var(--tokyo-workbench-muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.tokyo-workbench .franchise-doc-entry-arrow { margin-left: auto; color: var(--tokyo-workbench-teal); font-size: 20px; }
.tokyo-workbench .franchise-doc-link { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; margin-top: 14px; padding: 8px 14px; border: 1px solid var(--tokyo-workbench-line-strong); border-radius: 999px; color: var(--tokyo-workbench-ink); background: rgba(255, 255, 255, .82); font-size: 12px; line-height: 1.5; text-decoration: none; transition: border-color .18s ease, background .18s ease; }
.tokyo-workbench .franchise-doc-link svg { width: 18px; height: 18px; color: var(--tokyo-workbench-teal); }
.tokyo-workbench .franchise-doc-link > span:last-child { margin-left: 4px; color: var(--tokyo-workbench-teal); }
.tokyo-workbench .franchise-doc-entry:hover,
.tokyo-workbench .franchise-doc-link:hover { border-color: var(--tokyo-workbench-teal); background: #fff; }
.tokyo-workbench .franchise-doc-entry:focus-visible,
.tokyo-workbench .franchise-doc-link:focus-visible { outline: 3px solid rgba(36, 127, 114, .3); outline-offset: 3px; }
@media (max-width: 1100px) {
    .tokyo-workbench .franchise-purchase-head { flex-wrap: wrap; }
    .tokyo-workbench .franchise-doc-entry { flex-basis: auto; align-self: flex-start; }
}
@media (max-width: 767px) {
    .tokyo-workbench .franchise-doc-entry { width: 100%; box-sizing: border-box; padding: 13px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .tokyo-workbench .franchise-doc-entry,
    .tokyo-workbench .franchise-doc-link { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
    .tokyo-workbench .franchise-purchase-pay,
    .tokyo-workbench .franchise-deposit-pay { transition: none; }
    .tokyo-workbench .franchise-purchase .franchise-plan { transform: none; transition: none; }
}

/* Merchant-owned payment profiles share a compact, bounded editor and table. */
.franchise-other-payments { grid-column: 1 / -1; min-width: 0; color: var(--tokyo-workbench-ink, #302b25); }
.franchise-other-payments [hidden] { display: none !important; }
.franchise-other-payments .franchise-other-head { align-items: center; gap: 16px; }
.franchise-other-payments .franchise-other-head > button { flex-shrink: 0; margin: 0; }
.franchise-other-payments .franchise-other-list-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.franchise-other-payments .franchise-other-count { font-size: 12px; color: var(--tokyo-workbench-muted, #756c60); }
.franchise-other-payments .franchise-other-refresh { border: 1px solid var(--tokyo-workbench-line-strong, #d6ccc0); border-radius: 9px; min-height: 34px; padding: 5px 12px; background: #fff; color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.franchise-other-payments .franchise-other-table-scroll { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--tokyo-workbench-line-strong, #d6ccc0); border-radius: 13px; -webkit-overflow-scrolling: touch; }
.franchise-other-payments .franchise-other-table { width: 100%; min-width: 610px; margin: 0; table-layout: fixed; border-collapse: collapse; border-spacing: 0; background: rgba(255, 255, 255, .82); font-size: 12px; line-height: 1.65; }
.franchise-other-payments .franchise-other-table th,
.franchise-other-payments .franchise-other-table td { padding: 12px 13px; border-right: 1px solid var(--tokyo-workbench-line-strong, #d6ccc0); border-bottom: 1px solid var(--tokyo-workbench-line-strong, #d6ccc0); vertical-align: middle; text-align: left; overflow-wrap: anywhere; }
.franchise-other-payments .franchise-other-table th { color: var(--tokyo-workbench-muted, #756c60); background: var(--tokyo-workbench-accent-soft, #fff4e8); font-size: 11px; font-weight: 700; }
.franchise-other-payments .franchise-other-table th:nth-child(1) { width: 26%; }
.franchise-other-payments .franchise-other-table th:nth-child(2) { width: 27%; }
.franchise-other-payments .franchise-other-table th:nth-child(3) { width: 18%; }
.franchise-other-payments .franchise-other-table th:nth-child(4) { width: 29%; }
.franchise-other-payments .franchise-other-table tr > :last-child { border-right: 0; }
.franchise-other-payments .franchise-other-table tbody tr:last-child td { border-bottom: 0; }
.franchise-other-payments .franchise-other-table td > strong { display: block; color: var(--tokyo-workbench-ink, #302b25); font-weight: 700; }
.franchise-other-payments .franchise-other-table td > small { display: block; margin-top: 3px; color: var(--tokyo-workbench-muted, #756c60); font-size: 10px; }
.franchise-other-payments .franchise-other-table tbody tr:hover { background: rgba(248, 245, 239, .72); }
.franchise-other-payments .franchise-other-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.franchise-other-payments .franchise-other-status::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.franchise-other-payments .franchise-other-status.is-on { color: #247a60; }
.franchise-other-payments .franchise-other-status.is-off { color: #9a5441; }
.franchise-other-payments .franchise-other-row-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
.franchise-other-payments .franchise-other-row-actions .layui-btn { margin: 0 !important; padding: 5px 10px; min-height: 34px; height: auto; line-height: 1.6; font-size: 11px; white-space: nowrap; }
.franchise-other-payments .franchise-other-empty { padding: 26px 16px !important; text-align: center !important; color: var(--tokyo-workbench-muted, #756c60); white-space: normal; }
.franchise-other-payments .franchise-other-scroll-hint { display: none; color: var(--tokyo-workbench-muted, #756c60); font-size: 10px; margin-top: 8px; }
.franchise-other-payments .franchise-other-editor { min-width: 0; padding-top: 4px; }
.franchise-other-payments .franchise-other-editor-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-bottom: 17px; margin-bottom: 20px; border-bottom: 1px solid var(--tokyo-workbench-line, #e9e2d9); }
.franchise-other-payments .franchise-other-editor-heading h3 { margin: 0; color: var(--tokyo-workbench-ink, #302b25); font-size: 16px; font-weight: 700; }
.franchise-other-payments .franchise-other-editor-heading > span { color: var(--tokyo-workbench-muted, #756c60); font-size: 11px; }
.franchise-other-payments .franchise-other-basics,
.franchise-other-payments .franchise-other-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.franchise-other-payments .franchise-other-field { display: grid; align-content: start; gap: 8px; min-width: 0; }
.franchise-other-payments .franchise-other-field--wide { grid-column: 1 / -1; }
.franchise-other-payments .franchise-other-field label { display: block; margin: 0; color: var(--tokyo-workbench-ink, #302b25); font-size: 12px; line-height: 1.5; font-weight: 650; overflow-wrap: anywhere; }
.franchise-other-payments .franchise-other-field input,
.franchise-other-payments .franchise-other-field select,
.franchise-other-payments .franchise-other-field textarea { display: block; width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; border: 1px solid var(--tokyo-workbench-line-strong, #d6ccc0); border-radius: 11px; background: rgba(255, 255, 255, .92); padding: 10px 12px; color: inherit; font: inherit; font-size: 13px; line-height: 1.6; }
.franchise-other-payments .franchise-other-field input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; margin: 5px 0; padding: 0; accent-color: var(--tokyo-workbench-teal, #247f72); }
.franchise-other-payments .franchise-other-field textarea { min-height: 120px; resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.franchise-other-payments .franchise-other-field input::placeholder,
.franchise-other-payments .franchise-other-field textarea::placeholder { color: #8a8177; font-weight: 400; }
.franchise-other-payments .franchise-other-field small { font-size: 11px; line-height: 1.65; color: var(--tokyo-workbench-muted, #756c60); overflow-wrap: anywhere; }
.franchise-other-payments .franchise-other-field select:disabled { opacity: .75; background: #f3f0eb; }
.franchise-other-payments .franchise-other-channel-note { display: flex; flex-wrap: wrap; gap: 7px 18px; margin: 20px 0; padding: 13px 15px; background: var(--tokyo-workbench-teal-soft, #eef7f2); border: 1px solid rgba(36, 127, 114, .14); border-radius: 11px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.franchise-other-payments .franchise-other-channel-note span { color: var(--tokyo-workbench-muted, #756c60); }
.franchise-other-payments .franchise-other-channel-note strong { color: var(--tokyo-workbench-teal, #247f72); font-weight: 600; }
.franchise-other-payments .franchise-other-help { grid-column: 1 / -1; margin: 0; padding: 16px; border: 1px dashed var(--tokyo-workbench-line-strong, #d6ccc0); border-radius: 11px; color: var(--tokyo-workbench-muted, #756c60); font-size: 12px; line-height: 1.8; }
.franchise-other-payments .franchise-other-editor-actions { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--tokyo-workbench-line, #e9e2d9); }
.franchise-other-payments .franchise-other-editor-actions .layui-btn { margin: 0; min-height: 42px; }
.franchise-other-payments :is(button, input, select, textarea):disabled { cursor: not-allowed; }
.franchise-other-payments button:disabled { opacity: .5; }
.franchise-other-payments :is(button, input, select, textarea, .franchise-other-table-scroll):focus-visible { outline: 3px solid rgba(36, 127, 114, .28); outline-offset: 3px; }
@media (max-width: 680px) {
    .franchise-other-payments .franchise-other-head { align-items: flex-start; flex-direction: column; gap: 14px; }
    .franchise-other-payments .franchise-other-basics,
    .franchise-other-payments .franchise-other-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .franchise-other-payments .franchise-other-scroll-hint { display: block; }
    .franchise-other-payments .franchise-other-editor-actions { flex-wrap: wrap; }
    .franchise-other-payments .franchise-other-editor-actions .layui-btn { flex: 1 1 auto; white-space: normal; height: auto; }
}
@media (prefers-reduced-motion: reduce) { .franchise-other-payments * { transition: none !important; scroll-behavior: auto !important; } }

/* The merchant module directory is separate from the account navigation.
   Without enhancement the original links remain an ordinary vertical list. */
body.tokyo-workbench:not(.site-mobile):has(.franchise-console.is-navigation-ready) {
    /* hidden on one axis turns the other visible axis into auto, creating a
       non-scrolling body ancestor that captures both sticky navigation bars. */
    overflow-x: clip;
    overflow-y: visible;
}
html:has(> body.tokyo-workbench .franchise-console.is-navigation-ready) { scrollbar-gutter: stable; }
html:has(> body.tokyo-workbench.franchise-module-open) {
    /* Lock the actual document scroller without repositioning the body or
       discarding its scroll offset. The account drawer keeps its own lock. */
    overflow: hidden;
    overscroll-behavior: none;
}
.tokyo-workbench .franchise-console-switcher { display: none; }
.tokyo-workbench .franchise-console-panel {
    scroll-margin-top: calc(var(--franchise-header-height, 0px) + 20px);
}
.tokyo-workbench .franchise-console-panel h2[tabindex="-1"]:focus-visible {
    outline: 2px solid var(--tokyo-workbench-teal, #247f72);
    outline-offset: 5px;
    border-radius: 3px;
}

/* Native dialog lives in the top layer, beyond the blurred workspace shell. */
.franchise-module-dialog {
    position: fixed;
    inset: auto 0 0;
    box-sizing: border-box;
    width: min(520px, calc(100% - 24px));
    max-width: none;
    max-height: min(82vh, calc(100vh - 24px));
    max-height: min(82dvh, calc(100dvh - 24px));
    margin: 0 auto 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(131, 102, 72, .18);
    border-radius: 26px;
    background: #fffaf4;
    color: var(--tokyo-workbench-ink, #302b25);
    font-family: inherit;
    box-shadow: 0 24px 80px rgba(48, 36, 25, .22);
}
.franchise-module-dialog:not([open]) { display: none; }
.franchise-module-dialog[open] {
    display: flex;
    flex-direction: column;
    animation: franchise-module-enter 180ms cubic-bezier(.2, .7, .2, 1) both;
}
.franchise-module-dialog::backdrop { background: rgba(35, 31, 27, .42); }
.franchise-module-dialog .franchise-module-dialog-head {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(131, 102, 72, .12);
    background: linear-gradient(120deg, #fffaf4, #f2f8f3);
}
.franchise-module-dialog .franchise-module-dialog-head > div { min-width: 0; }
.franchise-module-dialog .franchise-module-dialog-head .franchise-card-index,
.franchise-module-dialog .franchise-module-dialog-head small {
    display: block;
    margin-bottom: 5px;
    color: var(--tokyo-workbench-teal, #247f72);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .12em;
    line-height: 1.5;
}
.franchise-module-dialog .franchise-module-dialog-head h2 {
    margin: 0;
    color: inherit;
    font-size: 22px;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.franchise-module-dialog .franchise-module-close {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    padding: 10px;
    border: 1px solid rgba(131, 102, 72, .2);
    border-radius: 14px;
    background: rgba(255, 255, 255, .86);
    color: var(--tokyo-workbench-muted, #756c60);
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
    transition: background 160ms ease, border-color 160ms ease;
}
.franchise-module-dialog .franchise-module-close svg { width: 20px; height: 20px; }
.franchise-module-dialog .franchise-module-close:hover { border-color: #b7b9a9; background: #fff; }
.franchise-module-dialog .franchise-module-directory {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    flex: 1 1 auto;
    align-content: start;
    gap: 5px;
    min-height: 0;
    margin: 0;
    padding: 12px 14px max(16px, env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbbeb0 transparent;
    scroll-padding: 12px;
}
.franchise-module-dialog .franchise-module-directory a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    column-gap: 13px;
    row-gap: 4px;
    box-sizing: border-box;
    min-width: 0;
    min-height: 66px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    color: var(--tokyo-workbench-ink, #302b25);
    text-decoration: none;
    transform: none;
    transition: background 160ms ease, border-color 160ms ease;
}
.franchise-module-dialog .franchise-module-directory a > span {
    display: grid;
    grid-row: span 2;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #f1e9df;
    color: #8c6b4e;
    font-size: 11px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: .03em;
}
.franchise-module-dialog .franchise-module-directory a strong {
    min-width: 0;
    color: inherit;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 650;
    overflow-wrap: anywhere;
}
.franchise-module-dialog .franchise-module-directory a small {
    min-width: 0;
    overflow: visible;
    color: var(--tokyo-workbench-muted, #756c60);
    font-size: 11px;
    line-height: 1.5;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}
.franchise-module-dialog .franchise-module-directory a:hover,
.franchise-module-dialog .franchise-module-directory a:focus-visible {
    border-color: rgba(36, 127, 114, .22);
    background: #f0f6ef;
    transform: none;
}
.franchise-module-dialog .franchise-module-directory a.is-active {
    border-color: rgba(217, 111, 61, .26);
    background: #fff0e3;
    box-shadow: inset 3px 0 #d96f3d;
    transform: none;
}
.franchise-module-dialog .franchise-module-directory a.is-active > span { background: #f8d7bf; color: #944b25; }
.franchise-module-dialog .franchise-module-close:focus-visible,
.franchise-module-dialog .franchise-module-directory a:focus-visible {
    outline: 2px solid var(--tokyo-workbench-teal, #247f72);
    outline-offset: 2px;
}
@keyframes franchise-module-enter {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .tokyo-workbench .fly-panel-user:has(> .franchise-console.is-navigation-ready) { overflow: visible; }
    .tokyo-workbench .franchise-console.is-navigation-ready .franchise-console-shell { display: block; min-width: 0; }
    .tokyo-workbench .franchise-console.is-navigation-ready .franchise-console-panel { min-width: 0; }
    .tokyo-workbench .franchise-console.is-navigation-ready .franchise-console-panels { margin-top: 16px; }
    .tokyo-workbench .franchise-console-head { gap: 14px; }
    .tokyo-workbench .franchise-console-head .tokyo-workbench-page-title { font-size: clamp(24px, 4.5vw, 30px); line-height: 1.2; }
    .tokyo-workbench .franchise-console-head .tokyo-workbench-page-summary { margin-top: 8px; font-size: 12px; line-height: 1.65; }
    .tokyo-workbench .franchise-console-head .tokyo-workbench-page-badges { gap: 7px; }
    .tokyo-workbench .franchise-console.is-navigation-ready .franchise-console-sidebar {
        position: sticky;
        top: calc(var(--franchise-header-height, 0px) + 8px);
        z-index: 30;
        display: block;
        padding: 0;
        border: 0;
        border-radius: 18px;
        background: transparent;
        box-shadow: 0 7px 22px rgba(67, 49, 32, .09);
    }
    .tokyo-workbench .franchise-console.is-navigation-ready .franchise-console-sidebar > .franchise-console-sidebar-head,
    .tokyo-workbench .franchise-console.is-navigation-ready .franchise-console-sidebar > .franchise-console-nav,
    .tokyo-workbench .franchise-console.is-navigation-ready .franchise-console-sidebar > .franchise-console-sidebar-foot { display: none; }
    .tokyo-workbench .franchise-console.is-navigation-ready .franchise-console-switcher {
        display: flex;
        align-items: center;
        gap: 11px;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        min-height: 68px;
        padding: 12px 14px;
        border: 1px solid rgba(131, 102, 72, .2);
        border-radius: 18px;
        background: #fffaf4;
        color: var(--tokyo-workbench-ink, #302b25);
        font: inherit;
        text-align: left;
        cursor: pointer;
        touch-action: manipulation;
        transition: background 160ms ease, border-color 160ms ease;
    }
    .tokyo-workbench .franchise-console-switcher:hover { border-color: rgba(36, 127, 114, .4); background: #fff; }
    .tokyo-workbench .franchise-console-switcher:focus-visible { outline: 2px solid var(--tokyo-workbench-teal, #247f72); outline-offset: 3px; }
    .tokyo-workbench .franchise-switcher-index {
        display: grid;
        flex: 0 0 34px;
        place-items: center;
        width: 34px;
        height: 34px;
        border-radius: 11px;
        background: #fae5d4;
        color: #944b25;
        font-size: 11px;
        font-weight: 750;
        font-variant-numeric: tabular-nums;
    }
    .tokyo-workbench .franchise-switcher-copy { display: grid; flex: 1 1 auto; min-width: 0; gap: 3px; }
    .tokyo-workbench .franchise-switcher-copy small { color: var(--tokyo-workbench-muted, #756c60); font-size: 10px; line-height: 1.35; }
    .tokyo-workbench .franchise-switcher-copy strong { color: inherit; font-size: 14px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
    .tokyo-workbench .franchise-switcher-action {
        display: inline-flex;
        flex: 0 1 auto;
        align-items: center;
        gap: 5px;
        max-width: 36%;
        color: var(--tokyo-workbench-teal, #247f72);
        font-size: 11px;
        font-weight: 650;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }
    .tokyo-workbench .franchise-switcher-action svg { flex: 0 0 16px; width: 16px; height: 16px; }
    .tokyo-workbench .franchise-console.is-navigation-ready .franchise-console-panel {
        scroll-margin-top: calc(var(--franchise-header-height, 0px) + var(--franchise-switcher-height, 68px) + 24px);
    }
    .tokyo-workbench .franchise-console:not(.is-navigation-ready) .franchise-console-nav a { min-height: 48px; }
    .tokyo-workbench .franchise-console:not(.is-navigation-ready) .franchise-console-nav a small { overflow: visible; white-space: normal; }
}
@media (max-width: 600px) {
    .franchise-module-dialog { width: 100%; margin: 0 auto; border-bottom: 0; border-radius: 25px 25px 0 0; }
    .franchise-module-dialog .franchise-module-dialog-head { padding: 20px 18px 16px; }
    .franchise-module-dialog .franchise-module-directory { padding-inline: 10px; }
    .tokyo-workbench .franchise-console-head .tokyo-workbench-page-badges { display: flex; flex-wrap: wrap; width: 100%; }
    .tokyo-workbench .franchise-console-head .tokyo-workbench-pill { min-width: 0; font-size: 11px; }
}
@media (max-width: 360px) {
    .tokyo-workbench .franchise-console.is-navigation-ready .franchise-console-switcher { gap: 9px; padding: 11px; }
    .tokyo-workbench .franchise-switcher-index { flex-basis: 30px; width: 30px; height: 32px; }
    .tokyo-workbench .franchise-switcher-copy strong { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .franchise-module-dialog[open] { animation: none; }
    .franchise-module-dialog .franchise-module-directory a,
    .franchise-module-dialog .franchise-module-close,
    .tokyo-workbench .franchise-console-switcher { transition: none; }
}

/* SMTP keeps native form controls so saved port values stay in sync with JS. */
.tokyo-workbench .franchise-mail-form .franchise-mail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tokyo-workbench .franchise-mail-grid label { display: grid; align-content: start; gap: 8px; min-width: 0; margin: 0; color: var(--tokyo-workbench-muted); font-size: 12px; font-weight: 650; line-height: 1.5; }
.tokyo-workbench .franchise-mail-grid label > span { overflow-wrap: anywhere; }
.tokyo-workbench .franchise-mail-grid .franchise-mail-field--wide { grid-column: 1 / -1; }
.tokyo-workbench .franchise-mail-required { color: var(--tokyo-workbench-accent); font-style: normal; }
.tokyo-workbench .franchise-mail-grid input,
.tokyo-workbench .franchise-mail-grid select[lay-ignore] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid var(--tokyo-workbench-line-strong, #d6ccc0);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, .9);
    color: var(--tokyo-workbench-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.tokyo-workbench .franchise-mail-grid input::placeholder { color: #9a9084; opacity: 1; }
.tokyo-workbench .franchise-mail-grid select[lay-ignore] {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23756c60' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    cursor: pointer;
}
.tokyo-workbench .franchise-mail-grid :is(input,select):focus { border-color: rgba(217, 111, 61, .5); outline: none; box-shadow: 0 0 0 4px rgba(217, 111, 61, .12); }
.tokyo-workbench .franchise-mail-form .franchise-form-actions { align-items: center; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--tokyo-workbench-line); }
.tokyo-workbench .franchise-mail-form #franchise-mail-status { min-width: 0; overflow-wrap: anywhere; line-height: 1.6; }
.tokyo-workbench .franchise-mail-form .franchise-form-actions > span { display: flex; flex-wrap: wrap; gap: 8px; }
.tokyo-workbench .franchise-mail-form .franchise-form-actions .layui-btn { height: auto; min-height: 44px; margin: 0; padding: 10px 16px; font-size: 12px; line-height: 1.5; white-space: normal; }
.tokyo-workbench .franchise-mail-form #franchise-mail-test { border-color: var(--tokyo-workbench-ink) !important; background: var(--tokyo-workbench-ink) !important; color: #fff !important; }
.tokyo-workbench .franchise-mail-form #franchise-mail-disable { border-color: rgba(164, 72, 54, .25) !important; background: rgba(164, 72, 54, .06) !important; color: #a44836 !important; }
.tokyo-workbench .franchise-mail-form .layui-btn:focus-visible { outline: 3px solid rgba(36, 127, 114, .3); outline-offset: 3px; }
.tokyo-workbench .franchise-mail-form [hidden] { display: none !important; }
@media (max-width: 680px) {
    .tokyo-workbench .franchise-mail-form .franchise-mail-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .tokyo-workbench .franchise-mail-grid :is(input,select[lay-ignore]) { font-size: 16px; }
    .tokyo-workbench .franchise-mail-form .franchise-form-actions { align-items: stretch; flex-direction: column; }
    .tokyo-workbench .franchise-mail-form .franchise-form-actions > span { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
    .tokyo-workbench .franchise-mail-form .franchise-form-actions .layui-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .tokyo-workbench .franchise-mail-grid :is(input,select) { transition: none; } }

/* Columns remain native table cells. Pixel widths live on colgroup so a
   drag never collapses a row into the legacy mobile card layout. */
.tokyo-workbench .franchise-table-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; min-width: 0; margin: 0 0 9px; }
.tokyo-workbench .franchise-table-resize-hint { flex: 1 1 220px; color: var(--tokyo-workbench-muted, #756c60); font-size: 11px; line-height: 1.55; }
.tokyo-workbench .franchise-table-reset { flex: 0 0 auto; min-height: 32px; margin: 0; padding: 5px 12px; border: 1px solid var(--tokyo-workbench-line-strong, #d6ccc0); border-radius: 9px; background: rgba(255, 255, 255, .72); color: var(--tokyo-workbench-muted, #756c60); font: inherit; font-size: 11px; line-height: 1.5; cursor: pointer; transition: border-color 160ms ease, background 160ms ease; }
.tokyo-workbench .franchise-table-reset:hover:not(:disabled) { border-color: rgba(36, 127, 114, .45); background: #fff; color: var(--tokyo-workbench-teal, #247f72); }
.tokyo-workbench .franchise-table-reset:disabled { cursor: default; opacity: .45; }
.tokyo-workbench .franchise-table-reset:focus-visible { outline: 3px solid rgba(36, 127, 114, .3); outline-offset: 3px; }
.tokyo-workbench .franchise-console table[data-resizable-table] { max-width: none; table-layout: fixed; }
.tokyo-workbench .franchise-console table[data-resizable-table] th,
.tokyo-workbench .franchise-console table[data-resizable-table] td { width: auto !important; min-width: 0 !important; max-width: none; }
.tokyo-workbench .franchise-console table[data-resizable-table] th { position: relative; height: 44px; padding-right: 27px; overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.tokyo-workbench .franchise-console table[data-resizable-table] td { overflow: hidden; white-space: normal; overflow-wrap: anywhere; }
.tokyo-workbench .franchise-console table[data-resizable-table] td.franchise-row__name { max-width: none; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
.tokyo-workbench .franchise-console table[data-resizable-table] .franchise-row__name:not(td),
.tokyo-workbench .franchise-console table[data-resizable-table] .franchise-cell-meta { display: inline; max-width: none; overflow: visible; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
.tokyo-workbench .franchise-console table[data-resizable-table] .franchise-cell-content { display: block; min-width: 0; max-width: none; white-space: normal; overflow-wrap: anywhere; }
.tokyo-workbench .franchise-console table[data-resizable-table] .franchise-row__time { font-variant-numeric: tabular-nums; font-size: 11px; }
.tokyo-workbench .franchise-console table[data-resizable-table] .franchise-row__time time { white-space: normal; overflow-wrap: anywhere; }
.tokyo-workbench .franchise-console table.franchise-recharge-table .franchise-recharge-order { font-variant-numeric: tabular-nums; font-size: 12px; }
.tokyo-workbench .franchise-console table.franchise-recharge-table .franchise-recharge-member strong { font-weight: 650; }
.tokyo-workbench .franchise-column-resizer { position: absolute; z-index: 6; top: 0; right: 0; bottom: 0; display: block; width: 18px; border-radius: 4px; outline: none; cursor: col-resize; touch-action: none; user-select: none; }
.tokyo-workbench .franchise-column-resizer::after { position: absolute; top: 11px; bottom: 11px; right: 5px; width: 3px; border-left: 1px solid rgba(105, 78, 48, .28); border-right: 1px solid rgba(105, 78, 48, .28); content: ''; transition: border-color 160ms ease; }
.tokyo-workbench .franchise-column-resizer:hover,
.tokyo-workbench .franchise-column-resizer:focus-visible { background: rgba(36, 127, 114, .12); }
.tokyo-workbench .franchise-column-resizer:focus-visible { outline: 2px solid var(--tokyo-workbench-teal, #247f72); outline-offset: -2px; }
.tokyo-workbench .franchise-column-resizer:hover::after,
.tokyo-workbench .franchise-column-resizer:focus-visible::after { border-color: var(--tokyo-workbench-teal, #247f72); }
.tokyo-workbench .is-column-resizing,
.tokyo-workbench .is-column-resizing * { user-select: none !important; cursor: col-resize !important; }
.tokyo-workbench .franchise-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 601px) {
    .tokyo-workbench .franchise-console table.franchise-strategy-table--commodity[data-resizable-table] th:first-child,
    .tokyo-workbench .franchise-console table.franchise-strategy-table--commodity[data-resizable-table] th:last-child { position: sticky; }
    .tokyo-workbench .franchise-console table.franchise-strategy-table--commodity[data-resizable-table] td:first-child { overflow: hidden !important; }
}
@media (max-width: 600px) {
    .tokyo-workbench .franchise-table-tools { gap: 7px 10px; }
    .tokyo-workbench .franchise-table-resize-hint { flex-basis: 130px; font-size: 10px; }
    .tokyo-workbench .franchise-table-reset { min-height: 40px; padding-inline: 10px; }
}
@media (pointer: coarse) { .tokyo-workbench .franchise-column-resizer { width: 24px; } }
@media (prefers-reduced-motion: reduce) { .tokyo-workbench .franchise-table-reset, .tokyo-workbench .franchise-column-resizer::after { transition: none; } }

/* Merchant actions share one accessible modal form, separate from page flow. */
html:has(> body.franchise-action-open) { overflow: hidden; }
.franchise-action-dialog {
    box-sizing: border-box;
    width: min(540px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(105, 78, 48, .2);
    border-radius: 24px;
    background: #fffaf4;
    color: #302b25;
    box-shadow: 0 24px 80px rgba(45, 35, 25, .23);
    font: inherit;
}
.franchise-action-dialog[open] { display: flex; flex-direction: column; }
.franchise-action-dialog::backdrop { background: rgba(35, 30, 25, .42); backdrop-filter: blur(3px); }
.franchise-action-head { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 16px; padding: 21px 24px 18px; border-bottom: 1px solid #e9e0d6; }
.franchise-action-kicker { color: #a38467; font-size: 10px; font-weight: 750; letter-spacing: .14em; }
.franchise-action-head h2 { margin: 5px 0 0; color: inherit; font-size: 21px; line-height: 1.35; letter-spacing: -.035em; }
.franchise-action-dialog button { font-family: inherit; cursor: pointer; }
.franchise-action-dialog button:disabled { cursor: wait; opacity: .55; }
.franchise-action-close { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; border: 1px solid #ded2c5; border-radius: 50%; background: transparent; color: #756c60; font-size: 25px; line-height: 1; }
.franchise-action-form { min-height: 0; margin: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.franchise-action-body { display: grid; gap: 18px; min-width: 0; padding: 21px 24px 0; }
.franchise-action-lede, .franchise-action-copy { margin: 0; color: #756c60; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.franchise-action-copy { font-size: 14px; }
.franchise-balance-member { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 1px solid #e5dbcf; border-radius: 14px; background: rgba(255, 255, 255, .75); }
.franchise-balance-member > div { display: grid; min-width: 0; gap: 4px; }
.franchise-balance-member > div:last-child { flex-shrink: 0; text-align: right; }
.franchise-balance-member strong { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.franchise-balance-member small, .franchise-balance-member span { color: #756c60; font-size: 11px; }
.franchise-balance-direction { display: flex; gap: 9px; min-width: 0; margin: 0; padding: 0; border: 0; }
.franchise-balance-direction legend { margin: 0 0 8px; padding: 0; color: #51483e; font-size: 12px; font-weight: 650; }
.franchise-balance-direction label { position: relative; flex: 1 1 0; min-width: 0; margin: 0; }
.franchise-balance-direction input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.franchise-balance-direction span { display: flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; padding: 9px; border: 1px solid #ded2c5; border-radius: 12px; background: rgba(255, 255, 255, .7); color: #756c60; font-size: 12px; line-height: 1.5; font-weight: 650; cursor: pointer; }
.franchise-balance-direction input:checked + span { border-color: rgba(217, 111, 61, .4); background: #f9ede0; color: #8f4326; }
.franchise-balance-direction input:disabled + span { cursor: wait; opacity: .6; }
.franchise-action-field { display: grid; gap: 7px; min-width: 0; }
.franchise-action-field label { margin: 0; color: #51483e; font-size: 12px; font-weight: 650; }
.franchise-action-field input, .franchise-action-field textarea { box-sizing: border-box; display: block; width: 100%; min-width: 0; min-height: 46px; margin: 0; padding: 11px 12px; border: 1px solid #d6c8b9; border-radius: 12px; background: #fff; color: #302b25; font: inherit; font-size: 16px; line-height: 1.5; }
.franchise-action-field textarea { resize: vertical; max-height: 180px; }
.franchise-action-field small { color: #8b8177; font-size: 11px; line-height: 1.5; }
.franchise-action-field [aria-invalid="true"] { border-color: #b75b46; }
.franchise-balance-preview { display: grid; gap: 9px; padding: 14px; border: 1px solid rgba(36, 127, 114, .18); border-radius: 14px; background: rgba(36, 127, 114, .055); }
.franchise-balance-preview > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.franchise-balance-preview span { color: #756c60; font-size: 12px; }
.franchise-balance-preview strong { color: #247f72; font-size: 16px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.franchise-balance-preview strong.is-debit { color: #a44836; }
.franchise-balance-preview small { color: #8b8177; font-size: 10px; line-height: 1.5; }
.franchise-action-reference { display: grid; gap: 7px; padding: 13px; border: 1px solid #e5dbcf; border-radius: 12px; background: #fff; }
.franchise-action-reference span { color: #756c60; font-size: 11px; }
.franchise-action-reference strong { font-size: 13px; overflow-wrap: anywhere; }
.franchise-action-error { box-sizing: border-box; min-height: 2.8em; margin: 12px 24px 6px; color: #a44836; font-size: 12px; line-height: 1.4; }
.franchise-action-footer { position: sticky; bottom: 0; z-index: 1; display: flex; justify-content: flex-end; gap: 9px; padding: 15px 24px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid #e9e0d6; background: #fffaf4; }
.franchise-action-footer button { min-width: 90px; min-height: 44px; padding: 10px 17px; border: 1px solid #d8cbbd; border-radius: 999px; font-size: 13px; font-weight: 650; line-height: 1.5; }
.franchise-action-cancel { background: transparent; color: #756c60; }
.franchise-action-submit { border-color: #302b25 !important; background: #302b25; color: #fffaf4; }
.franchise-action-dialog :is(button,input,textarea):focus-visible, .franchise-balance-direction input:focus-visible + span { outline: 3px solid rgba(36, 127, 114, .3); outline-offset: 3px; }
@media (max-width: 600px) {
    .franchise-action-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 20px; }
    .franchise-action-head { padding: 17px; }
    .franchise-action-head h2 { font-size: 19px; }
    .franchise-action-body { gap: 15px; padding: 17px 17px 0; }
    .franchise-balance-member { display: grid; gap: 10px; }
    .franchise-balance-member > div:last-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; text-align: left; }
    .franchise-action-error { margin-inline: 17px; }
    .franchise-action-footer { padding-inline: 17px; }
    .franchise-action-footer button { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
    .franchise-action-cancel { flex: 0 1 auto; max-width: 46%; }
    .franchise-action-submit { flex: 1 1 auto; }
}
