: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 {
    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;
    }
}

/* 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 .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;
}

@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;
    }
}

/* 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;
    }
}
