html { margin: 0 }
body {
    box-sizing: border-box;
    margin: 0;
    background: #fff;
    color: #111;
    font-family: "bilo", "source-han-sans-japanese", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 300;
}
body * { box-sizing: border-box }
.login_page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(134, 211, 238, 0.16), transparent 34%),
        linear-gradient(180deg, #f7fbfd 0%, #ffffff 42%);
}
ul { padding: 0 }
li { list-style: none }
p, table, textarea, ul, label, input { font-size: 10pt }
a { color: inherit; text-decoration: none }
main { margin-top: 0 }
em { font-style: normal }
em, .blue { font-weight: bold; color: black; background: #d5f5ff; border: 1px solid #86d3ee }
.green { font-weight: bold; color: black; background: #daf2d7; border: none }
.black { font-weight: bold; color: white; background: black; border: none }

.difff_shell { width: min(100%, 1400px); margin: 0 auto; padding: 0 24px 20px }
#top { border-top: 5px solid #86d3ee }
.hero_wrap {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 26px;
    align-items: stretch;
    padding-top: 10px;
    margin-bottom: 16px;
}
.page_title {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 0 0 16px;
    font-size: 20px;
    font-weight: bold;
}
.page_title .page_title_line {
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 0;
    display: inline-block;
    width: 1px;
    height: auto;
    background-color: #dbdbdb;
}
.page_title .page_title_line:after {
    content: "";
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #000;
    transform-origin: left top;
    animation: pageTitleAnim 10s infinite;
}
@keyframes pageTitleAnim {
    0% { transform: scale(1, 0.2); transform-origin: 0 0 }
    8% { transform: scale(1, 1); transform-origin: 0 0 }
    9% { transform: scale(1, 1); transform-origin: 0 100% }
    20% { transform: scale(1, 0); transform-origin: 0 100% }
    21% { transform: scale(1, 0); transform-origin: 0 0 }
    25% { transform: scale(1, 0.2); transform-origin: 0 0 }
    100% { transform: scale(1, 0.2); transform-origin: 0 0 }
}
.page_title span {
    padding-left: 16px;
    writing-mode: vertical-rl;
    letter-spacing: 0.26em;
    line-height: 1;
}
.lead_card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 22px 28px;
    border: 1px solid #e2e2e2;
    border-radius: 28px;
    background: #fbfbfb;
}
.lead_card .eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #767676;
}
.lead_card h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
}
.lead_card p { margin: 0; line-height: 1.8; color: #3b3b3b }
.lead_card .lead_links { display: flex; flex-wrap: wrap; gap: 12px }
.lead_card .lead_links a {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #111;
    border-radius: 999px;
    font-size: 12px;
}
.auth_bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-self: end;
}
.auth_bar form { margin: 0 }
.auth_bar_text {
    color: #666;
    font-size: 12px;
}
.logout_button {
    padding: 8px 16px;
    font-size: 11px;
}

.panel, #result, #save, #form .form_card {
    border: 1px solid #e2e2e2;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.04);
}
.panel { margin: 0 0 24px; padding: 24px 28px }
.panel h2 { margin-top: 0; font-size: 22px; font-weight: 700 }
.form_card { padding: 28px 32px; margin-bottom: 24px }
.form_card > p:first-child { margin-top: 0; line-height: 1.8 }
.compare_table, .compare_table td { border: none }
.compare_table { width: 100%; margin: 0 0 18px; table-layout: fixed; border-collapse: separate; border-spacing: 18px 0 }
.compare_table td { padding: 0 }
textarea {
    width: 100%;
    min-height: 180px;
    padding: 18px 20px;
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    background: #fff;
    font: 14px/1.8 "source-han-sans-japanese", sans-serif;
    resize: vertical;
}
.options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    align-items: center;
    margin: 0;
    padding-top: 8px;
}
.options label { display: inline-flex; align-items: center; gap: 6px }
.option_actions {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    margin-left: 12px;
}
input[type=submit], input[type=button] {
    appearance: none;
    border: 1px solid #111;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s ease;
}
input[type=button] { background: #fff; color: #111 }
.clear_button {
    border-color: #cfcfcf;
    background: #f7f7f7;
    color: #444;
}
input[type=submit]:hover, input[type=button]:hover { transform: translateY(-1px) }
input[type=password], input[type=text] {
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 999px;
    font-family: inherit;
}
.auth_panel {
    max-width: 520px;
    margin: 0 auto 24px;
}
.login_shell {
    width: min(100%, 640px);
    margin: 0 auto;
    padding: 48px 20px;
}
.auth_form {
    display: grid;
    gap: 16px;
}
.auth_field {
    display: grid;
    gap: 8px;
    font-size: 12px;
}
.auth_field input {
    width: 100%;
    max-width: 100%;
}
.auth_actions {
    margin: 4px 0 0;
}
.auth_notice, .auth_error {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 16px;
}
.auth_notice {
    background: #f4f4f4;
    color: #333;
}
.auth_error {
    background: #fff3f1;
    color: #9b2d1f;
}

#result, #save { margin: 0 0 24px; padding: 24px 28px }
#result table, #save table { width: 100%; margin: 0; table-layout: fixed; word-wrap: break-word; border-collapse: collapse }
#result td, #save td {
    padding: 10px 16px;
    border-left: solid 1px #e2e2e2;
    border-right: solid 1px #e2e2e2;
    vertical-align: top;
}
#result p, #save p { line-height: 1.8 }
.result_capture { background: #fff }
.result_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: center;
}
table#passwd { width: auto; margin: 16px 0; border: 1px dashed #cfcfcf }
table#passwd .n { border: none }

.summary { margin: 0 0 14px }
.badge {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 4px 10px;
    background: #f3f3f3;
    border-radius: 999px;
    font-size: 12px;
}
.table-wrap { overflow: auto }
.diff-table { width: 100%; margin: 0; border-collapse: collapse }
.diff-table th, .diff-table td { border: 1px solid #dedede; padding: 10px 12px }
.diff-table th { background: #f5f5f5; font-weight: 700 }
.diff-table tr.diff { background: #fcfcfc }
.num { width: 70px; color: #777; text-align: right }
.line-value { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: monospace }
.glyph, .char-value { font-family: monospace }
.glyph { display: inline-block; padding: 2px 6px; background: #f1f1f1; border-radius: 999px }
.empty { color: #666; text-align: center }
.status-links { margin: 16px 0 0 }
.save_note {
    margin: 16px 0 0;
    color: #666;
    font-size: 12px;
}
.oss_notice {
    margin: 8px 0 24px;
    padding: 0 4px;
    color: #666;
    font-size: 12px;
    line-height: 1.8;
}
.oss_notice a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 800px) {
    main { margin-top: 0 }
    .difff_shell { padding: 0 16px 40px }
    .hero_wrap { grid-template-columns: 1fr; gap: 12px; padding-top: 8px; margin-bottom: 12px }
    .page_title { margin: 0 }
    .page_title .page_title_line { display: none }
    .page_title span { padding: 0; writing-mode: horizontal-tb; letter-spacing: 0.08em; font-size: 13px }
    .lead_card { grid-template-columns: 1fr; padding: 18px 20px; border-radius: 22px }
    .lead_card h1 { font-size: 28px }
    .auth_bar { justify-self: start }
    .form_card { padding: 20px; border-radius: 22px }
    .compare_table { border-spacing: 0; margin-bottom: 12px }
    .compare_table td { display: block; width: auto; padding: 0 0 14px }
    textarea { min-height: 120px }
    .panel, #result, #save { padding: 20px; border-radius: 22px }
    #result td, #save td { display: block; width: auto; border-left: none; border-right: none; padding: 8px 0 }
    .diff-table th, .diff-table td { padding: 8px }
    #save input[type=password], #save input[type=text] { width: 100%; max-width: 100% }
    .auth_panel { max-width: none }
    .result_actions { align-items: flex-start }
    .option_actions { gap: 14px; margin-left: 0 }
    .oss_notice { margin-bottom: 16px }
}
