/* Flat button treatment across the platform, including interaction states. */
button,button:hover,button:active,button:focus,button:disabled,
[role="button"],a.primary,a.secondary,input[type="button"],input[type="submit"],input[type="reset"],
button *,button::before,button::after{
 box-shadow:none!important;
 text-shadow:none!important;
 filter:none!important;
}
.play-tile,.compact-word-board .letter-grid button{border-bottom-width:1px}
/* Keep the arrow centered without inherited padding or font baseline offsets. */
.screen-back,.compact-toolbar .screen-back{
 box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
 width:40px;height:40px;min-width:40px;min-height:40px;flex:0 0 40px;
 padding:0;line-height:1;border-radius:11px;vertical-align:middle;
}
.screen-back svg,.compact-toolbar .screen-back svg{
 display:block;width:20px;height:20px;flex:none;margin:0;
}
.compact-toolbar{height:36px;margin-bottom:8px;padding:0;align-items:center}
.compact-toolbar .screen-back{width:36px;height:36px;min-width:36px;min-height:36px;flex-basis:36px;border-radius:10px}
.compact-toolbar .game-sound{height:36px;width:36px;padding:0;line-height:1}
@media(pointer:coarse){.screen-back,.compact-toolbar .screen-back{width:44px;height:44px;min-width:44px;min-height:44px;flex-basis:44px}.compact-toolbar{height:44px}.compact-toolbar .game-sound{height:44px;width:44px}}
/* Shared right/left content rails across the platform. */
:root{--kanz-page-width:1270px;--kanz-page-gutter:clamp(16px,2.4vw,35px)}
.layout.practical-layout{box-sizing:border-box;width:100%;max-width:var(--kanz-page-width);margin-inline:auto;padding-inline:var(--kanz-page-gutter)}
.layout.practical-layout>#main{width:100%;min-width:0}
header.kanz-header{box-sizing:border-box;padding-inline:max(var(--kanz-page-gutter),calc((100% - var(--kanz-page-width))/2 + var(--kanz-page-gutter)))}
#main .screen-heading,#main .screen-actions{width:100%;box-sizing:border-box}
#main .activity-workcard,#main .career-detail,#main .career-project,#main .game-arena,#main .game-intro,#main .game-finish{box-sizing:border-box;width:100%;max-width:none;margin-inline:0}
#main .game-toolbar{box-sizing:border-box;width:100%;max-width:none;margin-inline:0}
#main .activity-space,#main .career-space,#main .career-investment,#main .development,#main .structure-view{width:100%;min-width:0;box-sizing:border-box}
#main>.panel,#main>form.panel{box-sizing:border-box;width:100%;max-width:none;margin-inline:0}
@media(max-width:600px){.layout.practical-layout{padding-inline:var(--kanz-page-gutter)}header.kanz-header{padding-inline:var(--kanz-page-gutter)}}

.structure-heading-inline{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.structure-heading-inline>.screen-actions{margin:0;margin-inline-start:auto;padding:0;display:flex;align-items:center}.structure-heading-inline .create-account-link{display:inline-flex;align-items:center;gap:9px;white-space:nowrap}.structure-add-plus{display:inline-flex;align-items:center;justify-content:center;font-size:42px;line-height:1;width:40px;height:44px;font-weight:400;flex-shrink:0}

.structure-tree{display:grid;gap:12px}.structure-tree-node{min-width:0}.structure-tree-row{display:flex;align-items:stretch;position:relative;border:1px solid #dce5db;border-radius:12px;min-height:76px;background:#fffefa;overflow:visible}.structure-level{display:flex;align-items:center;justify-content:center;flex:0 0 74px;border-inline-end:1px solid #d7e0d4;background:#e4eddf;border-radius:0 12px 12px 0;color:#3b604e;font-size:13px;font-weight:700}.tree-sub>.structure-tree-row{background:#f0f5ec}.tree-sub>.structure-tree-row>.structure-level{background:#d9e9df}.tree-group>.structure-tree-row{background:#edf4f5}.tree-group>.structure-tree-row>.structure-level{background:#dce9ec}.structure-tree-name{display:flex;align-items:center;gap:12px;flex:1;min-width:0;padding:16px 18px;background:transparent;color:#365b4d;border:0;text-align:right}.structure-tree-name b{font-size:16px;font-weight:600;overflow-wrap:anywhere}.structure-tree-name .structure-count{margin-inline-start:auto}.tree-chevron{width:20px;font-size:23px;flex-shrink:0}.structure-tree-row>.structure-edit{margin:10px 8px;width:38px;flex-shrink:0}.structure-tree-children{display:grid;gap:10px;margin:10px 26px 4px 0;padding-inline-start:16px;border-inline-start:2px solid #dce5d7}.structure-tree-menu{position:absolute;inset-inline-end:12px;top:calc(100% - 6px);z-index:8;display:grid;min-width:180px;padding:6px;background:#fff;border:1px solid #d6e1d1;border-radius:10px}.structure-tree-menu button{background:transparent;text-align:right;color:#365f50;border-radius:6px;padding:12px}.structure-tree-menu button:hover{background:#eef4e9}.structure-account-search{padding:16px 0}.structure-account-search>input{width:100%}.structure-person small{display:block;font-size:11px;color:#849080}.structure-tree button{box-shadow:none!important}@media(max-width:600px){.structure-level{flex-basis:52px;font-size:11px}.structure-tree-name{padding:12px 9px;gap:7px}.structure-tree-name b{font-size:13px}.structure-tree-children{margin-inline-start:10px;padding-inline-start:9px}.structure-tree-row{min-height:66px}}

.structure-modal{position:fixed;inset:0;margin:auto;width:min(720px,calc(100vw - 32px));max-width:720px;max-height:calc(100dvh - 48px);padding:26px;border:1px solid #dbe5d7;border-radius:18px;background:#fffefa;color:#34584d;overflow:auto;box-sizing:border-box}.structure-modal::backdrop{background:rgb(34 58 48 / 42%)}.structure-modal:not([open]){display:none}.structure-modal-close{position:absolute;top:13px;left:13px;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:10px;font-size:25px;background:#eef3e8;color:#648879;box-shadow:none!important}.structure-modal-heading{padding-inline-end:44px;margin:0 0 22px}.structure-modal-heading h2{font-size:22px;margin:0}.structure-modal .structure-editor-form{padding:0;border:0;background:transparent;border-radius:0}.structure-modal .structure-editor{width:100%;max-width:none}.structure-modal .structure-account-search{padding-top:0}.structure-modal .structure-people-empty{padding:16px}.structure-modal .actions{margin-bottom:0}@media(max-width:600px){.structure-modal{padding:20px 16px;max-height:calc(100dvh - 24px)}.structure-modal-heading h2{font-size:19px}}

/* Inline group roster: teachers first, followed by students. */
.structure-inline-members{display:grid;gap:8px;margin:10px 26px 4px 0;padding-inline-start:16px;border-inline-start:2px solid #dce5d7}.structure-inline-member{display:flex;align-items:center;gap:14px;min-height:62px;padding:12px 18px;background:#fffefa;border:1px solid #e1e8de;border-radius:12px}.structure-member-role{flex:0 0 44px;color:#6c8474;font-size:12px}.structure-inline-member b{font-size:15px;font-weight:600;overflow-wrap:anywhere}@media(max-width:600px){.structure-inline-members{margin-inline-start:10px;padding-inline-start:9px}.structure-inline-member{min-height:54px;padding:10px;gap:8px}.structure-inline-member b{font-size:13px}}
