:root {
    --anyx-accent: #6cc;
    --itan-gold: #d4a43a;
    --itan-gold-dim: rgba(212, 164, 58, 0.15);
    --itan-border: #344;
    --itan-text: #9aa;
    --itan-heading: #cee;
    --itan-panel: rgba(0, 0, 0, 0.85);
}
body {
    background: #000 url('images/stars.jpg') repeat fixed;
    color: var(--itan-text);
    margin: 0;
    padding: 0;
    min-height: 100%;
    height: auto;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-weight: 400;
}
img {
    border: medium none;
    max-width: 100%;
    height: auto;
}
a {
    color: var(--anyx-accent);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--itan-heading);
}

hr {
    margin: 0;
    padding: 0;
    border-color: var(--itan-gold-dim);
}

/* outer container — rounded box with breathing room */
#itan-wrapper {
    max-width: 976px;
    margin: 0 auto 10px;
}

#itan-container {
    border: 1px solid var(--itan-gold-dim);
    border-radius: 10px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 164, 58, 0.03);
}

/* ITAN header banner */
#itan-header {
    position: relative;
    height: 50px;
    background: transparent;
    border-bottom: none;
    display: flex;
    align-items: center;
}
.itan-logo-group {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 12px;
}
.itan-logo {
    height: 50px;
    width: auto;
    opacity: 0.9;
}
.itan-valks {
    height: 40px;
    width: auto;
    opacity: 0.6;
}

div#data {
    position: relative;
    padding: 12px;
}

div#page {
    background-color: var(--itan-panel);
    padding: 0;
    min-height: calc(100dvh - 75px);
    display: flex;
    flex-direction: column;
}

div#formdiv {
    display: none;
    background-color: #122;
    position: fixed;
    padding: 20px;
    margin: 0;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(102, 204, 204, 0.25);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(102, 204, 204, 0.08), inset 0 0 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

div.mainbody {
    position: relative;
    padding: 0;
    margin: 0;
    width: 100%;
    flex: 1;
}

table td {
    vertical-align: top;
    font-size: 14px;
}

font.label {
    color: var(--anyx-accent);
    font-weight: 500;
    font-family: 'Electrolize', Arial, sans-serif;
    letter-spacing: 0.05em;
}

div.search {
    display: none;
    float: right;
}
input.search {
    background-color: rgba(17, 34, 34, 0.8);
    color: var(--itan-text);
    border: 1px solid rgba(102, 204, 204, 0.2);
    border-radius: 4px;
    padding: 6px 10px;
    font-family: 'Roboto', Arial, sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input.search:focus {
    border-color: rgba(102, 204, 204, 0.5);
    box-shadow: 0 0 8px rgba(102, 204, 204, 0.15);
    outline: none;
}

.suggestionsBox {
    position: relative;
    margin: 0;
    width: 220px;
    background-color: #122;
    border-radius: 6px;
    border: 1px solid rgba(102, 204, 204, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    color: var(--itan-text);
}

.suggestionList {
    margin: 0;
    padding: 0;
}

.suggestionList ul {
    font-size: 12px;
    list-style: none;
    padding: 0;
    margin: 4px;
    text-align: left;
}

.suggestionList li {
    margin: 0;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.suggestionList li:hover {
    background-color: rgba(102, 204, 204, 0.08);
    color: #e0e8f0;
}

div#page_loading {
    display: none;
    width: 30%;
    height: 2px;
    position: sticky;
    top: 43px;
    left: 0;
    z-index: 399;
    margin-bottom: -2px;
    background: linear-gradient(90deg, transparent, var(--itan-gold), transparent);
    border-radius: 1px;
    animation: loading-bar 2s ease-in-out infinite;
}
@keyframes loading-bar {
    0% { left: -30%; }
    100% { left: 100%; }
}

/* menu bar */
#nav {
    position: sticky;
    top: 0;
    z-index: 400;
    background: linear-gradient(to bottom, rgba(10, 16, 24, 0.95), rgba(17, 34, 34, 0.98));
    margin: 0;
    padding: 0;
    min-height: 42px;
    border-bottom: 1px solid var(--itan-gold-dim);
    box-shadow: 0 1px 12px rgba(212, 164, 58, 0.04);
    backdrop-filter: blur(8px);
}

#nav h2, #nav hr {
    display: none;
}

ul.menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.menu > li {
    position: relative;
}

ul.menu > li > a {
    display: block;
    padding: 14px 20px;
    color: #788;
    text-decoration: none;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-family: 'Electrolize', Arial, Helvetica, sans-serif;
    transition: color 0.25s, text-shadow 0.25s;
}

ul.menu > li > a:hover {
    color: var(--anyx-accent);
    text-shadow: 0 0 12px rgba(102, 204, 204, 0.3);
}
ul.menu > li > a.active {
    color: var(--anyx-accent);
    text-shadow: 0 0 8px rgba(102, 204, 204, 0.2);
}

/* login/logout floated right */
li.menu-right {
    margin-left: auto;
}
li.menu-right ~ li.menu-right {
    margin-left: 0;
}

/* submenus — panel-style dropdowns */
.submenu, .subsubmenu, .subsubsubmenu {
    display: none;
    position: absolute;
    left: 0;
    z-index: 100;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    min-width: 190px;
    background-color: rgba(17, 34, 34, 0.96);
    border: 1px solid rgba(102, 204, 204, 0.2);
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(102, 204, 204, 0.05);
    backdrop-filter: blur(8px);
}

ul.menu > li:hover > .submenu,
ul.menu > li:hover > .submenu-right,
.submenu li:hover > .subsubmenu,
.subsubmenu li:hover > .subsubsubmenu {
    display: block;
}

/* right-aligned dropdown (profile menu) */
.submenu-right {
    right: 0;
    left: auto;
}

.menu-divider {
    border-top: 1px solid rgba(102, 204, 204, 0.1);
    margin: 4px 8px;
}

/* nested submenus position to the right */
.subsubmenu, .subsubsubmenu {
    position: absolute;
    left: 100%;
    top: 0;
}

.submenu li, .subsubmenu li, .subsubsubmenu li {
    display: block;
    position: relative;
}

.submenu a, .subsubmenu a, .subsubsubmenu a {
    display: block;
    padding: 8px 18px;
    color: #788;
    text-decoration: none;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Electrolize', Arial, Helvetica, sans-serif;
    white-space: nowrap;
    transition: color 0.2s, background-color 0.2s;
    border-radius: 4px;
    margin: 0 4px;
}

.submenu a:hover, .subsubmenu a:hover, .subsubsubmenu a:hover,
.submenu a.active, .subsubmenu a.active, .subsubsubmenu a.active {
    color: var(--anyx-accent);
    background-color: rgba(102, 204, 204, 0.06);
}

div#footer {
    width: 100%;
    height: 42px;
    line-height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--itan-gold-dim);
    border-radius: 0 0 10px 10px;
    color: #677;
    text-align: center;
    font-size: 11px;
    font-family: 'Electrolize', Arial, sans-serif;
    letter-spacing: 0.06em;
}

/* forms — mobiglass panel style */
input {
    color: var(--itan-text);
    background: rgba(17, 34, 34, 0.8);
    border: 1px solid rgba(102, 204, 204, 0.18);
    border-radius: 4px;
    padding: 6px 10px;
    font-family: 'Roboto', Arial, sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus {
    border-color: rgba(102, 204, 204, 0.5);
    box-shadow: 0 0 8px rgba(102, 204, 204, 0.12);
    outline: none;
}

textarea {
    color: var(--itan-text);
    background: rgba(17, 34, 34, 0.8);
    border: 1px solid rgba(102, 204, 204, 0.18);
    border-radius: 4px;
    padding: 8px 10px;
    font-family: 'Roboto', Arial, sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}
textarea:focus {
    border-color: rgba(102, 204, 204, 0.5);
    box-shadow: 0 0 8px rgba(102, 204, 204, 0.12);
    outline: none;
}

select {
    color: var(--itan-text);
    background: rgba(17, 34, 34, 0.8);
    border: 1px solid rgba(102, 204, 204, 0.18);
    border-radius: 4px;
    padding: 6px 10px;
    font-family: 'Roboto', Arial, sans-serif;
}

.button {
    background-color: rgba(17, 34, 34, 0.6);
    color: #8a9aaa;
    border-radius: 6px;
    border: 1px solid rgba(102, 204, 204, 0.2);
    padding: 8px 18px;
    cursor: pointer;
    font-family: 'Electrolize', Arial, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: border-color 0.25s, color 0.25s, background-color 0.25s, box-shadow 0.25s;
}

.button:hover {
    border-color: rgba(102, 204, 204, 0.5);
    color: var(--anyx-accent);
    background-color: rgba(102, 204, 204, 0.06);
    box-shadow: 0 0 10px rgba(102, 204, 204, 0.1);
}

.button option {
    background-color: #122;
    color: var(--itan-text);
}

.button-close {
    background-color: rgba(17, 34, 34, 0.6);
    color: #788;
    border-radius: 6px;
    border: 1px solid rgba(102, 204, 204, 0.15);
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'Electrolize', Arial, sans-serif;
    font-size: 14px;
    transition: border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.button-close:hover {
    border-color: rgba(255, 80, 80, 0.5);
    color: #ff5050;
    box-shadow: 0 0 10px rgba(255, 80, 80, 0.1);
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 45px;
    z-index: 100;
    background: rgba(17, 34, 34, 0.98);
    padding: 2px 12px;
    margin: 0 -12px;
    border-bottom: 1px solid rgba(102, 204, 204, 0.15);
    backdrop-filter: blur(8px);
}

div.fileinputs {
    position: relative;
}

div.fakefile {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

input.file {
    position: relative;
    text-align: right;
    opacity: 0;
    z-index: 2;
}

/* map buttons */
input[type="button"].map {
    background-color: rgba(10, 20, 20, 0.6) !important;
    color: #788 !important;
    border-radius: 6px;
    border: 1px solid #344;
    padding: 8px 18px;
    cursor: pointer;
    font-family: 'Electrolize', Arial, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: border-color 0.25s, color 0.25s, background-color 0.25s;
    margin: 2px;
    -webkit-appearance: none;
    appearance: none;
}
input[type="button"].map:hover {
    border-color: rgba(102, 204, 204, 0.5) !important;
    color: var(--anyx-accent) !important;
    background-color: rgba(102, 204, 204, 0.06) !important;
}

.map-loading {
    display: flex;
    justify-content: center;
    padding: 20px;
}
.map-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: table-spin 0.6s linear infinite;
    opacity: 0.6;
}

/* map (VO-specific, loaded by app themes) */
div#map {
    display: none;
    position: absolute;
    right: 0;
    background-color: #000;
    border: 1px solid #344;
    border-radius: 6px;
}
div#mapfloat {
    position: relative;
    float: right;
    max-width: 404px;
    width: 100%;
    z-index: 300;
}

/* admin group checkboxes */
.admin-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 4px 0;
}
.admin-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--itan-text);
    font-size: 14px;
    cursor: pointer;
}
.admin-checkbox-label input[type="checkbox"] {
    accent-color: var(--anyx-accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* structured model editor — panel style */
.model-layout {
    width: 100%;
}
.model-layout > tbody > tr > td:first-child {
    width: 100%;
}
#model-editor-wrapper {
    margin-top: 8px;
}
.model-section {
    background: rgba(10, 20, 20, 0.6);
    border: 1px solid rgba(102, 204, 204, 0.12);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 8px;
}
.model-section h3 {
    margin: 0 0 6px 0;
    font-size: 12px;
    text-transform: uppercase;
    color: #788;
    letter-spacing: 0.1em;
    font-family: 'Electrolize', Arial, sans-serif;
}
.model-field-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.model-field-row label {
    white-space: nowrap;
    min-width: 80px;
    margin: 0;
}
.model-input {
    flex: 1;
    box-sizing: border-box;
}
.model-op-body {
    padding-left: 8px;
}
.model-op-body label {
    display: block;
    margin: 6px 0 2px;
    color: #677;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
textarea.model-query,
textarea#model-raw-json {
    width: 100%;
    min-height: 80px;
    font-family: monospace;
    font-size: 13px;
    color: var(--itan-text);
    background: rgba(10, 20, 20, 0.8);
    border: 1px solid rgba(102, 204, 204, 0.15);
    border-radius: 4px;
    padding: 8px;
    resize: vertical;
    box-sizing: border-box;
}
table.model-options {
    margin: 4px 0;
}
table.model-options td {
    padding: 2px 4px;
}
table.model-options input.opt-key,
table.model-options input.opt-val {
    background: rgba(10, 20, 20, 0.8);
    color: var(--itan-text);
    border: 1px solid rgba(102, 204, 204, 0.15);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
}
.model-add-option,
.model-remove-option {
    font-size: 12px;
    padding: 2px 8px;
}

/* CRUD tab bar */
.model-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
}
.model-tab {
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    font-size: 11px;
    letter-spacing: 0.1em;
    margin-right: 2px;
    font-family: 'Electrolize', Arial, sans-serif;
}
.model-tab.active {
    background: rgba(10, 20, 20, 0.6);
    color: var(--itan-text);
    border-color: rgba(102, 204, 204, 0.2);
    border-bottom: 2px solid var(--anyx-accent);
}
.model-tabs + .model-crud-section {
    border-top-left-radius: 0;
}
/* Analytics tab bar */
.analytics-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}
.analytics-tab {
    border-radius: 6px 6px 0 0;
    border-bottom: 2px solid transparent;
    font-size: 11px;
    letter-spacing: 0.1em;
    font-family: 'Electrolize', Arial, sans-serif;
}
.analytics-tab.active {
    background: rgba(10, 20, 20, 0.6);
    color: var(--itan-text);
    border-bottom: 2px solid var(--anyx-accent);
}

.model-view-toggle {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    border-radius: 0;
    border-bottom: none;
    letter-spacing: 0.1em;
    font-size: 11px;
    font-family: 'Electrolize', Arial, sans-serif;
}
.model-op-actions {
    margin-top: 8px;
}

/* results panel */
.model-results-panel:empty {
    display: none;
    border: none;
    padding: 0;
    margin: 0;
}
.model-results-panel pre {
    background: rgba(10, 20, 20, 0.8);
    border: 1px solid rgba(102, 204, 204, 0.12);
    border-radius: 4px;
    color: var(--itan-text);
    font-size: 12px;
    max-height: 400px;
    overflow: auto;
    padding: 8px;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}
.model-results-loading {
    color: #677;
    font-style: italic;
    font-size: 12px;
}
.model-results-error {
    color: #c66;
    font-size: 12px;
}
.model-results-empty {
    color: #677;
    font-size: 12px;
}
.model-preview-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* guide page layout — reusable 2-column section grid for game guides */
.guide-header { text-align: center; margin-bottom: 20px; }
.guide-header h2 { color: var(--itan-gold); font-family: 'Electrolize', Arial, sans-serif; font-size: 28px; margin: 0 0 4px; text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 0 12px rgba(102, 204, 204, 0.2); }
.guide-header h4 { color: #788; margin: 0 0 8px; font-weight: normal; font-family: 'Electrolize', Arial, sans-serif; letter-spacing: 0.08em; }
.guide-header .guide-meta { color: #677; font-size: 11px; }
.guide-grid { columns: 2; column-gap: 12px; margin-bottom: 16px; }

/* non-collapsible guide section (overview etc.) */
.guide-section-static { background: rgba(10, 20, 20, 0.6); border: 1px solid rgba(102, 204, 204, 0.2); border-radius: 6px; overflow: hidden; margin-bottom: 16px; }
.guide-section-static .guide-section-head { cursor: default; }
.guide-section-static .guide-section-head::after { display: none; }

/* spoiler toggle bar */
.guide-spoiler-toggle { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 8px 14px; background: rgba(102, 204, 204, 0.03); border: 1px solid rgba(102, 204, 204, 0.1); border-radius: 6px; }
.guide-spoiler-warn { color: #788; font-family: 'Electrolize', Arial, sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-style: italic; }
.guide-spoiler-toggle button { background: rgba(17, 34, 34, 0.6); border: 1px solid rgba(102, 204, 204, 0.2); color: #788; padding: 4px 14px; border-radius: 4px; cursor: pointer; font-family: 'Electrolize', Arial, sans-serif; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; transition: border-color 0.2s, color 0.2s, background-color 0.2s; }
.guide-spoiler-toggle button:hover { border-color: rgba(102, 204, 204, 0.5); color: var(--anyx-accent); background: rgba(102, 204, 204, 0.06); }

/* collapsible guide sections using <details> */
details.guide-section { background: rgba(10, 20, 20, 0.6); border: 1px solid rgba(102, 204, 204, 0.12); border-radius: 6px; overflow: hidden; break-inside: avoid; margin-bottom: 12px; }
details.guide-section[open] { border-color: rgba(102, 204, 204, 0.2); }
details.guide-section > summary { list-style: none; cursor: pointer; }
details.guide-section > summary::-webkit-details-marker { display: none; }
details.guide-section > summary::marker { display: none; content: ''; }
.guide-section-head { background: linear-gradient(90deg, rgba(212, 164, 58, 0.12) 0%, rgba(212, 164, 58, 0.04) 100%); color: var(--itan-gold); padding: 8px 14px; font-family: 'Electrolize', Arial, sans-serif; font-size: 13px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; justify-content: space-between; transition: background 0.2s; }
.guide-section-head:hover { background: linear-gradient(90deg, rgba(212, 164, 58, 0.18) 0%, rgba(212, 164, 58, 0.08) 100%); }
.guide-section-head::after { content: '\25B6'; font-size: 9px; color: #788; transition: transform 0.2s; }
details.guide-section[open] > summary .guide-section-head::after { transform: rotate(90deg); }
.guide-grid details.guide-section:not([open]) > summary .guide-section-head { filter: blur(4px); transition: filter 0.3s, background 0.2s; }
.guide-grid details.guide-section:not([open]) > summary .guide-section-head:hover { filter: blur(1px); }
.guide-section-sub { color: #788; font-size: 11px; font-style: italic; padding: 8px 14px 0; margin: 0; }
.guide-section-body { padding: 10px 14px 14px; }
.guide-section-body ul { margin: 6px 0; padding-left: 18px; }
.guide-section-body li { margin-bottom: 4px; font-size: 13px; }
.guide-section-body img { border: none; border-radius: 4px; max-width: 100%; }
.guide-section-img { float: right; margin: 0 0 8px 12px; max-width: 140px; }
.guide-full { column-span: all; }
.guide-tip { background: rgba(102, 204, 204, 0.04); border: 1px solid rgba(102, 204, 204, 0.2); border-radius: 6px; padding: 12px 16px; margin: 0 0 16px; }
.guide-tip strong { color: var(--anyx-accent); }
.guide-loot-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.guide-loot-grid-2 { grid-template-columns: 1fr 1fr; }
.guide-loot-grid-1 { grid-template-columns: 1fr; }
.guide-loot-box { background: rgba(10, 20, 20, 0.6); border: 1px solid rgba(102, 204, 204, 0.12); border-radius: 6px; overflow: hidden; }
.guide-loot-box .guide-section-head { font-size: 12px; padding: 5px 12px; }
.guide-loot-box .guide-section-head::after { display: none; }
.guide-loot-box table { width: 100%; border-collapse: collapse; font-size: 12px; }
.guide-loot-box td { padding: 3px 10px; border-bottom: 1px solid rgba(102, 204, 204, 0.06); }
/* Guide text highlights — reusable inline accent classes */
.guide-hl { color: var(--anyx-accent); }
.guide-hl-warn { color: #cc4444; }
.guide-hl-rad { color: #66cc44; }
li.guide-warn { color: #cc4444; }
.guide-footer { color: #677; font-size: 10px; text-align: center; margin-top: 16px; }

/* ship stats tables */
.ship-stats { width: 100%; border-collapse: collapse; font-size: 12px; }
.ship-stats td { padding: 4px 10px; border-bottom: 1px solid rgba(102, 204, 204, 0.06); }
.ship-stats td:first-child { color: #788; white-space: nowrap; }
.ship-stats td:last-child { text-align: right; color: var(--itan-text); font-family: 'Electrolize', Arial, sans-serif; }

/* guide navigation links (button-style) */
.guide-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.guide-nav a { flex: 1; min-width: 120px; display: block; text-align: center; padding: 10px 16px; background: rgba(10, 20, 20, 0.6); border: 1px solid rgba(102, 204, 204, 0.2); border-radius: 6px; color: var(--anyx-accent); font-family: 'Electrolize', Arial, sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.guide-nav a:hover { border-color: rgba(102, 204, 204, 0.5); background: rgba(102, 204, 204, 0.06); color: #fff; }

/* external tool cards — amber/orange accent to distinguish from internal nav */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tool-card { background: rgba(10, 20, 20, 0.6); border: 1px solid rgba(231, 170, 58, 0.2); border-radius: 6px; padding: 14px 16px; transition: border-color 0.2s, background 0.2s; display: flex; flex-direction: column; }
.tool-card:hover { border-color: rgba(231, 170, 58, 0.5); background: rgba(231, 170, 58, 0.04); }
.tool-card-name { color: #e7aa3a; font-family: 'Electrolize', Arial, sans-serif; font-size: 14px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.tool-card-desc { color: var(--itan-text); font-size: 12px; line-height: 1.5; flex: 1; margin-bottom: 10px; }
.tool-card-link { display: inline-block; padding: 6px 14px; background: rgba(231, 170, 58, 0.1); border: 1px solid rgba(231, 170, 58, 0.3); border-radius: 4px; color: #e7aa3a; font-family: 'Electrolize', Arial, sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; transition: border-color 0.2s, background 0.2s, color 0.2s; align-self: flex-start; }
.tool-card-link:hover { border-color: rgba(231, 170, 58, 0.6); background: rgba(231, 170, 58, 0.15); color: #fff; }
.tool-card-link::after { content: ' \2197'; font-size: 10px; }
@media (max-width: 700px) { .tool-grid { grid-template-columns: 1fr; } }

/* 1-pager toggle */
.guide-onepager-toggle { text-align: center; margin-bottom: 16px; }
.guide-onepager-toggle button { background: rgba(17, 34, 34, 0.6); border: 1px solid rgba(102, 204, 204, 0.2); color: #788; padding: 6px 16px; border-radius: 4px; cursor: pointer; font-family: 'Electrolize', Arial, sans-serif; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; transition: border-color 0.2s, color 0.2s, background-color 0.2s; }
.guide-onepager-toggle button:hover { border-color: rgba(102, 204, 204, 0.5); color: var(--anyx-accent); background: rgba(102, 204, 204, 0.06); }
.guide-onepager-img { display: none; text-align: center; margin-bottom: 16px; }
.guide-onepager-img img { max-width: 100%; border: 1px solid rgba(102, 204, 204, 0.15); border-radius: 6px; }

/* mobile breakpoint */
@media (max-width: 700px) {
    .guide-grid { columns: 1; }
    .guide-loot-grid, .guide-loot-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    #itan-wrapper {
        margin: 0;
    }
    #itan-container {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    ul.menu > li > a {
        padding: 10px 12px;
        font-size: 11px;
    }
    .submenu a, .subsubmenu a, .subsubsubmenu a {
        padding: 8px 14px;
    }
    div#mapfloat {
        float: none;
        margin: 0 auto;
    }
    div#data {
        padding: 12px;
    }
}
