* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    height: 100vh;
    display: flex;
    overflow: hidden;
    background: radial-gradient(1200px 800px at 20% 10%, rgba(122,167,255,.20), transparent 55%),
                radial-gradient(900px 700px at 80% 20%, rgba(52,211,153,.14), transparent 50%),
                #0b0f14;
    color: #e9eef6;
}
body.theme-light {
    background: radial-gradient(1200px 800px at 20% 10%, rgba(59,130,246,.18), transparent 55%),
                radial-gradient(900px 700px at 80% 20%, rgba(16,185,129,.16), transparent 50%),
                #f6f7fb;
    color: #0b1220;
}
body.theme-light #menu {
    background: linear-gradient(180deg, rgba(15,23,42,.08), rgba(15,23,42,.03));
    border-right: 1px solid rgba(15,23,42,.12);
}
body.theme-light #menu li a,
body.theme-light #menu button {
    color: #0b1220;
}
body.theme-light .welcome-card,
body.theme-light .history-card,
body.theme-light .settings-card,
body.theme-light .history-item {
    background: rgba(255,255,255,.75);
    border-color: rgba(15,23,42,.12);
    color: #0b1220;
}
body.theme-light .welcome-card p,
body.theme-light .history-card p,
body.theme-light .settings-card p {
    color: #1f2937;
}
body.theme-light .welcome-card h1 {
    color: #0b1220;
}
body.theme-light .fab,
body.theme-light .back-btn,
body.theme-light .app-banner,
body.theme-light .reminder-banner {
    background: rgba(255,255,255,.85);
    color: #0b1220;
    border-color: rgba(15,23,42,.15);
}
body.theme-light .settings-card .btn,
body.theme-light .welcome-actions button,
body.theme-light .history-controls .btn {
    background: rgba(15,23,42,.08);
    color: #0b1220;
    border-color: rgba(15,23,42,.2);
}
body.theme-light .small,
body.theme-light .history-meta,
body.theme-light .history-empty {
    color: rgba(15,23,42,.6);
}
body.theme-light .history-item,
body.theme-light .history-links a {
    color: #1f2937;
}
body.theme-light .history-meta {
    color: #374151;
}
body.theme-light #menu li a:hover {
    background: rgba(15,23,42,.08);
}
body.theme-light .welcome,
body.theme-light .history,
body.theme-light .settings {
    background: radial-gradient(1200px 800px at 20% 10%, rgba(59,130,246,.16), transparent 55%),
                radial-gradient(900px 700px at 80% 20%, rgba(16,185,129,.12), transparent 50%),
                #f6f7fb;
}
body.theme-light .welcome-actions button {
    background: rgba(15,23,42,.08);
    color: #0b1220;
    border-color: rgba(15,23,42,.2);
}
.back-btn {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 60;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(0,0,0,.55);
    color: #e9eef6;
}
.back-btn.hidden {
    display: none;
}

/* Sidebar */
#menu {
    width: 220px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    color: #e9eef6;
    display: flex;
    flex-direction: column;
    transition: width 0.25s ease;
    position: relative;
    z-index: 100;
    border-right: 1px solid rgba(255,255,255,.10);
}

#menu.hidden {
    width: 0;
    border-right: none;
}

/* Hide content when collapsed */
#menu.hidden ul,
#menu.hidden button {
    display: none;
}

#menu button {
    font-size: 18px;
    padding: 14px;
    background: transparent;
    color: #e9eef6;
    border: none;
    cursor: pointer;
}

#menu button:hover {
    background: rgba(255,255,255,.08)
}

#menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.35) transparent;
    padding-bottom: 77px;
}

#menu ul::-webkit-scrollbar {
    width: 10px;
}

#menu ul::-webkit-scrollbar-track {
    background: rgba(255,255,255,.06);
    border-radius: 999px;
}

#menu ul::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.35);
    border-radius: 999px;
    border: 3px solid rgba(0,0,0,.18);
}

#menu .menu-list.hidden {
    display: none;
}

#menu li a {
    display: block;
    padding: 12px 14px;
    color: #e9eef6;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    white-space: nowrap;
}

#menu li a:hover {
    background: rgba(255,255,255,.08);
    color: #ffffff;
}

/* Main content */
#content {
    flex: 1;
    height: 100%;
    position: relative;
}

.welcome {
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: radial-gradient(1200px 800px at 20% 10%, rgba(122,167,255,.20), transparent 55%),
                radial-gradient(900px 700px at 80% 20%, rgba(52,211,153,.14), transparent 50%),
                #0b0f14;
}

.welcome-card {
    width: min(900px, 92vw);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    padding: 28px 30px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
    display: grid;
    gap: 14px;
    color: #e9eef6;
}

.welcome-card img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.welcome-card h1 {
    margin: 0;
    font-size: 32px;
    color: #e9eef6;
}

.welcome-card p {
    margin: 0;
    line-height: 1.6;
    color: #9fb0c6;
}
.small {
    color: #9fb0c6;
    font-size: 13px;
}

.welcome.show {
    display: flex;
}

.welcome-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.welcome-actions button {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(255,255,255,.06);
    color: #e9eef6;
}

.small-screen-note {
    display: none;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(251,113,133,.14);
    border: 1px solid rgba(251,113,133,.45);
    color: #f5d7dd;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}
.history {
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: radial-gradient(1200px 800px at 20% 10%, rgba(122,167,255,.20), transparent 55%),
                radial-gradient(900px 700px at 80% 20%, rgba(52,211,153,.14), transparent 50%),
                #0b0f14;
}
.history.show {
    display: flex;
}
.history-card {
    width: min(900px, 92vw);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
    display: grid;
    gap: 14px;
    color: #e9eef6;
}
.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.history-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.history-controls .btn {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255,255,255,.06);
    color: #e9eef6;
    font-weight: 600;
    cursor: pointer;
}
.history-controls input {
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: #e9eef6;
    font-size: 13px;
}
.history-list {
    display: grid;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}
.history-item {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    display: grid;
    gap: 6px;
}
.history-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #9fb0c6;
}
.history-links {
    display: grid;
    gap: 4px;
}
.history-links a {
    color: #e9eef6;
    text-decoration: none;
    word-break: break-all;
}
.history-links a:hover {
    text-decoration: underline;
}
.history-empty {
    color: #9fb0c6;
    font-size: 14px;
}
.custom-links.hidden {
    display: none;
}
#customLinks {
    list-style: none;
    padding: 0;
    margin: 0;
}
#customLinksHeader {
    padding: 10px 14px;
    color: #9fb0c6;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.settings {
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 32px;
    background: radial-gradient(1200px 800px at 20% 10%, rgba(122,167,255,.20), transparent 55%),
                radial-gradient(900px 700px at 80% 20%, rgba(52,211,153,.14), transparent 50%),
                #0b0f14;
}
#closeSettingsBtn {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 5;
}
.settings.show {
    display: flex;
}
.settings-card {
    width: min(900px, 92vw);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    padding: 28px;
    margin: 30px 0;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
    display: grid;
    gap: 18px;
    color: #e9eef6;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.settings-card {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.35) rgba(255,255,255,.06);
}
.settings-card::-webkit-scrollbar {
    width: 10px;
}
.settings-card::-webkit-scrollbar-track {
    background: rgba(255,255,255,.06);
    border-radius: 999px;
}
.settings-card::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.35);
    border-radius: 999px;
    border: 3px solid rgba(0,0,0,.18);
}
.settings-card h2 {
    margin: 50px 0 12px 0;
    font-size: 18px;
}
.settings-card h1 {
    margin: 50px 0 12px 0;
}
.settings-grid {
    display: grid;
    gap: 18px;
}
.settings-grid > div {
    border-top: 1px solid rgba(255,255,255,.10);
    padding-top: 12px;
}
.settings-grid > div:first-child {
    border-top: 0;
    padding-top: 0;
}
body.theme-light .settings-grid > div {
    border-top-color: rgba(15,23,42,.12);
}
.settings-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 8px;
}
.settings-card input[type="text"],
.settings-card select,
.settings-card textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    color: inherit;
}
.settings-card select option {
    background: #0b0f14;
    color: #e9eef6;
}
body.theme-light .settings-card input[type="text"],
body.theme-light .settings-card select,
body.theme-light .settings-card textarea {
    background: rgba(15,23,42,.06);
    border-color: rgba(15,23,42,.2);
    color: #0b1220;
}
body.theme-light .settings-card select option {
    background: #f6f7fb;
    color: #0b1220;
}
.settings-card textarea {
    min-height: 140px;
    resize: vertical;
}
.settings-card textarea.autosize {
    resize: none;
    overflow: hidden;
}
.settings-card .toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 13px;
}
.settings-card .btn {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(255,255,255,.06);
    color: #e9eef6;
    margin-top: 15px;
}
.floating-actions {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 70;
}
.fab {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(0,0,0,.55);
    color: #e9eef6;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
#backupBtn {
    position: relative;
    padding: 10px;
    width: 42px;
    height: 42px;
    justify-content: center;
    border-radius: 999px;
}
#backupBtn .backup-hint {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: rgba(0,0,0,.7);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    padding: 6px 10px;
}
#backupBtn {
    border-radius: 999px;
}
.fab.icon-only {
    padding: 10px;
}
.fab svg {
    display: block;
}
.backup-hint {
    display: none;
    font-size: 12px;
    color: #e9eef6;
}
.backup-hint.show {
    display: inline;
}
.app-banner {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 65;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.55);
    color: #e9eef6;
    font-size: 13px;
    letter-spacing: 0.2px;
    display: none;
}
.app-banner.show {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.app-label {
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 10px;
}
.app-text {
    white-space: nowrap;
}
.reminder-banner {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.55);
    color: #e9eef6;
    font-size: 13px;
    letter-spacing: 0.2px;
    max-width: 280px;
    overflow: hidden;
    white-space: nowrap;
}
.reminder-banner.show {
    display: inline-flex;
}
.reminder-label {
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 10px;
}
.reminder-text {
    display: inline-block;
    white-space: nowrap;
}
.reminder-text.scrolling {
    padding-left: 100%;
    animation: reminder-scroll var(--scroll-duration, 10s) linear infinite;
}
@keyframes reminder-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@media (max-width: 900px) {
    #menu,
    #menuStrip,
    .floating-actions,
    .app-banner,
    .reminder-banner,
    .back-btn,
    #noterStrip,
    #wizardframe,
    #toolframe,
    .history,
    .settings {
        display: none !important;
    }

    .welcome {
        display: flex !important;
    }

    .small-screen-note {
        display: inline-flex;
        align-items: center;
    }
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#wizardframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #0b0b0b;
    display: none;
}

#noterStrip {
    position: fixed;
    right: 0;
    top: 70px;
    width: 28px;
    height: 140px;
    background: rgba(0,0,0,.55);
    color: #ffffff;
    border: none;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.2em;
    font-size: 12px;
    z-index: 50;
}

#menuStrip {
    position: fixed;
    left: 0;
    top: 70px;
    width: 28px;
    height: 140px;
    background: rgba(0,0,0,.55);
    color: #ffffff;
    border: none;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.2em;
    font-size: 12px;
    z-index: 120;
    transition: left 0.25s ease;
}

#noterPanel {
    display: none;
    position: absolute;
    inset: 0;
    height: 100%;
    background: #0b0f14;
}

#noterPanel.show {
    display: block;
}

#noterPanel .noter-app {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    color: #e9eef6;
    background: radial-gradient(1200px 800px at 20% 10%, rgba(122,167,255,.20), transparent 55%),
                radial-gradient(900px 700px at 80% 20%, rgba(52,211,153,.14), transparent 50%),
                #0b0f14;
}

#noterPanel[data-theme="light"] .noter-app {
    color: #0b1220;
    background: radial-gradient(1200px 800px at 20% 10%, rgba(122,167,255,.20), transparent 55%),
                radial-gradient(900px 700px at 80% 20%, rgba(52,211,153,.14), transparent 50%),
                #f6f7fb;
}

#noterPanel .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    padding-left: 100px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 6px;
    box-shadow: none;
    backdrop-filter: blur(10px);
}

#noterPanel .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

#noterPanel .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #7aa7ff;
    box-shadow: 0 0 0 6px rgba(122,167,255,.12);
    flex: 0 0 auto;
}

#noterPanel .titlewrap {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

#noterPanel .apptitle {
    font-weight: 700;
    letter-spacing: .2px;
    font-size: 14px;
}

#noterPanel .status {
    font-size: 12px;
    color: #9fb0c6;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
    flex-wrap: wrap;
}

#noterPanel .status .pill {
    padding: 3px 8px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 6px;
    background: rgba(255,255,255,.04);
}

#noterPanel .controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

#noterPanel .btn {
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: inherit;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

#noterPanel .btn.primary {
    background: rgba(122,167,255,.14);
    border-color: rgba(122,167,255,.40);
}

#noterPanel .btn.danger {
    background: rgba(251,113,133,.12);
    border-color: rgba(251,113,133,.38);
}

#noterPanel .split {
    height: 34px;
    width: 1px;
    background: rgba(255,255,255,.10);
    margin: 0 4px;
}

#noterPanel .select {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 6px;
    background: rgba(255,255,255,.04);
}

#noterPanel .select label {
    font-size: 12px;
    color: #9fb0c6;
}

#noterPanel select,
#noterPanel input[type="text"] {
    background: transparent;
    border: none;
    outline: none;
    color: inherit;
    font-size: 13px;
    min-width: 78px;
}

#noterPanel select option {
    background: #0f1621;
    color: #e9eef6;
}

#noterPanel .wraptoggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 6px;
    background: rgba(255,255,255,.04);
    user-select: none;
}

#noterPanel .main {
    flex: 1;
    min-height: 0;
    display: flex;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: hidden;
}
#noterPanel .note-layout {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 12px;
    width: 100%;
}
#noterPanel .note-editor {
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    box-shadow: none;
    overflow: hidden;
}

#noterPanel textarea {
    width: 100%;
    height: 100%;
    padding: 18px 18px 22px;
    padding-left: 100px;
    border: none;
    outline: none;
    background: transparent;
    color: inherit;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 16px;
    line-height: 1.55;
    resize: none;
    white-space: pre-wrap;
    word-break: break-word;
}
#noterPanel .note-list {
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 6px;
    background: rgba(255,255,255,.03);
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#noterPanel .note-item {
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    background: rgba(255,255,255,.04);
    color: #e9eef6;
    font-size: 13px;
    line-height: 1.3;
}
#noterPanel .note-item.active {
    border-color: rgba(125,211,252,.6);
    background: rgba(56,189,248,.12);
}
#noterPanel .note-item small {
    display: block;
    color: #9fb0c6;
    font-size: 11px;
    margin-top: 4px;
}
#noterPanel[data-theme="light"] .note-list {
    background: rgba(15,23,42,.04);
    border-color: rgba(15,23,42,.12);
}
#noterPanel[data-theme="light"] .note-item {
    color: #0b1220;
    background: rgba(15,23,42,.06);
}
#noterPanel[data-theme="light"] .note-item.active {
    border-color: rgba(37,99,235,.5);
    background: rgba(59,130,246,.16);
}
#noterPanel[data-theme="light"] .note-item small {
    color: rgba(15,23,42,.65);
}

#noterPanel .footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 6px;
    background: rgba(255,255,255,.03);
}
#noterPanel .footer-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#noterPanel .hint {
    font-size: 12px;
    color: #9fb0c6;
}

#noterPanel .toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(15,22,33,.92);
    color: inherit;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
    max-width: 340px;
    font-size: 13px;
}

#noterPanel .toast.show {
    opacity: 1;
    transform: translateY(0);
}

#noterPanel .modalback {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#noterPanel .modalback.show {
    display: flex;
}

#noterPanel .modal {
    width: min(560px, 100%);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: #0f1621;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    overflow: hidden;
}

#noterPanel .modalheader {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

#noterPanel .modalbody {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#noterPanel .row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

#noterPanel .row input[type="text"] {
    flex: 1 1 220px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    min-width: 220px;
}

.admin {
    display: none;
}

body.admin-on .admin {
    display: list-item;
}

body.admin-on hr.admin {
    display: block;
}

body.admin-on .lual {
    display: none;
}