/* Tiên Giới Truyện 3D V16.27 Novel Studio - admin-only presentation */
:root{--tg27-bg:#0b1018;--tg27-panel:#151d29;--tg27-panel2:#1a2532;--tg27-line:rgba(160,172,190,.15);--tg27-ink:#eaf0f4;--tg27-muted:#9ba8b9;--tg27-gold:#e7b969;--tg27-gold2:#f7d99a}
body:has(.tg27-studio) .admin-shell{max-width:none!important;margin:0!important;padding:0!important;width:100%!important}
body:has(.tg27-studio) .admin-panel{max-width:none!important;width:100%!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important;background:#0b1018!important;box-shadow:none!important}
body:has(.tg27-studio) #app{max-width:none!important;width:100%!important;padding:0!important}

.tg27-studio,.tg27-studio *{box-sizing:border-box}
.tg27-studio{display:grid;grid-template-columns:244px minmax(0,1fr);min-width:0;min-height:calc(100vh - 120px);font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;text-align:left;color:var(--tg27-ink);background:radial-gradient(ellipse at 88% 1%,#18283a 0,transparent 38%),var(--tg27-bg)}
.tg27-studio :is(button,input,select){font:inherit}
.tg27-studio button{cursor:pointer}
.tg27-studio button:disabled{opacity:.36;cursor:not-allowed}
.tg27-studio :is(button,input,select,a):focus-visible{outline:2px solid var(--tg27-gold2);outline-offset:3px}
.tg27-studio h1,.tg27-studio h2,.tg27-studio h3,.tg27-studio p{margin:0}
.tg27-studio h1{color:#f2f1ed;font-size:clamp(24px,2.35vw,36px);letter-spacing:-.04em;line-height:1.23;font-weight:750}
.tg27-studio h1 em{font-style:normal;color:var(--tg27-gold2)}
.tg27-studio h2{font-size:18px;font-weight:720;letter-spacing:-.025em;color:#f3eee4}
.tg27-studio .tg27-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.tg27-sidebar{position:sticky;top:0;align-self:start;height:100vh;min-height:710px;background:linear-gradient(180deg,#111a25,#0e151e);border-right:1px solid #ffffff12;display:flex;flex-direction:column;padding:22px 14px 20px;z-index:4}
.tg27-brand{display:flex;align-items:center;gap:11px;padding:5px 9px 24px;border-bottom:1px solid var(--tg27-line)}
.tg27-brand strong{font:700 20px/1.1 Georgia,serif;letter-spacing:.03em;color:#f3d99d;display:block}
.tg27-brand span{display:block;margin-top:5px;color:#8997a8;font-size:9px;letter-spacing:.17em;font-weight:800}
.tg27-brand em{font-style:normal;color:#e4bd75}.tg27-mark{width:42px;height:42px;border:1px solid #ac834e;border-radius:13px;display:grid;place-items:center;font-size:26px;color:#f1d08e;background:linear-gradient(135deg,#3a2b1b,#152332)}
.tg27-side-close{display:none}
.tg27-side-scroll{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-top:20px;flex:1}
.tg27-nav-label{font-size:10px;color:#8797a9;letter-spacing:.15em;font-weight:800;padding:0 10px;margin:3px 0 11px}.tg27-spaced{margin-top:25px}
.tg27-sidebar nav{display:grid;gap:4px}.tg27-sidebar .tg27-nav-item{width:100%;border:1px solid transparent;background:transparent;border-radius:10px;display:flex;align-items:center;gap:12px;min-height:43px;padding:10px 12px;text-align:left;font-size:12.5px;font-weight:620;color:#aeb8c6;transition:background .16s,color .16s}
.tg27-nav-item svg{width:18px;height:18px;flex:none}.tg27-nav-item span:nth-child(2){flex:1;min-width:0}.tg27-sidebar .tg27-nav-item:hover{color:#f3e8d7;background:#ffffff0d}.tg27-sidebar .tg27-nav-item.is-active{color:#f5cd83;border-color:#b38c4b55;background:#b88a4230;box-shadow:inset 3px 0 #e7b969}.tg27-mini-dot{width:5px;height:5px;border-radius:50%;background:#ba9256}
.tg27-side-footer{border-top:1px solid var(--tg27-line);padding:17px 9px 0;display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px;color:#8594a8}.tg27-version{font-weight:800;color:#cfa96e}
.tg27-workspace{min-width:0}
.tg27-top{min-height:68px;border-bottom:1px solid var(--tg27-line);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px clamp(19px,3vw,42px);background:#11192399}
.tg27-crumb{font-size:10px;letter-spacing:.15em;color:#7f8b9b;font-weight:800}.tg27-crumb span{color:#5d6776;padding:0 6px}.tg27-crumb strong{color:#e0bc7e;font-weight:720}.tg27-top-actions{display:flex;align-items:center;gap:20px;color:#a6b2c0;font-size:11px}.tg27-top-actions svg{width:16px;height:16px}.tg27-connection{display:flex;align-items:center;gap:6px;white-space:nowrap}.tg27-connection svg{color:#79c9a1}.tg27-site-link{border:1px solid #7b603d55;border-radius:9px;padding:8px 10px;display:inline-flex;gap:7px;align-items:center;text-decoration:none;color:#e7c489!important;background:#3d321e37;font-weight:700;white-space:nowrap}
.tg27-menu-btn{display:none}
.tg27-page{padding:clamp(20px,2.6vw,37px) clamp(17px,3vw,42px) 38px;max-width:1840px;margin:0 auto}
.tg27-page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.tg27-page-head p{color:var(--tg27-muted);font-size:13px;margin-top:11px;max-width:700px;line-height:1.7}.tg27-eyebrow{font-size:10px;font-weight:850;letter-spacing:.17em;color:#c6a16a;margin-bottom:9px}.tg27-main-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.tg27-btn{border-radius:10px;min-height:41px;padding:10px 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px!important;font-weight:750!important;white-space:nowrap;border:1px solid #495263}.tg27-btn svg{width:17px;height:17px}.tg27-btn-outline{background:#1d2835;color:#dbe2e9;border-color:#516073}.tg27-btn-outline:hover{background:#263445;border-color:#9f865e}.tg27-btn-gold{background:linear-gradient(110deg,#eac477,#c79147);color:#261909;border-color:#e8bf79;box-shadow:0 5px 18px #a6783230}.tg27-btn-gold:hover{filter:brightness(1.1)}
.tg27-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:24px}.tg27-metric{min-width:0;border:1px solid var(--tg27-line);border-radius:13px;background:linear-gradient(155deg,#192332,#121c27);padding:17px;display:flex;gap:15px;align-items:flex-start;box-shadow:0 9px 22px #0002}.tg27-metric-icon{width:43px;height:43px;border-radius:11px;background:#b88a4025;color:#e8c17d;display:grid;place-items:center;flex:none}.tg27-metric small,.tg27-metric span{font-size:11px;color:#a6b2c1;display:block}.tg27-metric strong{display:block;font-weight:800;font-size:26px;line-height:1.35;letter-spacing:-.04em;color:#f3eee7;margin:3px 0}.tg27-metric span{font-size:10px;color:#7f91a5}
.tg27-editor-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(290px,.8fr);gap:17px;align-items:start;min-width:0}.tg27-card{min-width:0;border:1px solid var(--tg27-line);border-radius:15px;background:linear-gradient(160deg,#141e2a,#111a24);box-shadow:0 14px 30px #0002;overflow:hidden}.tg27-card-head,.tg27-inspector-head{padding:22px 22px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px}.tg27-card-head h2 .tg27-total{font-size:11px;color:#c6a370;border:1px solid #9d77414c;border-radius:999px;padding:3px 8px;margin-left:5px;vertical-align:middle}
.tg27-text-link{border:0;background:transparent;color:#e8c286;display:inline-flex;align-items:center;gap:6px;font-size:11.5px!important;font-weight:720!important;white-space:nowrap}.tg27-text-link svg{width:15px;height:15px}.tg27-text-link:hover{text-decoration:underline}
.tg27-filters{display:flex;gap:9px;align-items:stretch;padding:0 22px 20px;min-width:0}.tg27-search,.tg27-select{border:1px solid #415066;border-radius:9px;background:#0f1721;display:flex;align-items:center;gap:8px;padding:0 11px;min-width:0;color:#9cabc0}.tg27-search{flex:1}.tg27-search:focus-within,.tg27-select:focus-within{border-color:#cda668}.tg27-search input,.tg27-select select{height:39px;min-width:0;flex:1;background:transparent;border:0!important;outline:none!important;box-shadow:none!important;color:#e6eaf0;font-size:12px!important}.tg27-search input::placeholder{color:#8b9aac}.tg27-select select{width:122px;cursor:pointer;appearance:auto}.tg27-select option{background:#192330;color:#fff}.tg27-filters svg{width:16px;height:16px;flex:none}
.tg27-table-scroll{overflow-x:auto;min-width:0;scrollbar-width:thin}.tg27-table{width:100%;min-width:620px;border-collapse:collapse;table-layout:fixed}.tg27-table th{text-align:left;font-size:10px;letter-spacing:.11em;color:#8292a5;padding:13px 17px;background:#0e1722;border-block:1px solid #ffffff10}.tg27-table th:first-child{width:49%;padding-left:22px}.tg27-table th:nth-child(2){width:20%}.tg27-table th:nth-child(3){width:21%}.tg27-table th:nth-child(4){width:10%;text-align:center}.tg27-table td{border-bottom:1px solid #ffffff0e;padding:12px 17px;font-size:12px;color:#aeb8c8;vertical-align:middle}.tg27-table td:first-child{padding-left:22px}.tg27-table td:last-child{text-align:center}.tg27-table tr:last-child td{border-bottom:0}.tg27-table tbody tr.tg27-selected{background:#c9a15e0d}.tg27-table tbody tr:hover{background:#ffffff07}
.tg27-story-entry{width:100%;border:0;background:transparent;padding:0;display:flex;align-items:center;gap:12px;text-align:left;min-width:0;color:inherit}.tg27-mini-cover{width:39px;height:54px;object-fit:cover;flex:0 0 39px;border-radius:5px;border:1px solid #71604477;background:#2d3641;display:grid;place-items:center;color:#c49c63}.tg27-story-entry>span:last-child{min-width:0;overflow:hidden}.tg27-story-entry strong{display:block;color:#f1e9df;font-weight:730;font-size:12px;line-height:1.35;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.tg27-story-entry small{display:block;margin-top:6px;color:#8493a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tg27-story-entry:hover strong{color:#f3cc8b}.tg27-published,.tg27-draft{display:inline-flex;align-items:center;gap:4px;border-radius:7px;padding:6px 8px;font-size:10px;font-weight:700;white-space:nowrap}.tg27-published{color:#92d5b7;background:#1c463a55}.tg27-draft{color:#d6bc8b;background:#6b4c2155}.tg27-date{font-size:11px;color:#9ea9b9;white-space:nowrap}.tg27-row-action{border:1px solid #4e5360;background:#1d2836;border-radius:8px;width:30px;height:30px;color:#d3bd91;display:inline-grid;place-items:center}.tg27-row-action svg{width:14px;height:14px}.tg27-row-action:hover{border-color:#caaa77}
.tg27-table-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 22px;background:#121b26;border-top:1px solid #ffffff0e;font-size:11px;color:#99a8ba}.tg27-table-bottom>div{display:flex;gap:10px;align-items:center}.tg27-small-btn{width:29px;height:29px;display:grid;place-items:center;border:1px solid #4c5a6a;border-radius:8px;background:#243141;color:#eed3a8;font-size:20px!important}.tg27-small-btn:hover:not(:disabled){border-color:#e4b76e}.tg27-empty{text-align:center;white-space:normal;line-height:1.7;padding:36px 16px;color:#a9b6c4;font-size:12px}
.tg27-inspector-head h2{margin-top:2px}.tg27-gear{color:#c7a879;padding:7px;border:1px solid #9f865455;border-radius:9px}.tg27-gear svg{display:block;width:17px;height:17px}.tg27-inspector #tg27-inspector-content{padding:0 21px 22px}.tg27-preview-cover{height:166px;display:flex;align-items:center;justify-content:center;border:1px solid #ffffff14;border-radius:12px;background:radial-gradient(ellipse at center,#354358,#101822 75%);margin-bottom:14px;overflow:hidden}.tg27-cover-large{height:145px;width:108px;object-fit:cover;border:1px solid #8e7347;border-radius:6px;box-shadow:0 8px 17px #0008}.tg27-preview-cover>.tg27-placeholder{display:grid;place-items:center;font-size:44px;color:#d5af71;background:linear-gradient(160deg,#49331e,#172638)}.tg27-preview-status{display:flex;flex-wrap:wrap;gap:7px;align-items:center;font-size:10px;color:#aab7c7}.tg27-inspector h3{font-size:17px;line-height:1.42;color:#f1eadf;margin:9px 0 6px}.tg27-inspector .tg27-author{font-size:11px;color:#a9bacb}.tg27-desc{font-size:12px;color:#9eacba;line-height:1.75;margin:14px 0 16px!important;max-height:88px;overflow:hidden}.tg27-info{border:1px solid #ffffff16;border-radius:10px;overflow:hidden}.tg27-info>div{display:flex;justify-content:space-between;gap:9px;padding:11px 12px;border-bottom:1px solid #ffffff12;font-size:11px}.tg27-info>div:last-child{border-bottom:0}.tg27-info span{color:#97a6b7}.tg27-info strong{font-weight:700;color:#f1e0c0;text-align:right}.tg27-inspector-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px}.tg27-inspector-actions .tg27-btn{min-width:0;white-space:normal;padding:9px 7px}.tg27-inspector-actions svg{width:15px;height:15px}
.tg27-workflows{margin-top:22px}.tg27-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.tg27-workflow-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.tg27-workflow-grid button{min-width:0;display:grid;grid-template-columns:28px 1fr 16px;grid-template-rows:auto auto;column-gap:12px;row-gap:4px;border:1px solid var(--tg27-line);border-radius:12px;background:#17212d;text-align:left;padding:18px;color:#bfcbda}.tg27-workflow-grid button>svg:first-child{grid-row:1/3;width:25px;height:25px;color:#e8bf79}.tg27-workflow-grid button>svg:last-child{grid-column:3;grid-row:1/3;align-self:center;color:#c6a777;width:16px}.tg27-workflow-grid button strong{grid-column:2;grid-row:1;font-size:12.5px;color:#eee6d9}.tg27-workflow-grid button span{grid-column:2;grid-row:2;font-size:11px;line-height:1.5;color:#8393a7}.tg27-workflow-grid button:hover{background:#202d3d;border-color:#a78a5a}.tg27-data-note{display:flex;gap:8px;align-items:flex-start;color:#8393a5;font-size:10.5px;line-height:1.55;margin-top:22px!important}.tg27-data-note svg{width:15px;height:15px;flex:none;color:#72b99e}
/* Non-dashboard pages: preserve original HTML/forms, add compact Novel Studio navigation. */
#app .admin-panel:has(.tg27-subbar){max-width:min(1450px,96vw)!important;padding:22px!important}
.tg27-subbar{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;border:1px solid #b18b5440;background:linear-gradient(100deg,#182330,#111a25);border-radius:12px;padding:11px 14px;margin:0 0 18px;color:#e4e8ed}
.tg27-subbrand{display:flex;align-items:center;gap:8px;color:#e5ba75;font-size:11px;font-weight:750;letter-spacing:.04em}.tg27-subbrand span{color:#9aa9b7;font-size:11px;font-weight:500;letter-spacing:0}.tg27-subbar nav{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.tg27-subbar button{border:1px solid #526073;border-radius:8px;background:#1c2734;color:#d5dfeb;padding:8px 10px;display:inline-flex;align-items:center;gap:6px;font-size:11px;cursor:pointer}.tg27-subbar button svg{width:15px;height:15px}.tg27-subbar button:hover{color:#f5d58c;border-color:#c69c5c}
#app .admin-panel:has(.tg27-subbar) .admin-form{max-width:1120px;width:100%;margin-left:auto;margin-right:auto}
#app .admin-panel:has(.tg27-subbar) .admin-form .form-grid{gap:16px 19px}
#app .admin-panel:has(.tg27-subbar) .admin-form :is(input,textarea,select){border-radius:9px}
#app .admin-panel:has(.tg27-subbar) .tg-sl{max-width:none}
#app .admin-panel:has(.tg27-subbar) .tg-sl-tools{border-radius:12px}
#app .admin-panel:has(.tg27-subbar) .tg-sl-row{border-radius:12px}
@media(max-width:1490px){.tg27-studio{grid-template-columns:214px minmax(0,1fr)}.tg27-page{padding-left:23px;padding-right:23px}.tg27-top{padding-left:23px;padding-right:23px}.tg27-editor-grid{grid-template-columns:minmax(0,1.5fr) minmax(265px,.8fr)}.tg27-metric{padding:14px;gap:10px}.tg27-metric-icon{width:37px;height:37px}.tg27-metric strong{font-size:23px}}
@media(max-width:1170px){.tg27-editor-grid{grid-template-columns:minmax(0,1fr)}.tg27-inspector #tg27-inspector-content{display:grid;grid-template-columns:175px minmax(0,1fr);gap:0 17px;align-items:start}.tg27-preview-cover{grid-row:1/7;height:218px}.tg27-cover-large{width:130px;height:190px}.tg27-preview-status,.tg27-inspector h3,.tg27-author,.tg27-desc,.tg27-info,.tg27-inspector-actions{grid-column:2}.tg27-inspector-actions{margin-top:10px}.tg27-desc{margin:10px 0!important}.tg27-info{max-width:100%}}
@media(max-width:990px){.tg27-studio{grid-template-columns:minmax(0,1fr)}.tg27-sidebar{position:fixed;top:0;left:0;bottom:0;height:100dvh;width:min(280px,87vw);min-height:0;box-shadow:15px 0 50px #000a;transform:translateX(-105%);transition:transform .2s ease;z-index:901}.tg27-studio.tg27-menu-open .tg27-sidebar{transform:translateX(0)}.tg27-side-close{display:grid;place-items:center;width:33px;height:33px;border:1px solid #ffffff24;border-radius:8px;color:#e8ca96;background:#253041;margin-left:auto}.tg27-menu-btn{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:#253243;border:1px solid #576278;color:#e5c489}.tg27-top{justify-content:flex-start}.tg27-crumb{flex:1}.tg27-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.tg27-page-head{align-items:flex-start}.tg27-main-actions{max-width:290px}}
@media(max-width:660px){.tg27-page{padding:19px 13px 38px}.tg27-top{padding:10px 14px;min-height:56px}.tg27-crumb{font-size:9px}.tg27-top-actions{gap:6px}.tg27-connection{display:none}.tg27-site-link{padding:8px}.tg27-site-link span{display:none}.tg27-page-head{display:block}.tg27-page-head h1{font-size:24px}.tg27-page-head p{font-size:12px}.tg27-main-actions{max-width:none;justify-content:stretch;margin-top:17px;display:grid;grid-template-columns:1fr 1fr}.tg27-btn{font-size:11px!important;padding:9px 7px}.tg27-metrics{gap:8px;margin-bottom:15px}.tg27-metric{padding:12px;gap:8px}.tg27-metric-icon{width:32px;height:32px;border-radius:8px}.tg27-metric-icon svg{width:16px;height:16px}.tg27-metric strong{font-size:21px}.tg27-metric small{font-size:10px}.tg27-metric span{font-size:9px}.tg27-card-head,.tg27-inspector-head{padding:16px}.tg27-filters{padding:0 14px 15px;display:grid;grid-template-columns:1fr;gap:8px}.tg27-select select{width:100%}.tg27-table{min-width:505px}.tg27-table th:first-child{width:51%}.tg27-table th:nth-child(2){width:25%}.tg27-table th:nth-child(3){width:15%}.tg27-table th:nth-child(4){width:9%}.tg27-table th,.tg27-table td{padding:10px 9px}.tg27-table th:first-child,.tg27-table td:first-child{padding-left:13px}.tg27-card-head h2{font-size:16px}.tg27-text-link{font-size:10px!important}.tg27-inspector #tg27-inspector-content{padding:0 16px 18px;display:block}.tg27-preview-cover{height:165px}.tg27-cover-large{height:145px;width:105px}.tg27-workflow-grid{grid-template-columns:1fr}.tg27-workflow-grid button{padding:13px}.tg27-section-head{align-items:flex-end}.tg27-subbar{padding:10px}.tg27-subbar nav{display:grid;grid-template-columns:repeat(2,1fr);width:100%}.tg27-subbar nav button{justify-content:center}.tg27-subbrand{flex-wrap:wrap}.tg27-subbar span{white-space:normal}#app .admin-panel:has(.tg27-subbar){padding:12px!important}}
@media(max-width:390px){.tg27-page-head h1{font-size:22px}.tg27-metric{display:block}.tg27-metric-icon{margin-bottom:7px}.tg27-table-bottom{padding:11px 12px}}
@media(max-width:990px){body:has(.tg27-studio) .tg26-bottom-nav,body:has(.tg27-subbar) .tg26-bottom-nav{display:none!important}body:has(.tg27-studio),body:has(.tg27-subbar){padding-bottom:0!important}}
@media(prefers-reduced-motion:reduce){.tg27-sidebar{transition:none}}

/* Mobile story list uses two real columns; editing is available in the inspector below. */
@media(max-width:660px){
 .tg27-table{min-width:0!important;table-layout:fixed}
 .tg27-table th:first-child{width:64%!important}
 .tg27-table th:nth-child(2){width:36%!important}
 .tg27-table th:nth-child(3),.tg27-table th:nth-child(4),.tg27-table td:nth-child(3),.tg27-table td:nth-child(4){display:none!important}
 .tg27-story-entry{gap:9px}
 .tg27-story-entry strong{font-size:11.5px}
 .tg27-story-entry small{font-size:10px}
 .tg27-published,.tg27-draft{font-size:9px;padding:5px 6px}
}


/* V16.27.1: ONE administration layout on every authenticated view. */
body:has(.tg271-unified) #app{width:100%!important;max-width:none!important;padding:0!important}
body:has(.tg271-unified) #app>.admin-shell{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
body:has(.tg271-unified) #app>.admin-shell>.admin-panel{width:100%!important;max-width:none!important;min-height:calc(100vh - 110px);margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#0b1018!important}
.tg271-unified{min-height:calc(100vh - 110px)}
.tg271-unified .tg271-page{max-width:1530px;margin:0 auto;width:100%}
.tg271-view-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 23px;padding-bottom:19px;border-bottom:1px solid #c99d5133}
.tg271-view-heading h1{font-size:clamp(24px,2.5vw,34px);font-weight:750;letter-spacing:-.035em;margin:7px 0 8px;color:#f1deb6}
.tg271-view-heading p{font-size:12px;color:#a7b6c7;line-height:1.6;max-width:600px}
.tg271-content{width:100%;min-width:0;color:#dce4ee;overflow-x:auto;scrollbar-width:thin}
.tg271-content>section,.tg271-content>article,.tg271-content>div{max-width:100%;margin-left:0;margin-right:0}
.tg271-content .admin-form,.tg271-content .tg-category-manager,.tg271-content .banner-admin,.tg271-content .tg-admin-form,.tg271-content .admin-list{max-width:100%!important;width:100%;background:#151f2b;border:1px solid #ffffff1c;border-radius:14px;padding:clamp(14px,2.2vw,26px)}
.tg271-content :is(h2,h3){color:#f0d398}
.tg271-content :is(input,select,textarea){max-width:100%;border-radius:9px}
.tg271-content :is(.gold-btn,.simple-btn){border-radius:9px}
.tg271-content :is(table){border-collapse:separate;border-spacing:0;max-width:100%}
.tg271-content :is(.admin-actions,.form-actions){display:flex;flex-wrap:wrap;gap:9px}
.tg271-top-btn{border:1px solid #566073!important;background:#1b2634!important;color:#dfcbab!important;min-height:35px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:8px!important;padding:7px 11px!important;font-size:11px!important;white-space:nowrap}
.tg271-top-btn:hover{border-color:#d8ac65!important;color:#fff0d2!important}
.tg271-top-btn svg{width:15px;height:15px}
.tg271-logout{border-color:#986b585e!important}
.tg271-nav-search{margin:0 7px 18px;border:1px solid #526074;border-radius:10px;display:flex;align-items:center;gap:9px;padding:7px 11px;background:#1d2836;color:#d4b06d}
.tg271-nav-search svg{width:16px;height:16px;flex:none}
.tg271-nav-search input{display:block;min-width:0;width:100%;border:0!important;background:transparent!important;color:#f6e5c8!important;outline:none!important;font-size:12px!important;padding:3px 0!important;box-shadow:none!important}
.tg271-nav-search input::placeholder{color:#95a2b4}
.tg271-nav-status{font-size:10px;color:#c9a76f;margin:-10px 11px 11px!important}
.tg271-nav-group{margin-bottom:19px}
.tg271-nav-group[hidden],.tg27-nav-item[hidden]{display:none!important}
.tg271-unified .tg27-workspace{min-width:0}
.tg271-unified .tg27-page{padding-top:clamp(22px,2.3vw,34px)}
.tg271-native-section{padding:23px;border:1px solid #ffffff22;background:#172231;border-radius:12px}
.tg271-native-section h2{margin:0 0 8px}.tg271-native-section>p{font-size:12px;color:#9faec0}
.tg271-native-section .tg1610-actions{margin-top:15px}
.tg27-sidebar .tg27-brand strong{font-size:16px}
@media(max-width:990px){.tg271-unified .tg27-sidebar{min-height:0}.tg27-sidebar .tg27-side-scroll{overscroll-behavior:contain}}
@media(max-width:660px){.tg271-view-heading{margin-bottom:16px}.tg271-unified .tg27-page{padding:16px 12px 28px}.tg271-content :is(.admin-form,.tg-category-manager,.banner-admin){padding:13px!important}.tg271-top-find span,.tg271-logout span{display:none}.tg271-top-btn{padding:8px!important;min-width:35px}.tg27-top .tg27-crumb{font-size:9px;letter-spacing:.03em}.tg27-top .tg27-top-actions{gap:5px}}
/* Khi đang trong Novel Studio chỉ có một bộ điều hướng quản trị. */
body:has(.tg27-studio) .site-header,
body:has(.tg27-studio) .tg-v1415-ticker,
body:has(.tg27-studio) .tg26-bottom-nav,
body:has(.tg27-studio) .tg-footer-v122{display:none!important}
body:has(.tg27-studio) #app{margin:0!important}

/* Thẻ phân hệ quản trị tích hợp, không tạo dashboard thứ hai. */
.tg271-hub{margin:25px 0 24px}
.tg271-hub-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.tg271-hub-card{display:flex;align-items:center;gap:10px;text-align:left;min-width:0;padding:15px 12px;border:1px solid #42506388;border-radius:12px;background:linear-gradient(145deg,#1a2635,#111b27);color:#d7b879}
.tg271-hub-card:hover{border-color:#e5bd79;background:#263347}
.tg271-hub-card svg{width:19px;height:19px;flex:none}
.tg271-hub-card svg:last-child{width:13px;height:13px;margin-left:auto;color:#8490a2}
.tg271-hub-card span{display:grid;min-width:0;gap:5px}
.tg271-hub-card strong{font-size:12px;color:#f5ead2;line-height:1.35}
.tg271-hub-card small{font-size:10px;color:#9baabd;line-height:1.35}
@media(max-width:1350px){.tg271-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.tg271-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tg271-hub-card{padding:11px 9px;gap:7px}.tg271-hub-card>svg:first-child{width:16px;height:16px}.tg271-hub-card small{display:none}}
