/* ==========================================================================
   STUDIO — 投稿管理UI
   公開側 (style.css) と同じネオブルータリズムの言語を使いつつ、
   長文入力の邪魔になる慣性スクロール・カスタムカーソル・傾きは持ち込まない。
   ========================================================================== */

/* style.css の overflow-x:hidden はスクロールコンテナを作り position:sticky を
   無効化してしまう。はみ出しは抑えたいので、コンテナを作らない clip に置き換える。 */
.st-html,
.st-body {
    overflow-x: clip;
}

.st-body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
    min-height: 100vh;
}


/* ==========================================================================
   HEADER
   ========================================================================== */

.st-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 16px 28px;
    background: #111;
    border-bottom: 5px solid var(--accent-yellow);
}

.st-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
}

.st-logo span {
    color: var(--accent-orange);
}

.st-header-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.st-header-nav a {
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    padding-bottom: 2px;
    border-bottom: 3px solid transparent;
}

.st-header-nav a:hover {
    color: var(--accent-yellow);
    border-bottom-color: var(--accent-yellow);
}

.st-user {
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #111;
    background: var(--accent-green);
    border: 2px solid #fff;
    padding: 3px 10px;
}

.st-logout-form {
    display: inline;
}


/* ==========================================================================
   LAYOUT
   ========================================================================== */

.st-main {
    max-width: 1500px;
    margin: 0 auto;
    padding: 36px 28px 100px 28px;
}

.st-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.st-page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0;
}

.st-page-sub {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 0 0;
    font-weight: 700;
    font-size: 0.95rem;
}


/* ==========================================================================
   MESSAGES
   ========================================================================== */

.st-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.st-message {
    border: 4px solid #111;
    box-shadow: 6px 6px 0px #111;
    padding: 16px 20px;
    font-weight: 900;
    background: var(--accent-yellow);
}

.st-message.is-success { background: var(--accent-green); color: #fff; }
.st-message.is-error   { background: var(--accent-orange); color: #fff; }
.st-message.is-warning { background: var(--accent-yellow); color: #111; }


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.st-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    color: #111;
    background: #fff;
    border: 3px solid #111;
    box-shadow: 4px 4px 0px #111;
    padding: 11px 20px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    white-space: nowrap;
}

.st-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px #111;
}

.st-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #111;
}

.st-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: 4px 4px 0px #111;
}

.st-btn-primary {
    background: #111;
    color: var(--accent-yellow);
    box-shadow: 4px 4px 0px var(--accent-orange);
}

.st-btn-primary:hover {
    box-shadow: 7px 7px 0px var(--accent-orange);
}

.st-btn-danger {
    background: var(--accent-orange);
    color: #fff;
}

.st-btn-ghost {
    background: transparent;
    box-shadow: 3px 3px 0px #111;
}

.st-header-nav .st-btn-ghost {
    color: #fff;
    border-color: #fff;
    box-shadow: 3px 3px 0px var(--accent-orange);
    padding: 6px 12px;
    font-size: 0.8rem;
}

.st-header-nav .st-btn-ghost:hover {
    background: var(--accent-yellow);
    color: #111;
    border-color: #111;
}

.st-btn-small {
    font-size: 0.8rem;
    padding: 8px 14px;
    box-shadow: 3px 3px 0px #111;
}

.st-btn-block {
    width: 100%;
}


/* ==========================================================================
   CHIPS
   ========================================================================== */

.st-chip {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 2px solid #111;
    padding: 3px 10px;
    white-space: nowrap;
}

.st-chip.is-published { background: var(--accent-green); color: #fff; }
.st-chip.is-draft     { background: var(--accent-yellow); color: #111; }


/* ==========================================================================
   PANELS
   ========================================================================== */

.st-panel {
    background: #fff;
    border: 4px solid #111;
    box-shadow: 8px 8px 0px #111;
    margin-bottom: 26px;
}

.st-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: #111;
    color: #fff;
}

.st-panel-head h2 {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

.st-panel-note {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-yellow);
}

.st-panel-body {
    padding: 22px 20px;
}

.st-panel-danger {
    border-color: var(--accent-orange);
    box-shadow: 8px 8px 0px var(--accent-orange);
}

.st-panel-danger .st-panel-head {
    background: var(--accent-orange);
}


/* ==========================================================================
   FORM FIELDS
   ========================================================================== */

.st-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
}

.st-field:last-child {
    margin-bottom: 0;
}

.st-label {
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* .st-native-form は Django が生成する素の input（Admin ログインなど）を
   .st-input と同じ見た目に揃えるためのもの。 */
.st-input,
.st-native-form input[type="text"],
.st-native-form input[type="password"] {
    font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    width: 100%;
    padding: 12px 14px;
    border: 3px solid #111;
    border-radius: 0;
    background: var(--bg-color);
    color: #111;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.st-input:focus,
.st-native-form input[type="text"]:focus,
.st-native-form input[type="password"]:focus {
    outline: none;
    background: #fff;
    box-shadow: 4px 4px 0px var(--accent-orange);
}

textarea.st-input {
    resize: vertical;
    line-height: 1.7;
}

.st-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #111 50%),
                      linear-gradient(135deg, #111 50%, transparent 50%);
    background-position: calc(100% - 18px) center, calc(100% - 12px) center;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.st-file {
    font-family: monospace;
    font-size: 0.85rem;
    width: 100%;
}

.st-help {
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    opacity: 0.7;
}

.st-error {
    font-size: 0.85rem;
    font-weight: 900;
    color: #fff;
    background: var(--accent-orange);
    border: 2px solid #111;
    padding: 6px 12px;
    margin: 0;
    align-self: flex-start;
}

.st-field.has-error .st-input,
.st-native-form .st-field.has-error input[type="text"],
.st-native-form .st-field.has-error input[type="password"] {
    border-color: var(--accent-orange);
    background: #fff;
    box-shadow: 4px 4px 0px var(--accent-orange);
}

.st-error-box {
    background: var(--accent-orange);
    color: #fff;
    border: 4px solid #111;
    box-shadow: 6px 6px 0px #111;
    padding: 18px 22px;
    margin-bottom: 26px;
    font-weight: 900;
}

.st-error-box p {
    margin: 0 0 6px 0;
}

.st-error-box p:last-child {
    margin-bottom: 0;
}

.st-inline-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.st-inline-label .st-input {
    width: 70px;
    padding: 5px 8px;
    font-size: 0.85rem;
}

.st-delete-label {
    color: var(--accent-orange);
}


/* ==========================================================================
   LOGIN
   ========================================================================== */

.st-login {
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

.st-login-box {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 5px solid #111;
    box-shadow: 14px 14px 0px #111;
    padding: 44px;
}

.st-login-title {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0 0 16px 0;
}

.st-login-lead {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 30px 0;
    padding-bottom: 20px;
    border-bottom: 4px solid #111;
}

.st-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.st-login-sub {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111;
    align-self: flex-start;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.st-login-sub:hover {
    color: var(--accent-orange);
}

.st-login-alt {
    margin: 26px 0 0 0;
    padding-top: 20px;
    border-top: 4px solid #111;
    font-size: 0.85rem;
    font-weight: 700;
}

.st-login-alt a {
    color: #111;
    background: var(--accent-yellow);
    border: 2px solid #111;
    padding: 2px 8px;
    text-decoration: none;
    font-weight: 900;
}

.st-login-alt a:hover {
    background: var(--accent-orange);
    color: #fff;
}


/* ==========================================================================
   PROJECT LIST
   ========================================================================== */

.st-table {
    background: #fff;
    border: 4px solid #111;
    box-shadow: 10px 10px 0px #111;
}

.st-row {
    display: grid;
    grid-template-columns: 44px 90px 1fr 100px 100px auto;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 3px solid #111;
}

.st-row:last-child {
    border-bottom: none;
}

.st-row:hover:not(.st-row-head) {
    background: var(--accent-yellow);
}

.st-row-head {
    background: #111;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.st-col-order {
    font-family: monospace;
    font-weight: 900;
    text-align: center;
}

.st-col-thumb img {
    width: 90px;
    height: 58px;
    object-fit: cover;
    display: block;
    border: 3px solid #111;
}

.st-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 58px;
    border: 3px dashed #111;
    font-size: 0.7rem;
    font-weight: 900;
    opacity: 0.5;
}

.st-col-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.st-row-title {
    font-size: 1.15rem;
    font-weight: 900;
    text-decoration: none;
    color: #111;
    line-height: 1.3;
    word-break: break-word;
}

.st-row-title:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

.st-row-meta {
    font-family: monospace;
    font-size: 0.78rem;
    opacity: 0.65;
    word-break: break-all;
}

.st-col-date {
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 700;
}

.st-col-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.st-empty {
    background: #fff;
    border: 4px dashed #111;
    padding: 70px 30px;
    text-align: center;
}

.st-empty p {
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0 0 24px 0;
}


/* ==========================================================================
   DELETE CONFIRM
   ========================================================================== */

.st-confirm {
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

.st-confirm-box {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border: 5px solid var(--accent-orange);
    box-shadow: 14px 14px 0px var(--accent-orange);
    padding: 44px;
}

.st-confirm-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    color: var(--accent-orange);
    margin: 0 0 20px 0;
}

.st-confirm-lead {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.8;
    margin: 0 0 32px 0;
}

.st-confirm-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}


/* ==========================================================================
   EDITOR LAYOUT
   ========================================================================== */

.st-toolbar {
    position: sticky;
    top: 74px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: var(--accent-yellow);
    border: 4px solid #111;
    box-shadow: 6px 6px 0px #111;
    padding: 12px 16px;
    margin-bottom: 28px;
}

.st-toolbar-left,
.st-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.st-toolbar-mode {
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    background: #111;
    color: var(--accent-yellow);
    padding: 5px 12px;
}

.st-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 30px;
    align-items: start;
}

.st-editor-main {
    min-width: 0;
}

.st-editor-side {
    min-width: 0;
}

.st-field-title {
    margin-bottom: 26px;
}

.st-input-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    padding: 20px 22px;
    border-width: 5px;
    box-shadow: 8px 8px 0px #111;
    background: #fff;
}

.st-input-title:focus {
    box-shadow: 8px 8px 0px var(--accent-orange);
}

.st-thumb-preview {
    border: 3px solid #111;
    line-height: 0;
    margin-bottom: 4px;
}

.st-thumb-preview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.st-gallery-rows {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 14px;
}

.st-gallery-row {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--bg-color);
    border: 3px solid #111;
}

.st-gallery-thumb {
    flex: 0 0 74px;
    line-height: 0;
}

.st-gallery-thumb img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    display: block;
    border: 2px solid #111;
}

.st-gallery-fields {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
    flex: 1;
}

.st-gallery-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}


/* ==========================================================================
   BLOCK EDITOR
   ========================================================================== */

.eb-empty {
    border: 4px dashed #111;
    background: var(--bg-color);
    padding: 46px 24px;
    text-align: center;
    margin-bottom: 24px;
}

.eb-empty p {
    margin: 0;
    font-weight: 900;
    opacity: 0.7;
}

.eb-list {
    display: flex;
    flex-direction: column;
}

.eb-block {
    border: 4px solid #111;
    background: var(--bg-color);
    box-shadow: 6px 6px 0px #111;
    margin-bottom: 30px;
}

.eb-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    background: #111;
    color: #fff;
}

.eb-block-type {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eb-block-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 5px;
    font-family: monospace;
    background: var(--accent-yellow);
    color: #111;
    border: 2px solid var(--accent-yellow);
}

.eb-block-tools {
    display: flex;
    gap: 6px;
}

.eb-tool {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.eb-tool:hover:not(:disabled) {
    background: var(--accent-yellow);
    color: #111;
    border-color: var(--accent-yellow);
}

.eb-tool:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.eb-block-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.eb-field {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.eb-field-label {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    min-width: 56px;
}

.eb-field .eb-input {
    width: auto;
    flex: 0 1 240px;
}

.eb-input {
    font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    width: 100%;
    padding: 11px 13px;
    border: 3px solid #111;
    border-radius: 0;
    background: #fff;
    color: #111;
    transition: box-shadow 0.15s ease;
}

.eb-input:focus {
    outline: none;
    box-shadow: 4px 4px 0px var(--accent-orange);
}

.eb-textarea {
    line-height: 1.8;
    resize: vertical;
    overflow: hidden;
    min-height: 60px;
}

.eb-input-heading {
    font-size: 1.35rem;
    font-weight: 900;
}

.eb-code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    background: #111;
    color: #f4f4f0;
    white-space: pre;
    overflow-x: auto;
}

.eb-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #111 50%),
                      linear-gradient(135deg, #111 50%, transparent 50%);
    background-position: calc(100% - 18px) center, calc(100% - 12px) center;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
    cursor: pointer;
}

.eb-hint {
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    opacity: 0.7;
}

.eb-btn {
    font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #111;
    background: var(--accent-yellow);
    border: 3px solid #111;
    box-shadow: 3px 3px 0px #111;
    padding: 9px 16px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.eb-btn:hover:not(:disabled) {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #111;
}

.eb-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

.eb-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eb-upload-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.eb-upload-status {
    font-size: 0.82rem;
    font-weight: 900;
}

.eb-upload-status.is-error {
    color: #fff;
    background: var(--accent-orange);
    border: 2px solid #111;
    padding: 4px 10px;
}

.eb-preview {
    border: 3px solid #111;
    line-height: 0;
    background: #fff;
}

.eb-preview img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    display: block;
}

.eb-adder {
    display: flex;
    justify-content: center;
    height: 0;
    overflow: visible;
}

.eb-adder-btn {
    transform: translateY(14px);
    font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111;
    background: #fff;
    border: 3px solid #111;
    box-shadow: 3px 3px 0px #111;
    padding: 5px 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.eb-block:hover .eb-adder-btn,
.eb-adder-btn:focus {
    opacity: 1;
}

.eb-adder-btn:hover {
    background: var(--accent-yellow);
}


/* --- パレット --- */

.eb-palette {
    border: 4px solid #111;
    background: #fff;
    box-shadow: 6px 6px 0px #111;
}

.eb-palette.is-floating {
    border-color: var(--accent-orange);
    box-shadow: 6px 6px 0px var(--accent-orange);
    margin-bottom: 30px;
}

.eb-palette-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    background: #111;
    color: #fff;
}

.eb-palette.is-floating .eb-palette-head {
    background: var(--accent-orange);
}

.eb-palette-title {
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eb-palette-close {
    width: 26px;
    height: 26px;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    background: transparent;
    border: 2px solid #fff;
    cursor: pointer;
}

.eb-palette.is-floating .eb-palette-close {
    display: inline-flex;
}

.eb-palette-close:hover {
    background: #fff;
    color: #111;
}

.eb-palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
    gap: 10px;
    padding: 14px;
}

.eb-palette-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    text-align: left;
    font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
    background: var(--bg-color);
    border: 3px solid #111;
    padding: 12px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.eb-palette-item:hover {
    background: var(--accent-yellow);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #111;
}

.eb-palette-icon {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 900;
    background: #111;
    color: var(--accent-yellow);
    padding: 2px 8px;
    margin-bottom: 4px;
}

.eb-palette-label {
    font-size: 0.92rem;
    font-weight: 900;
}

.eb-palette-hint {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.7;
    line-height: 1.4;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
    .st-editor-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .st-main {
        padding: 26px 16px 80px 16px;
    }

    /* 折り返しでヘッダーが高くなるため、固定するのはツールバーだけにする */
    .st-header {
        position: static;
        padding: 14px 16px;
    }

    .st-toolbar {
        top: 0;
    }

    .st-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .st-row-head {
        display: none;
    }

    .st-col-order::before {
        content: '順 ';
    }

    .st-col-actions {
        justify-content: flex-start;
    }

    .st-login-box,
    .st-confirm-box {
        padding: 28px 22px;
    }

    .eb-adder-btn {
        opacity: 1;
    }

    .st-gallery-row {
        flex-direction: column;
    }
}
