html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body.tools-page {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    background: #f4f6fa;
    color: #182033;
}

.tools-layout {
    display: grid;
    grid-template-columns: 256px minmax(0, 1fr);
    min-height: 100vh;
}

.tools-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #e1e6ee;
    background: #ffffff;
    scrollbar-gutter: stable;
}

.tools-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 56px;
    padding: 1rem 1rem 0.9rem;
    border-bottom: 1px solid #e3e8ef;
}

.tools-brand-mark {
    display: none;
}

.tools-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #206bc4;
}

.tools-brand-subtitle {
    margin-top: 0.1rem;
    font-size: 0.82rem;
    color: #6b7280;
}

.tools-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: auto;
    padding: 0;
    border: 1px solid #d8e0ec;
    border-radius: 0.45rem;
    background: #ffffff;
    color: #206bc4;
    font-size: 1.25rem;
}

.tools-menu-toggle:hover,
.tools-menu-toggle:focus {
    border-color: #b7c9e6;
    background: #f4f7fb;
    color: #1d4f8f;
}

.tools-menu {
    display: grid;
    gap: 0.7rem;
    padding: 0.85rem 0.75rem 1.15rem;
}

.tools-menu-section {
    display: grid;
    gap: 0.25rem;
}

.tools-menu-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    padding: 0 0.35rem;
    color: #1f2937;
    font-size: 0.88rem;
    font-weight: 800;
}

.tools-menu-section-mark {
    color: #98a2b3;
    font-weight: 700;
}

.tools-menu-list {
    display: grid;
    gap: 0.15rem;
}

.tools-menu-item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    min-height: 32px;
    padding: 0.35rem 0.55rem;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    color: #667085;
    text-decoration: none;
}

.tools-menu-item:hover,
.tools-menu-item:focus {
    background: #f4f7fb;
    color: #1d4f8f;
    text-decoration: none;
}

.tools-menu-item.is-active {
    border-color: #206bc4;
    background: #206bc4;
    color: #ffffff;
}

.tools-menu-item.is-disabled {
    cursor: default;
    color: #98a2b3;
}

.tools-menu-item.is-disabled:hover,
.tools-menu-item.is-disabled:focus {
    background: transparent;
    color: #98a2b3;
}

.tools-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: inherit;
    font-size: 1rem;
}

.tools-menu-item.is-active .tools-menu-icon {
    color: #ffffff;
}

.tools-menu-title {
    display: block;
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
}

.tools-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tools-header {
    display: flex;
    align-items: center;
    width: min(100%, 920px);
    padding: 1.25rem 2rem 1rem;
    background: #f4f6fa;
}

.tools-header-wide {
    width: 100%;
    box-sizing: border-box;
}

.tools-title {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
    color: #152238;
}

.tools-description {
    margin: 0.45rem 0 0;
    color: #667085;
    line-height: 1.55;
}

.tools-content {
    width: min(100%, 920px);
    padding: 0 2rem 2rem;
}

.tools-content-wide {
    width: 100%;
    box-sizing: border-box;
}

.tool-panel {
    width: 100%;
    border: 1px solid #d9e0eb;
    border-radius: 0.5rem;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(31, 45, 75, 0.08);
}

.ip-tool {
    padding: 2rem;
    text-align: center;
}

.ip-label {
    color: #4b5563;
    font-size: 1rem;
    font-weight: 700;
}

.ip-value {
    margin-top: 0.85rem;
    color: #152238;
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.25;
    word-break: break-all;
}

.ip-actions {
    margin-top: 1.4rem;
}

.tool-status {
    min-height: 22px;
    margin-top: 0.85rem;
    color: #206bc4;
    font-size: 0.95rem;
}

.tool-help {
    margin: 0.8rem 0 0;
    color: #6b7280;
    font-size: 0.92rem;
}

.pw-tool {
    padding: 1.45rem;
}

.pw-section + .pw-section {
    padding-top: 0.25rem;
}

.pw-label,
.pw-output-label,
.pw-subtitle {
    margin-bottom: 1rem;
    color: #1f2d6b;
    font-size: 1.02rem;
    font-weight: 700;
}

.pw-mode-group,
.pw-preset-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.pw-mode-group {
    padding: 0.35rem;
    border-radius: 0.5rem;
    background: #f1f3f8;
}

.pw-mode-button,
.pw-preset-button {
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: #3f4d67;
    font-size: 1.02rem;
    font-weight: 700;
    padding: 0.95rem 0.75rem;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pw-mode-button.is-active {
    background: #ffffff;
    color: #13214e;
    box-shadow: 0 8px 20px rgba(23, 39, 90, 0.10);
}

.pw-preset-button {
    border: 1px solid #d7ddea;
    background: #f8faff;
    color: #32415d;
}

.pw-preset-button:hover,
.pw-preset-button:focus {
    border-color: #9eb7ef;
    background: #eef4ff;
}

.pw-title {
    margin: 0;
    color: #a55316;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
}

.pw-description {
    margin: 0.55rem 0 0;
    color: #65708a;
    font-size: 0.96rem;
    line-height: 1.6;
}

.pw-divider {
    height: 1px;
    margin: 1.35rem 0;
    background: #d9dde8;
}

.pw-control-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 88px;
    gap: 1rem;
    align-items: center;
}

.pw-control-label {
    color: #5c6781;
    font-size: 1.05rem;
    font-weight: 700;
}

.pw-range-wrap .form-range {
    margin: 0;
}

.pw-length-wrap {
    display: flex;
    justify-content: flex-end;
}

.pw-length-input {
    width: 88px;
    height: 50px;
    border-color: #d7ddea;
    border-radius: 0.5rem;
    color: #13214e;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}

.pw-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.2rem;
}

.pw-toggle-item {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0.8rem 0.95rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #fbfcff;
}

.pw-toggle-item-wide {
    grid-column: 1 / -1;
}

.pw-toggle-text {
    color: #44506a;
    font-size: 1rem;
    font-weight: 700;
}

.form-switch .form-check-input {
    width: 3rem;
    height: 1.7rem;
    margin: 0;
    cursor: pointer;
}

.pw-output-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: 1rem 1.25rem;
    border: 1px solid #d7ddea;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #13214e;
    font-family: "Consolas", "Courier New", monospace;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-align: center;
    word-break: break-all;
}

.pw-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-top: 0.9rem;
}

.pw-meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #edf4ff;
    color: #1f4ec9;
    font-size: 0.9rem;
    font-weight: 700;
}

.pw-meta-pill-muted {
    background: #f2f4f8;
    color: #52607b;
}

.pw-status-text {
    margin-top: 0.8rem;
    color: #66738d;
    font-size: 0.95rem;
}

.pw-button-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.pw-action-button {
    min-height: 54px;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.pw-action-button.btn-primary {
    border-color: #1f67d2;
    background: #1f67d2;
}

.pw-action-button.btn-outline-primary {
    border-color: #1f67d2;
    color: #1f67d2;
}

.pw-alternative-list {
    display: grid;
    gap: 0.7rem;
}

.pw-alternative-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.9rem;
    align-items: center;
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #fbfcff;
    text-align: left;
}

.pw-alternative-item:hover,
.pw-alternative-item:focus {
    border-color: #9eb7ef;
    background: #f5f8ff;
}

.pw-alternative-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 32px;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #eaf0fb;
    color: #45618d;
    font-size: 0.85rem;
    font-weight: 700;
}

.pw-alternative-password {
    min-width: 0;
    color: #13214e;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 1rem;
    font-weight: 700;
    word-break: break-all;
}

.pw-alternative-action {
    color: #1f67d2;
    font-size: 0.92rem;
    font-weight: 700;
}

.pw-toggle-item.is-hidden {
    display: none;
}

.palette-tool {
    padding: 1.45rem;
}

.palette-control-section,
.palette-result-section,
.palette-guide-section {
    display: grid;
    gap: 1rem;
}

.palette-control-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.palette-title {
    margin: 0;
    color: #152238;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
}

.palette-description {
    margin: 0.5rem 0 0;
    color: #65708a;
    font-size: 0.96rem;
    line-height: 1.6;
}

.palette-random-button {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    flex: 0 0 auto;
}

.palette-base-row {
    display: grid;
    gap: 0.55rem;
}

.palette-field-label,
.palette-section-title {
    color: #1f2d6b;
    font-size: 1rem;
    font-weight: 700;
}

.palette-base-control {
    display: grid;
    grid-template-columns: 60px minmax(0, 180px);
    gap: 0.75rem;
    align-items: center;
}

.palette-color-input {
    width: 60px;
    height: 42px;
    padding: 0.2rem;
    border: 1px solid #d7ddea;
    border-radius: 0.5rem;
    background: #ffffff;
    cursor: pointer;
}

.palette-hex-input {
    height: 42px;
    border-color: #d7ddea;
    border-radius: 0.5rem;
    color: #13214e;
    font-family: "Consolas", "Courier New", monospace;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.palette-mode-group {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.35rem;
    border-radius: 0.5rem;
    background: #f1f3f8;
}

.palette-mode-button {
    min-height: 42px;
    padding: 0.55rem 0.45rem;
    border: 0;
    border-radius: 0.45rem;
    background: transparent;
    color: #3f4d67;
    font-size: 0.92rem;
    font-weight: 700;
}

.palette-mode-button:hover,
.palette-mode-button:focus {
    background: #f8faff;
    color: #1f4ec9;
}

.palette-mode-button.is-active {
    background: #ffffff;
    color: #13214e;
    box-shadow: 0 8px 20px rgba(23, 39, 90, 0.10);
}

.palette-divider {
    height: 1px;
    margin: 1.35rem 0;
    background: #d9dde8;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
}

.palette-card {
    display: grid;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #13214e;
    text-align: left;
}

.palette-card:hover,
.palette-card:focus {
    border-color: #9eb7ef;
    background: #f8faff;
}

.palette-swatch {
    display: block;
    width: 100%;
    min-height: 132px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.45rem;
}

.palette-code {
    display: block;
    overflow: hidden;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.palette-card-label {
    display: block;
    color: #667085;
    font-size: 0.82rem;
    font-weight: 700;
}

.palette-copy-status {
    min-height: 22px;
    color: #206bc4;
    font-size: 0.95rem;
}

.palette-guide-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1.15rem;
    color: #4b5563;
    line-height: 1.6;
}

.palette-guide-list strong {
    color: #152238;
}

.qr-tool {
    padding: 1.45rem;
}

.qr-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 1.4rem;
    align-items: start;
}

.qr-control-column,
.qr-preview-column,
.qr-tip-section,
.qr-section {
    display: grid;
    gap: 1rem;
}

.qr-title {
    margin: 0;
    color: #152238;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
}

.qr-description {
    margin: 0.5rem 0 0;
    color: #65708a;
    font-size: 0.96rem;
    line-height: 1.6;
}

.qr-section-title,
.qr-label {
    color: #1f2d6b;
    font-size: 1rem;
    font-weight: 700;
}

.qr-textarea {
    min-height: 132px;
    border-color: #d7ddea;
    border-radius: 0.5rem;
    color: #13214e;
    line-height: 1.6;
    resize: vertical;
}

.qr-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    color: #667085;
    font-size: 0.9rem;
}

#qrStatus {
    color: #206bc4;
}

#qrStatus.is-error {
    color: #d63939;
}

.qr-style-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.qr-field {
    display: grid;
    gap: 0.5rem;
}

.qr-range-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 0.75rem;
    align-items: center;
}

.qr-size-input {
    height: 42px;
    border-color: #d7ddea;
    border-radius: 0.5rem;
    color: #13214e;
    font-weight: 700;
    text-align: center;
}

.qr-color-row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.qr-color-input {
    width: 60px;
    height: 42px;
    padding: 0.2rem;
    border: 1px solid #d7ddea;
    border-radius: 0.5rem;
    background: #ffffff;
    cursor: pointer;
}

.qr-hex-input {
    height: 42px;
    border-color: #d7ddea;
    border-radius: 0.5rem;
    color: #13214e;
    font-family: "Consolas", "Courier New", monospace;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.qr-select {
    height: 42px;
    border-color: #d7ddea;
    border-radius: 0.5rem;
}

.qr-button-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.qr-download-button {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 0.5rem;
    font-weight: 700;
}

.qr-preview-column {
    padding: 1rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #fbfcff;
}

.qr-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qr-preview-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 330px;
    padding: 1rem;
    border: 1px dashed #cfd8e6;
    border-radius: 0.5rem;
    background: #ffffff;
}

.qr-canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.qr-divider {
    height: 1px;
    margin: 1.35rem 0;
    background: #d9dde8;
}

.qr-tip-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1.15rem;
    color: #4b5563;
    line-height: 1.6;
}

.qr-tip-list code {
    color: #152238;
    font-size: 0.92em;
}

.favicon-tool {
    padding: 1.45rem;
}

.favicon-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 1.4rem;
    align-items: start;
}

.favicon-control-column,
.favicon-preview-column,
.favicon-section,
.favicon-download-section,
.favicon-code-section {
    display: grid;
    gap: 1rem;
}

.favicon-title {
    margin: 0;
    color: #152238;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
}

.favicon-description {
    margin: 0.5rem 0 0;
    color: #65708a;
    font-size: 0.96rem;
    line-height: 1.6;
}

.favicon-section-title,
.favicon-label {
    color: #1f2d6b;
    font-size: 1rem;
    font-weight: 700;
}

.favicon-drop-zone {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
    padding: 1.2rem;
    border: 1px dashed #b8c6da;
    border-radius: 0.5rem;
    background: #fbfcff;
    color: #536175;
    text-align: center;
    cursor: pointer;
}

.favicon-drop-zone:hover,
.favicon-drop-zone.is-dragover {
    border-color: #206bc4;
    background: #f2f7ff;
}

.favicon-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.favicon-drop-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 0.5rem;
    background: #edf4ff;
    color: #206bc4;
    font-size: 1.35rem;
}

.favicon-drop-title {
    color: #152238;
    font-weight: 800;
}

.favicon-drop-text,
.favicon-status {
    color: #667085;
    font-size: 0.92rem;
    line-height: 1.5;
}

.favicon-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.favicon-field {
    display: grid;
    gap: 0.5rem;
}

.favicon-text-input {
    height: 42px;
    border-color: #d7ddea;
    border-radius: 0.5rem;
    color: #13214e;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.favicon-color-row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.favicon-color-input {
    width: 60px;
    height: 42px;
    padding: 0.2rem;
    border: 1px solid #d7ddea;
    border-radius: 0.5rem;
    background: #ffffff;
    cursor: pointer;
}

.favicon-hex-input {
    height: 42px;
    border-color: #d7ddea;
    border-radius: 0.5rem;
    color: #13214e;
    font-family: "Consolas", "Courier New", monospace;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.favicon-download-all {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 0.5rem;
    font-weight: 700;
}

.favicon-preview-column {
    padding: 1rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #fbfcff;
}

.favicon-preview-box {
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    padding: 1rem;
    border: 1px dashed #cfd8e6;
    border-radius: 0.5rem;
    background: #ffffff;
}

.favicon-preview-canvas {
    width: 128px;
    height: 128px;
    image-rendering: auto;
}

.favicon-preview-caption {
    color: #667085;
    font-size: 0.9rem;
    font-weight: 700;
}

.favicon-divider {
    height: 1px;
    margin: 1.35rem 0;
    background: #d9dde8;
}

.favicon-size-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.favicon-size-button {
    display: grid;
    gap: 0.55rem;
    justify-items: center;
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #13214e;
}

.favicon-size-button:hover,
.favicon-size-button:focus {
    border-color: #9eb7ef;
    background: #f8faff;
}

.favicon-size-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid #edf1f7;
    border-radius: 0.45rem;
    background: #fbfcff;
}

.favicon-size-canvas {
    max-width: 40px;
    max-height: 40px;
}

.favicon-size-label {
    color: #344054;
    font-size: 0.9rem;
    font-weight: 800;
}

.favicon-tip-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 1rem;
    margin: 0;
    padding-left: 1.15rem;
    color: #4b5563;
    line-height: 1.6;
}

.favicon-code-description {
    margin: 0;
    color: #667085;
    font-size: 0.94rem;
}

.favicon-code-block {
    overflow-x: auto;
    margin: 0;
    padding: 1rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #fbfcff;
    color: #152238;
    font-size: 0.9rem;
    line-height: 1.6;
}

.extractor-tool {
    padding: 1.45rem;
}

.extractor-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
    gap: 1.4rem;
    align-items: start;
}

.extractor-control-column,
.extractor-preview-column,
.extractor-section,
.extractor-result-section,
.extractor-guide-section {
    display: grid;
    gap: 1rem;
}

.extractor-title {
    margin: 0;
    color: #152238;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
}

.extractor-description {
    margin: 0.5rem 0 0;
    color: #65708a;
    font-size: 0.96rem;
    line-height: 1.6;
}

.extractor-section-title,
.extractor-label {
    color: #1f2d6b;
    font-size: 1rem;
    font-weight: 700;
}

.extractor-drop-zone {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
    padding: 1.2rem;
    border: 1px dashed #b8c6da;
    border-radius: 0.5rem;
    background: #fbfcff;
    color: #536175;
    text-align: center;
    cursor: pointer;
}

.extractor-drop-zone:hover,
.extractor-drop-zone.is-dragover {
    border-color: #206bc4;
    background: #f2f7ff;
}

.extractor-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.extractor-drop-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 0.5rem;
    background: #edf4ff;
    color: #206bc4;
    font-size: 1.35rem;
}

.extractor-drop-title {
    color: #152238;
    font-weight: 800;
}

.extractor-drop-text,
.extractor-status {
    color: #667085;
    font-size: 0.92rem;
    line-height: 1.5;
}

.extractor-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.extractor-field {
    display: grid;
    gap: 0.5rem;
}

.extractor-select {
    height: 42px;
    border-color: #d7ddea;
    border-radius: 0.5rem;
}

.extractor-copy-button {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 0.5rem;
    font-weight: 700;
}

.extractor-preview-column {
    padding: 1rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #fbfcff;
}

.extractor-preview-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 1rem;
    border: 1px dashed #cfd8e6;
    border-radius: 0.5rem;
    background: #ffffff;
}

.extractor-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    cursor: crosshair;
}

.extractor-preview-empty {
    position: absolute;
    color: #98a2b3;
    font-weight: 700;
}

.extractor-preview-empty.is-hidden {
    display: none;
}

.extractor-picked-color {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #ffffff;
}

.extractor-picked-swatch {
    display: block;
    width: 42px;
    height: 42px;
    border: 1px solid #dbe0ec;
    border-radius: 0.45rem;
    background: #f2f4f7;
}

.extractor-picked-label {
    display: block;
    color: #667085;
    font-size: 0.82rem;
    font-weight: 700;
}

.extractor-picked-code {
    display: block;
    overflow: hidden;
    color: #13214e;
    font-family: "Consolas", "Courier New", monospace;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.extractor-divider {
    height: 1px;
    margin: 1.35rem 0;
    background: #d9dde8;
}

.extractor-color-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.extractor-color-card {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #13214e;
    text-align: left;
}

.extractor-color-card:hover,
.extractor-color-card:focus {
    border-color: #9eb7ef;
    background: #f8faff;
}

.extractor-color-swatch {
    display: block;
    width: 66px;
    height: 58px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.45rem;
}

.extractor-color-body {
    min-width: 0;
}

.extractor-color-hex {
    display: block;
    color: #13214e;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 1rem;
    font-weight: 800;
}

.extractor-color-meta {
    display: block;
    overflow: hidden;
    color: #667085;
    font-size: 0.82rem;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.extractor-color-ratio {
    color: #206bc4;
    font-size: 0.9rem;
    font-weight: 800;
}

.extractor-guide-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1.15rem;
    color: #4b5563;
    line-height: 1.6;
}

.mindmap-tool {
    padding: 1rem;
}

.mindmap-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid #d9dde8;
}

.mindmap-toolbar-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.mindmap-action-button {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 0.5rem;
    font-weight: 700;
}

.mindmap-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.mindmap-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 1rem;
    padding-top: 1rem;
}

.mindmap-canvas-panel {
    min-width: 0;
}

.mindmap-canvas-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.mindmap-title {
    margin: 0;
    color: #152238;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
}

.mindmap-description {
    margin: 0.5rem 0 0;
    color: #65708a;
    font-size: 0.96rem;
    line-height: 1.6;
}

.mindmap-status {
    flex: 0 0 auto;
    color: #206bc4;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
}

.mindmap-canvas-wrap {
    position: relative;
    width: 100%;
    overflow: auto;
    min-height: calc(100vh - 260px);
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background:
        linear-gradient(#f8fafc 1px, transparent 1px),
        linear-gradient(90deg, #f8fafc 1px, transparent 1px),
        #ffffff;
    background-size: 24px 24px;
}

.mindmap-svg {
    display: block;
    width: 100%;
    min-width: 980px;
    height: calc(100vh - 260px);
    min-height: 560px;
}

.mindmap-empty {
    position: absolute;
    inset: 0;
    display: grid;
    gap: 0.6rem;
    align-content: center;
    justify-items: center;
    padding: 2rem;
    text-align: center;
    pointer-events: none;
}

.mindmap-empty.is-hidden {
    display: none;
}

.mindmap-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 0.75rem;
    background: #edf4ff;
    color: #206bc4;
    font-size: 1.65rem;
}

.mindmap-empty-title {
    color: #152238;
    font-size: 1.15rem;
    font-weight: 800;
}

.mindmap-empty-text {
    color: #667085;
    font-size: 0.95rem;
}

.mindmap-edge {
    fill: none;
    stroke: #b8c6da;
    stroke-width: 3;
}

.mindmap-node {
    cursor: pointer;
}

.mindmap-node rect {
    stroke: rgba(15, 23, 42, 0.12);
    stroke-width: 1;
    filter: drop-shadow(0 8px 16px rgba(31, 45, 75, 0.12));
}

.mindmap-node text {
    fill: #ffffff;
    font-family: "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-size: 15px;
    font-weight: 800;
    pointer-events: none;
}

.mindmap-node.is-selected rect {
    stroke: #111827;
    stroke-width: 3;
}

.mindmap-edit-panel {
    display: grid;
    gap: 1rem;
    align-content: start;
    padding: 1rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #fbfcff;
}

.mindmap-section-title,
.mindmap-label {
    color: #1f2d6b;
    font-size: 1rem;
    font-weight: 700;
}

.mindmap-field {
    display: grid;
    gap: 0.5rem;
}

.mindmap-textarea {
    border-color: #d7ddea;
    border-radius: 0.5rem;
    color: #13214e;
    line-height: 1.5;
    resize: vertical;
}

.mindmap-color-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
}

.mindmap-color-input {
    width: 54px;
    height: 42px;
    padding: 0.2rem;
    border: 1px solid #d7ddea;
    border-radius: 0.5rem;
    background: #ffffff;
    cursor: pointer;
}

.mindmap-hex-input {
    height: 42px;
    border-color: #d7ddea;
    border-radius: 0.5rem;
    color: #13214e;
    font-family: "Consolas", "Courier New", monospace;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mindmap-node-meta {
    padding: 0.65rem 0.75rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #667085;
    font-size: 0.9rem;
    font-weight: 700;
}

.mindmap-guide {
    display: grid;
    gap: 0.6rem;
}

.mindmap-guide ul {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding-left: 1.1rem;
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.55;
}

.converter-tool {
    padding: 1.45rem;
}

.converter-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
    gap: 1.4rem;
    align-items: start;
}

.converter-control-column,
.converter-preview-column,
.converter-section,
.converter-result-section,
.converter-guide-section {
    display: grid;
    gap: 1rem;
}

.converter-title {
    margin: 0;
    color: #152238;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
}

.converter-description {
    margin: 0.5rem 0 0;
    color: #65708a;
    font-size: 0.96rem;
    line-height: 1.6;
}

.converter-section-title,
.converter-label {
    color: #1f2d6b;
    font-size: 1rem;
    font-weight: 700;
}

.converter-picker-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.converter-color-input {
    width: 72px;
    height: 46px;
    padding: 0.2rem;
    border: 1px solid #d7ddea;
    border-radius: 0.5rem;
    background: #ffffff;
    cursor: pointer;
}

.converter-random-button {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    min-height: 46px;
    border-radius: 0.5rem;
    font-weight: 700;
}

.converter-input-grid {
    display: grid;
    gap: 0.85rem;
}

.converter-field {
    display: grid;
    gap: 0.45rem;
}

.converter-code-input {
    height: 42px;
    border-color: #d7ddea;
    border-radius: 0.5rem;
    color: #13214e;
    font-family: "Consolas", "Courier New", monospace;
    font-weight: 700;
}

.converter-status {
    min-height: 22px;
    color: #206bc4;
    font-size: 0.92rem;
}

.converter-status.is-error {
    color: #d63939;
}

.converter-preview-column {
    padding: 1rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #fbfcff;
}

.converter-preview-swatch {
    min-height: 220px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.5rem;
    background: #3b82f6;
}

.converter-preview-code {
    padding: 0.75rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #13214e;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
}

.converter-divider {
    height: 1px;
    margin: 1.35rem 0;
    background: #d9dde8;
}

.converter-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.converter-result-card {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #13214e;
    text-align: left;
}

.converter-result-card:hover,
.converter-result-card:focus {
    border-color: #9eb7ef;
    background: #f8faff;
}

.converter-result-label {
    color: #667085;
    font-size: 0.82rem;
    font-weight: 800;
}

.converter-result-value {
    overflow: hidden;
    color: #13214e;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.98rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.converter-result-action {
    color: #206bc4;
    font-size: 0.86rem;
    font-weight: 800;
}

.converter-guide-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1.15rem;
    color: #4b5563;
    line-height: 1.6;
}

.converter-guide-list code {
    color: #152238;
    font-size: 0.92em;
}

.pdf-tool {
    padding: 1rem;
}

.pdf-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid #d9dde8;
}

.pdf-toolbar-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.pdf-action-button {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 0.5rem;
    font-weight: 700;
}

.pdf-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.pdf-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 0;
}

.pdf-title {
    margin: 0;
    color: #152238;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
}

.pdf-description {
    margin: 0.5rem 0 0;
    color: #65708a;
    font-size: 0.96rem;
    line-height: 1.6;
}

.pdf-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.pdf-feature-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.9rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #fbfcff;
}

.pdf-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 0.5rem;
    background: #edf4ff;
    color: #206bc4;
    font-size: 1.25rem;
}

.pdf-feature-title {
    color: #152238;
    font-weight: 800;
}

.pdf-feature-text {
    margin-top: 0.15rem;
    color: #667085;
    font-size: 0.9rem;
    line-height: 1.45;
}

.pdf-status {
    flex: 0 0 auto;
    color: #206bc4;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
}

.pdf-status.is-error {
    color: #d63939;
}

.pdf-drop-zone {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 1rem;
    border: 1px dashed #b8c6da;
    border-radius: 0.5rem;
    background: #fbfcff;
}

.pdf-drop-zone.is-dragover,
.pdf-drop-zone:hover {
    border-color: #206bc4;
    background: #f2f7ff;
}

.pdf-drop-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    background: #edf4ff;
    color: #206bc4;
    font-size: 1.45rem;
}

.pdf-drop-title {
    color: #152238;
    font-weight: 800;
}

.pdf-drop-text {
    margin-top: 0.2rem;
    color: #667085;
    font-size: 0.92rem;
    line-height: 1.5;
}

.pdf-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.pdf-summary span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: #edf4ff;
    color: #1f4ec9;
    font-size: 0.86rem;
    font-weight: 800;
}

.pdf-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.pdf-page-card {
    display: grid;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #ffffff;
    cursor: grab;
}

.pdf-page-card.is-active {
    border-color: #206bc4;
    box-shadow: 0 0 0 2px rgba(32, 107, 196, 0.12);
}

.pdf-page-card.is-muted {
    opacity: 0.62;
}

.pdf-page-card.is-dragging {
    opacity: 0.45;
}

.pdf-page-card.is-drop-target {
    border-color: #206bc4;
    background: #f2f7ff;
}

.pdf-thumb-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 0.75rem;
    border: 1px solid #edf1f7;
    border-radius: 0.45rem;
    background: #fbfcff;
}

.pdf-thumb-canvas {
    display: block;
    max-width: 100%;
    max-height: 220px;
    box-shadow: 0 8px 18px rgba(31, 45, 75, 0.12);
}

.pdf-page-meta {
    min-width: 0;
}

.pdf-page-title {
    overflow: hidden;
    color: #13214e;
    font-size: 0.94rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-page-detail {
    margin-top: 0.2rem;
    color: #667085;
    font-size: 0.84rem;
    font-weight: 700;
}

.pdf-page-controls {
    display: grid;
    grid-template-columns: minmax(64px, 1fr) auto auto auto auto;
    gap: 0.45rem;
    align-items: center;
}

.pdf-page-check {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    color: #344054;
    font-size: 0.9rem;
    font-weight: 700;
}

.pdf-page-check input {
    width: 1rem;
    height: 1rem;
}

.pdf-mini-button {
    min-width: 42px;
    border-radius: 0.45rem;
    font-weight: 700;
}

.pdf-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 31px;
    padding: 0;
    border-radius: 0.45rem;
}

.pdf-guide-section {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #d9dde8;
}

.pdf-guide-title {
    color: #152238;
    font-weight: 800;
}

.pdf-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.pdf-guide-card {
    padding: 0.9rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #fbfcff;
}

.pdf-guide-card h3 {
    margin: 0 0 0.55rem;
    color: #1f2d6b;
    font-size: 0.98rem;
    font-weight: 800;
}

.pdf-guide-card ul {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    padding-left: 1.15rem;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
}

.pdf-guide-note {
    color: #667085;
    font-size: 0.9rem;
    line-height: 1.5;
}

.stamp-tool {
    padding: 1.45rem;
}

.stamp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
    gap: 1.4rem;
    align-items: start;
}

.stamp-control-column,
.stamp-preview-column,
.stamp-section,
.stamp-guide-section {
    display: grid;
    gap: 1rem;
}

.stamp-title {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    color: #152238;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
}

.stamp-title i {
    color: #206bc4;
    font-size: 1.35rem;
}

.stamp-description {
    margin: 0.5rem 0 0;
    color: #65708a;
    font-size: 0.96rem;
    line-height: 1.6;
}

.stamp-section-title,
.stamp-label {
    color: #1f2d6b;
    font-size: 1rem;
    font-weight: 700;
}

.stamp-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.stamp-field {
    display: grid;
    gap: 0.5rem;
}

.stamp-text-input,
.stamp-select,
.stamp-hex-input {
    height: 42px;
    border-color: #d7ddea;
    border-radius: 0.5rem;
    color: #13214e;
}

.stamp-text-input {
    font-size: 1.1rem;
    font-weight: 800;
}

.stamp-color-row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.stamp-color-input {
    width: 60px;
    height: 42px;
    padding: 0.2rem;
    border: 1px solid #d7ddea;
    border-radius: 0.5rem;
    background: #ffffff;
    cursor: pointer;
}

.stamp-hex-input {
    font-family: "Consolas", "Courier New", monospace;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.stamp-color-preset-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.stamp-color-preset {
    min-height: 34px;
    border: 1px solid #d7ddea;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #4b5563;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
}

.stamp-color-preset[data-stamp-color="#D42027"] {
    border-color: #d42027;
    color: #d42027;
}

.stamp-color-preset[data-stamp-color="#1E3A8A"] {
    border-color: #1e3a8a;
    color: #1e3a8a;
}

.stamp-color-preset[data-stamp-color="#1F2937"] {
    border-color: #1f2937;
    color: #1f2937;
}

.stamp-color-preset.is-active {
    background: var(--stamp-preset-active, #d42027);
    color: #ffffff;
}

.stamp-color-preset.is-active[data-stamp-color="#D42027"] {
    --stamp-preset-active: #d42027;
}

.stamp-color-preset.is-active[data-stamp-color="#1E3A8A"] {
    --stamp-preset-active: #1e3a8a;
}

.stamp-color-preset.is-active[data-stamp-color="#1F2937"] {
    --stamp-preset-active: #1f2937;
}

.stamp-check-field {
    align-content: end;
}

.stamp-check {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    min-height: 42px;
    margin: 0;
    color: #344054;
    font-weight: 700;
}

.stamp-button-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.stamp-action-button {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 0.5rem;
    font-weight: 700;
}

.stamp-status {
    min-height: 22px;
    color: #206bc4;
    font-size: 0.92rem;
}

.stamp-preview-column {
    padding: 1rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #fbfcff;
}

.stamp-preview-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 330px;
    padding: 1rem;
    border: 1px dashed #cfd8e6;
    border-radius: 0.5rem;
    background:
        linear-gradient(45deg, #eef2f7 25%, transparent 25%),
        linear-gradient(-45deg, #eef2f7 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eef2f7 75%),
        linear-gradient(-45deg, transparent 75%, #eef2f7 75%),
        #ffffff;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
}

.stamp-canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.stamp-divider {
    height: 1px;
    margin: 1.35rem 0;
    background: #d9dde8;
}

.stamp-guide-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1.15rem;
    color: #4b5563;
    line-height: 1.6;
}

.sheet-tool {
    padding: 1rem;
}

.sheet-univer-tool {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 7rem);
    padding: 0;
    overflow: hidden;
}

.sheet-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid #d9dde8;
}

.sheet-univer-toolbar {
    flex: 0 0 auto;
    padding: 0.75rem 1rem;
    background: #ffffff;
}

.sheet-toolbar-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.sheet-toolbar-group + .sheet-toolbar-group {
    padding-left: 0.75rem;
    border-left: 1px solid #e1e6ee;
}

.sheet-action-button {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 0.5rem;
    font-weight: 700;
}

.sheet-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.sheet-univer-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 680px;
    background: #ffffff;
}

.sheet-univer-container {
    position: absolute;
    inset: 0;
}

.sheet-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #206bc4;
    font-weight: 800;
}

.sheet-loading.is-hidden {
    display: none;
}

.sheet-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 0;
}

.sheet-title {
    margin: 0;
    color: #152238;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
}

.sheet-description {
    margin: 0.5rem 0 0;
    color: #65708a;
    font-size: 0.96rem;
    line-height: 1.6;
}

.sheet-status {
    flex: 0 0 auto;
    color: #206bc4;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
}

.sheet-formula-bar {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.sheet-cell-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid #d7ddea;
    border-radius: 0.5rem;
    background: #f8faff;
    color: #1f2d6b;
    font-weight: 800;
}

.sheet-formula-input {
    height: 42px;
    border-color: #d7ddea;
    border-radius: 0.5rem;
    color: #13214e;
    font-family: "Consolas", "Courier New", monospace;
    font-weight: 700;
}

.sheet-grid-wrap {
    overflow: auto;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #ffffff;
    max-height: 620px;
}

.sheet-grid {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.sheet-grid th,
.sheet-grid td {
    border-right: 1px solid #e4e9f2;
    border-bottom: 1px solid #e4e9f2;
}

.sheet-grid th {
    position: sticky;
    top: 0;
    z-index: 2;
    min-width: 112px;
    height: 34px;
    padding: 0.35rem 0.5rem;
    background: #f8faff;
    color: #52607b;
    font-size: 0.85rem;
    font-weight: 800;
    text-align: center;
}

.sheet-grid tbody th {
    left: 0;
    z-index: 1;
    min-width: 52px;
    width: 52px;
}

.sheet-grid .sheet-corner {
    left: 0;
    z-index: 3;
    min-width: 52px;
    width: 52px;
}

.sheet-cell {
    min-width: 112px;
    width: 112px;
    height: 34px;
    padding: 0.35rem 0.5rem;
    background: #ffffff;
    color: #13214e;
    font-size: 0.92rem;
    outline: 0;
    white-space: nowrap;
}

.sheet-cell:focus,
.sheet-cell.is-active {
    box-shadow: inset 0 0 0 2px #206bc4;
}

.sheet-guide {
    display: grid;
    flex: 0 0 auto;
    gap: 0.6rem;
    margin-top: 0;
    padding: 0.9rem 1rem 1rem;
    border-top: 1px solid #d9dde8;
}

.sheet-section-title {
    color: #1f2d6b;
    font-size: 1rem;
    font-weight: 700;
}

.sheet-guide ul {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding-left: 1.15rem;
    color: #4b5563;
    line-height: 1.6;
}

.sheet-formula-help {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.sheet-formula-help span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 30px;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #edf4ff;
    color: #1f4ec9;
    font-size: 0.84rem;
    font-weight: 800;
}

.sheet-guide code {
    color: #152238;
    font-size: 0.92em;
}

.date-tool {
    padding: 1.45rem;
}

.date-section,
.date-guide-section {
    display: grid;
    gap: 1rem;
}

.date-title {
    margin: 0;
    color: #152238;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
}

.date-description {
    margin: 0.5rem 0 0;
    color: #65708a;
    font-size: 0.96rem;
    line-height: 1.6;
}

.date-mode-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 1.2rem;
    padding: 0.35rem;
    border-radius: 0.5rem;
    background: #f1f3f8;
}

.date-mode-button {
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-radius: 0.45rem;
    background: transparent;
    color: #3f4d67;
    font-size: 0.98rem;
    font-weight: 800;
}

.date-mode-button.is-active {
    background: #ffffff;
    color: #13214e;
    box-shadow: 0 8px 20px rgba(23, 39, 90, 0.10);
}

.date-divider {
    height: 1px;
    margin: 1.35rem 0;
    background: #d9dde8;
}

.date-panel {
    display: none;
}

.date-panel.is-active {
    display: grid;
    gap: 1.2rem;
}

.date-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.date-field {
    display: grid;
    gap: 0.5rem;
}

.date-label,
.date-section-title {
    color: #1f2d6b;
    font-size: 1rem;
    font-weight: 700;
}

.date-input {
    height: 42px;
    border-color: #d7ddea;
    border-radius: 0.5rem;
    color: #13214e;
    font-weight: 700;
}

.date-result-card {
    display: grid;
    gap: 0.45rem;
    padding: 1.2rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #fbfcff;
    text-align: center;
}

.date-result-label {
    color: #667085;
    font-size: 0.92rem;
    font-weight: 800;
}

.date-result-main {
    color: #206bc4;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
}

.date-result-sub {
    color: #4b5563;
    font-size: 0.96rem;
    font-weight: 700;
}

.date-result-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.date-stat-card {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #ffffff;
}

.date-stat-card span {
    color: #667085;
    font-size: 0.86rem;
    font-weight: 800;
}

.date-stat-card strong {
    color: #152238;
    font-size: 1.25rem;
    font-weight: 900;
}

.date-guide-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1.15rem;
    color: #4b5563;
    line-height: 1.6;
}

.unit-tool {
    padding: 1.45rem;
}

.unit-section,
.unit-table-section,
.unit-guide-section {
    display: grid;
    gap: 1rem;
}

.unit-title {
    margin: 0;
    color: #152238;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
}

.unit-description {
    margin: 0.5rem 0 0;
    color: #65708a;
    font-size: 0.96rem;
    line-height: 1.6;
}

.unit-category-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 1.2rem;
    padding: 0.35rem;
    border-radius: 0.5rem;
    background: #f1f3f8;
}

.unit-category-button {
    min-height: 42px;
    padding: 0.6rem 0.65rem;
    border: 0;
    border-radius: 0.45rem;
    background: transparent;
    color: #3f4d67;
    font-size: 0.94rem;
    font-weight: 800;
}

.unit-category-button.is-active {
    background: #ffffff;
    color: #13214e;
    box-shadow: 0 8px 20px rgba(23, 39, 90, 0.10);
}

.unit-divider {
    height: 1px;
    margin: 1.35rem 0;
    background: #d9dde8;
}

.unit-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.unit-field {
    display: grid;
    gap: 0.5rem;
}

.unit-label,
.unit-section-title {
    color: #1f2d6b;
    font-size: 1rem;
    font-weight: 700;
}

.unit-input {
    height: 42px;
    border-color: #d7ddea;
    border-radius: 0.5rem;
    color: #13214e;
    font-weight: 700;
}

.unit-result-card {
    display: grid;
    gap: 0.55rem;
    justify-items: center;
    margin-top: 1rem;
    padding: 1.2rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #fbfcff;
    text-align: center;
}

.unit-result-label {
    color: #667085;
    font-size: 0.92rem;
    font-weight: 800;
}

.unit-result-main {
    color: #206bc4;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    word-break: break-all;
}

.unit-result-sub {
    color: #4b5563;
    font-size: 0.96rem;
    font-weight: 700;
    word-break: break-all;
}

.unit-copy-button {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    border-radius: 0.5rem;
    font-weight: 700;
}

.unit-table-wrap {
    overflow-x: auto;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
}

.unit-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.unit-table th,
.unit-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e4e9f2;
    color: #344054;
    text-align: left;
}

.unit-table thead th {
    background: #f8faff;
    color: #52607b;
    font-size: 0.86rem;
    font-weight: 800;
}

.unit-table tbody th {
    font-weight: 800;
}

.unit-table tbody tr:last-child th,
.unit-table tbody tr:last-child td {
    border-bottom: 0;
}

.unit-guide-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1.15rem;
    color: #4b5563;
    line-height: 1.6;
}

.image-converter-tool {
    padding: 1.45rem;
}

.image-converter-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
    gap: 1.4rem;
    align-items: start;
}

.image-converter-control-column,
.image-converter-preview-column,
.image-converter-section,
.image-converter-guide-section {
    display: grid;
    gap: 1rem;
}

.image-converter-title {
    margin: 0;
    color: #152238;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
}

.image-converter-description {
    margin: 0.5rem 0 0;
    color: #65708a;
    font-size: 0.96rem;
    line-height: 1.6;
}

.image-converter-section-title,
.image-converter-label {
    color: #1f2d6b;
    font-size: 1rem;
    font-weight: 700;
}

.image-converter-drop-zone {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
    padding: 1.2rem;
    border: 1px dashed #b8c6da;
    border-radius: 0.5rem;
    background: #fbfcff;
    color: #536175;
    text-align: center;
    cursor: pointer;
}

.image-converter-drop-zone:hover,
.image-converter-drop-zone.is-dragover {
    border-color: #206bc4;
    background: #f2f7ff;
}

.image-converter-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.image-converter-drop-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 0.5rem;
    background: #edf4ff;
    color: #206bc4;
    font-size: 1.35rem;
}

.image-converter-drop-title {
    color: #152238;
    font-weight: 800;
}

.image-converter-drop-text,
.image-converter-status {
    color: #667085;
    font-size: 0.92rem;
    line-height: 1.5;
}

.image-converter-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.image-converter-field {
    display: grid;
    gap: 0.5rem;
}

.image-converter-input,
.image-converter-hex-input {
    height: 42px;
    border-color: #d7ddea;
    border-radius: 0.5rem;
    color: #13214e;
    font-weight: 700;
}

.image-converter-color-row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.image-converter-color-input {
    width: 60px;
    height: 42px;
    padding: 0.2rem;
    border: 1px solid #d7ddea;
    border-radius: 0.5rem;
    background: #ffffff;
    cursor: pointer;
}

.image-converter-hex-input {
    font-family: "Consolas", "Courier New", monospace;
    letter-spacing: 0;
    text-transform: uppercase;
}

.image-converter-download-button {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 0.5rem;
    font-weight: 700;
}

.image-converter-preview-column {
    padding: 1rem;
    border: 1px solid #dbe0ec;
    border-radius: 0.5rem;
    background: #fbfcff;
}

.image-converter-preview-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 1rem;
    border: 1px dashed #cfd8e6;
    border-radius: 0.5rem;
    background:
        linear-gradient(45deg, #eef2f7 25%, transparent 25%),
        linear-gradient(-45deg, #eef2f7 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eef2f7 75%),
        linear-gradient(-45deg, transparent 75%, #eef2f7 75%),
        #ffffff;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
}

.image-converter-canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.image-converter-empty {
    position: absolute;
    color: #98a2b3;
    font-weight: 700;
}

.image-converter-empty.is-hidden {
    display: none;
}

.image-converter-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.image-converter-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: #edf4ff;
    color: #1f4ec9;
    font-size: 0.86rem;
    font-weight: 800;
}

.image-converter-divider {
    height: 1px;
    margin: 1.35rem 0;
    background: #d9dde8;
}

.image-converter-guide-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1.15rem;
    color: #4b5563;
    line-height: 1.6;
}

.hwp-viewer-tool {
    min-height: calc(100vh - 112px);
    padding: 0;
    overflow: hidden;
}

.hwp-viewer-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: calc(100vh - 114px);
}

.hwp-viewer-top {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(260px, 1.4fr) minmax(200px, 0.8fr) minmax(220px, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1.35rem;
    border-bottom: 1px solid #dbe2ee;
    background: #fbfcff;
}

.hwp-viewer-section {
    display: grid;
    gap: 0.8rem;
}

.hwp-viewer-intro {
    align-self: center;
}

.hwp-viewer-upload-section {
    min-width: 0;
}

.hwp-viewer-title {
    margin: 0;
    color: #152238;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.35;
}

.hwp-viewer-description {
    margin: 0;
    color: #65708a;
    font-size: 0.95rem;
    line-height: 1.6;
}

.hwp-viewer-drop-zone {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.2rem 0.7rem;
    align-items: center;
    justify-items: start;
    min-height: 86px;
    padding: 1rem;
    border: 1px dashed #b8c6da;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #536175;
    text-align: left;
    cursor: pointer;
}

.hwp-viewer-drop-zone:hover,
.hwp-viewer-drop-zone.is-dragover {
    border-color: #206bc4;
    background: #f2f7ff;
}

.hwp-viewer-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.hwp-viewer-drop-icon {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 0.5rem;
    background: #edf4ff;
    color: #206bc4;
    font-size: 1.35rem;
}

.hwp-viewer-drop-title {
    color: #152238;
    font-weight: 800;
}

.hwp-viewer-drop-text,
.hwp-viewer-status {
    color: #667085;
    font-size: 0.92rem;
    line-height: 1.5;
}

.hwp-viewer-field {
    display: grid;
    gap: 0.45rem;
}

.hwp-viewer-label {
    color: #1f2d6b;
    font-size: 0.95rem;
    font-weight: 800;
}

.hwp-viewer-range-value {
    color: #344054;
    font-size: 0.9rem;
    font-weight: 800;
    text-align: right;
}

.hwp-viewer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hwp-viewer-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: #edf4ff;
    color: #1f4ec9;
    font-size: 0.84rem;
    font-weight: 800;
}

.hwp-viewer-guide {
    display: grid;
    gap: 0.55rem;
    grid-column: 1 / -1;
    padding-top: 0.1rem;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
}

.hwp-viewer-guide ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding-left: 1.15rem;
}

.hwp-viewer-main {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    background: #eef2f7;
}

.hwp-viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 58px;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #dbe2ee;
    background: #ffffff;
}

.hwp-viewer-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 0.5rem;
}

.hwp-viewer-print-button {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 0.5rem;
    font-weight: 800;
}

.hwp-viewer-page-control {
    display: grid;
    grid-template-columns: 82px auto auto;
    gap: 0.5rem;
    align-items: center;
    color: #344054;
    font-weight: 800;
}

.hwp-viewer-page-control .form-control {
    height: 40px;
    border-color: #d7ddea;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 800;
}

.hwp-viewer-document-wrap {
    min-width: 0;
    min-height: 0;
    overflow: auto;
    padding: 1.25rem;
}

.hwp-viewer-document {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 100%;
}

.hwp-viewer-page {
    width: 100%;
    text-align: center;
}

.hwp-viewer-page svg {
    display: inline-block;
    max-width: none;
    border: 1px solid #d8dde8;
    border-radius: 0.25rem;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(31, 45, 75, 0.14);
}

.hwp-viewer-empty {
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    align-self: center;
    padding: 2rem;
    color: #7a8699;
    font-weight: 800;
    text-align: center;
}

.hwp-viewer-empty i {
    color: #206bc4;
    font-size: 2.2rem;
}

.hwp-viewer-empty.is-hidden {
    display: none;
}

@media (max-width: 991.98px) {
    .tools-layout {
        grid-template-columns: 1fr;
    }

    .tools-sidebar {
        position: sticky;
        z-index: 20;
        height: auto;
        max-height: none;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid #e1e6ee;
        box-shadow: 0 8px 20px rgba(31, 45, 75, 0.08);
    }

    .tools-menu {
        display: none;
        grid-template-columns: 1fr;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        border-top: 1px solid #e3e8ef;
    }

    .tools-sidebar.is-menu-open .tools-menu {
        display: grid;
    }

    .tools-menu-toggle {
        display: inline-flex;
    }

    .palette-mode-group,
    .palette-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .qr-layout,
    .qr-style-grid,
    .favicon-layout,
    .favicon-field-grid,
    .extractor-layout,
    .extractor-options-grid,
    .extractor-color-grid,
    .mindmap-layout,
    .converter-layout,
    .converter-result-grid,
    .stamp-layout,
    .stamp-field-grid,
    .date-form-grid,
    .date-result-grid,
    .unit-category-group,
    .unit-form-grid,
    .pdf-feature-grid,
    .pdf-guide-grid,
    .image-converter-layout,
    .image-converter-field-grid,
    .hwp-viewer-top {
        grid-template-columns: 1fr;
    }

    .hwp-viewer-tool,
    .hwp-viewer-shell {
        min-height: auto;
    }

    .hwp-viewer-guide ul {
        display: grid;
        gap: 0.45rem;
    }

    .hwp-viewer-document-wrap {
        min-height: 560px;
    }

    .tools-content {
        width: 100%;
        padding: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .tools-brand {
        min-height: 68px;
    }

    .tools-header {
        padding: 1rem 1.25rem 0.85rem;
    }

    .tools-title {
        font-size: 1.35rem;
    }

    .tools-menu {
        grid-template-columns: 1fr;
    }

    .ip-tool,
    .pw-tool,
    .palette-tool,
    .qr-tool,
    .favicon-tool,
    .extractor-tool,
    .mindmap-tool,
    .converter-tool,
    .pdf-tool,
    .stamp-tool {
        padding: 1.15rem;
    }

    .palette-control-header {
        display: grid;
    }

    .palette-base-control {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .palette-mode-group,
    .palette-grid {
        grid-template-columns: 1fr;
    }

    .palette-swatch {
        min-height: 108px;
    }

    .qr-button-row,
    .qr-range-row {
        grid-template-columns: 1fr;
    }

    .qr-preview-box {
        min-height: 250px;
    }

    .favicon-size-grid,
    .favicon-tip-list {
        grid-template-columns: 1fr;
    }

    .extractor-preview-box {
        min-height: 240px;
    }

    .extractor-color-card {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .extractor-color-ratio {
        grid-column: 2;
    }

    .mindmap-toolbar,
    .mindmap-canvas-header,
    .pdf-toolbar,
    .pdf-header {
        display: grid;
    }

    .sheet-toolbar,
    .sheet-header {
        display: grid;
    }

    .mindmap-status,
    .pdf-status,
    .sheet-status {
        text-align: left;
    }

    .mindmap-canvas-wrap {
        min-height: 420px;
    }

    .mindmap-svg {
        min-width: 860px;
        height: 460px;
    }

    .pdf-drop-zone {
        grid-template-columns: 1fr;
    }

    .pdf-page-grid {
        grid-template-columns: 1fr;
    }

    .stamp-button-row {
        grid-template-columns: 1fr;
    }

    .stamp-preview-box {
        min-height: 260px;
    }

    .sheet-tool {
        padding: 1.15rem;
    }

    .sheet-univer-tool {
        min-height: calc(100vh - 6rem);
        padding: 0;
    }

    .sheet-univer-wrap {
        min-height: 560px;
    }

    .date-tool {
        padding: 1.15rem;
    }

    .unit-tool {
        padding: 1.15rem;
    }

    .image-converter-tool {
        padding: 1.15rem;
    }

    .image-converter-preview-box {
        min-height: 240px;
    }

    .hwp-viewer-top {
        padding: 1.15rem;
    }

    .hwp-viewer-toolbar {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .sheet-formula-bar {
        grid-template-columns: 1fr;
    }

    .ip-value {
        font-size: 1.7rem;
    }

    .pw-mode-group,
    .pw-preset-grid,
    .pw-options-grid,
    .pw-button-row,
    .date-mode-group {
        grid-template-columns: 1fr;
    }

    .pw-control-row {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .pw-length-wrap {
        justify-content: flex-start;
    }

    .pw-output-box {
        min-height: 84px;
        font-size: 1.05rem;
    }

    .pw-alternative-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media print {
    html,
    body.tools-page {
        width: auto;
        min-height: 0;
        overflow: visible;
        background: #ffffff;
    }

    .tools-sidebar,
    .tools-header,
    .hwp-viewer-top,
    .hwp-viewer-toolbar,
    .hwp-viewer-empty {
        display: none !important;
    }

    .tools-layout,
    .tools-main,
    .tools-content,
    .tool-panel,
    .hwp-viewer-shell,
    .hwp-viewer-main,
    .hwp-viewer-document-wrap,
    .hwp-viewer-document,
    .hwp-viewer-page {
        display: block;
        width: auto;
        min-width: 0;
        min-height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        background: #ffffff;
        box-shadow: none;
        overflow: visible;
    }

    .hwp-viewer-page svg {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}
